generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Need help with GUI scripting

Previous Thread :: Next Thread 
Seanald is not online. Seanald
Joined: 26 Dec 2008
Total Posts: 68
12 Oct 2011 03:02 PM
I've been scripting for a while now, but my abilities are still very limited.

So anyways, how would I script an image button to change to another image while the mouse is hovering over it, and then back to the same image when the mouse leaves the button?
Report Abuse
LegoGuyExtreme is not online. LegoGuyExtreme
Joined: 10 Sep 2008
Total Posts: 1267
12 Oct 2011 03:04 PM
function OnMouseEnter()
--Stoof
end
script.Parent.MouseEnter:connect(OnMouseEnter)

function OnMouseLeave()
--Stoof
end
script.Parent.MouseLeave:connect(OnMouseLeave)

Put that script into the ImageLabel and add your code.
Report Abuse
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
12 Oct 2011 03:09 PM
script.Parent.MouseEnter:connect(function()
script.Parent.ImageID =
script.Parent.MouseLeave:connect(function()
script.Parent.ImageID =
end)
end)
Report Abuse
Seanald is not online. Seanald
Joined: 26 Dec 2008
Total Posts: 68
15 Oct 2011 01:22 PM
Thanks guys :D
Report Abuse
GeneralSQ is not online. GeneralSQ
Joined: 17 Apr 2011
Total Posts: 81
15 Oct 2011 01:23 PM
Np Its Been Awhile Any Ways Ikr..
ESS Is The Best
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image