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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 26 Dec 2008 |
| Total Posts: 68 |
|
| |
|
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 |
|
|