NightPyro
|
  |
| Joined: 22 Apr 2012 |
| Total Posts: 183 |
|
|
| 09 Aug 2012 04:32 PM |
What is wrong with this script?
local gui = script.Parent.
gui.MouseEnter:connect(function() gui.TextColor3=Color3.new(248, 248, 248) end)
gui.Parent.MouseLeave:connect(function() gui.TextColor3=Color3.new(0, 0, 0) end)
|
|
|
| Report Abuse |
|
|
NightPyro
|
  |
| Joined: 22 Apr 2012 |
| Total Posts: 183 |
|
| |
|
|
| 09 Aug 2012 04:57 PM |
Color3 is from 0-1, do you'd have to divide the numbers by 255, if the numbers are higher than 1, also the default for 0,0,0 is nothing so:
local gui = script.Parent. gui.MouseEnter:connect(function() gui.TextColor3=Color3.new(248/255, 248/255, 248/255) end) gui.Parent.MouseLeave:connect(function() gui.TextColor3=Color3.new() --Though 0,0,0 was valid, it's easier like this end)
† KMXD † |
|
|
| Report Abuse |
|
|
| |
|
NightPyro
|
  |
| Joined: 22 Apr 2012 |
| Total Posts: 183 |
|
| |
|
| |
|