GUI color won't change via a script, why is that?
game.Workspace.Status.Red.Value == true then script.Parent.TextColor3 = 255, 98, 98
GUI color won't change via a script, why is that?
game.Workspace.Status.Red.Value == true then script.Parent.TextColor3 = 255, 98, 98
[EDIT] Fixed a mistake:
There are two ways to use Color3: .new and .fromRGB.
Color3.new:
if game.Workspace.Status.Red.Value == true then
script.Parent.TextColor3 = Color3.new(255/255, 98/255, 98/255)
end
This method needs values of 0 to 1.
Color3.fromRGB:
if game.Workspace.Status.Red.Value == true then
script.Parent.TextColor3 = Color3.fromRGB(255, 98, 98)
end
This method uses normal RGB (Red, Green, Blue) values.
I tried and this didn't work
Does it output white?
Yes
Edited.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Check TextColor3