On Roblox, the eyeball script is a piece of scripting that gives your character an eyeball as a special customizable tool.
In practice, it is one of the many ways players personalize their avatar or build unusual features into their creations. Scripts like this are part of what makes Roblox such a flexible platform, since a small bit of code can add a distinctive, custom touch to a character. If you are curious about how it works, looking into Roblox's scripting tools is a good place to start.