GUI color won't change via a script, why is that?
1 | game.Workspace.Status.Red.Value = = true then script.Parent.TextColor 3 = 255 , 98 , 98 |
[EDIT] Fixed a mistake:
There are two ways to use Color3: .new and .fromRGB.
Color3.new:
1 | if game.Workspace.Status.Red.Value = = true then |
2 | script.Parent.TextColor 3 = Color 3. new( 255 / 255 , 98 / 255 , 98 / 255 ) |
3 | end |
This method needs values of 0 to 1.
Color3.fromRGB:
1 | if game.Workspace.Status.Red.Value = = true then |
2 | script.Parent.TextColor 3 = Color 3. fromRGB( 255 , 98 , 98 ) |
3 | end |
This method uses normal RGB (Red, Green, Blue) values.