Dralian
|
  |
| Joined: 21 Mar 2013 |
| Total Posts: 7624 |
|
|
| 03 Aug 2015 09:23 PM |
local player = game.Players.LocalPlayer function enter() script.Parent.TextColor3 = Color3.new(163, 166, 7) end script.Parent.MouseEnter:connect(enter) function leave() script.Parent.TextColor3 = Color3.new(0,0,0) end script.Parent.MouseLeave:connect(leave) When I put that into a LocalScript in a TextButton, the text just turns white, not yellow. Please help. |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2015 09:28 PM |
First of all you did it wrong here copy this
function MouseEnter:connect(MouseEnter) script.Parent.TextColor3 = Color3.new(163, 166, 7) end script.Parent.MouseEnter:connect(enter) function leave() script.Parent.TextColor3 = Color3.new(0,0,0) end script.Parent.MouseLeave:connect(leave) |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2015 09:28 PM |
Sorry forgot to change some stuff
function MouseEnter:connect(MouseEnter) script.Parent.TextColor3 = Color3.new(163, 166, 7) end
script.Parent.MouseEnter:connect(MouseEnter)
function leave() script.Parent.TextColor3 = Color3.new(0,0,0) end
script.Parent.MouseLeave:connect(MouseLeave)
|
|
|
| Report Abuse |
|
|
Dralian
|
  |
| Joined: 21 Mar 2013 |
| Total Posts: 7624 |
|
|
| 03 Aug 2015 09:31 PM |
Thanks, but that doesn't work by the way.
It completely broke actually. |
|
|
| Report Abuse |
|
|
| |
|
Vyxium
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 1020 |
|
|
| 03 Aug 2015 09:33 PM |
its because your colors are wrong. every color value has to be divided by 255 so make the color:
Color3.new(163/255, 166/255, 7/255) |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2015 09:34 PM |
| Color3.new value is only valid between 0-1 . Including the decimals |
|
|
| Report Abuse |
|
|
Dralian
|
  |
| Joined: 21 Mar 2013 |
| Total Posts: 7624 |
|
|
| 03 Aug 2015 09:36 PM |
All good.
Thanks, I never knew that about Color3. |
|
|
| Report Abuse |
|
|