|
| 25 Feb 2017 02:31 PM |
function enter() script.Parent.ImageColor3 = Color3.new(1,1,1) end
function leave() script.Parent.ImageColor3 = Color3.new(100/255,100/255,100/255) end
script.Parent.MouseLeave:connect(leave) script.Parent.MouseEnter:connect(enter)
|
|
|
| Report Abuse |
|
|
Violicx
|
  |
| Joined: 02 Feb 2017 |
| Total Posts: 18 |
|
|
| 25 Feb 2017 02:32 PM |
function enter() script.Parent.ImageColor3 = Color3.new(1/255,1/255,1/255) end
|
|
|
| Report Abuse |
|
|
Wrathsong
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
|
| 25 Feb 2017 02:33 PM |
is it a localscript?
@viol no, his code was fine
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow me on twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
| |
|
Wrathsong
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
|
| 25 Feb 2017 02:36 PM |
It needs to be a local script. All scripts inside StarterGui should be local scripts.
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow me on twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
|
| 25 Feb 2017 02:37 PM |
huh, never knew that
thanks for the tip
|
|
|
| Report Abuse |
|
|
Wrathsong
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
|
| 25 Feb 2017 02:39 PM |
np, that should fix it btw
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow me on twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 25 Feb 2017 03:27 PM |
--local script
local gui = script.Parent
gui.MouseEnter:connect(function() gui.ImageColor3 = Color3.new(1,1,1) end)
gui.MouseLeave:connect(function() gui.ImageColor3 = Color3.fromRGB(100,100,100) end)
|
|
|
| Report Abuse |
|
|