Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

GUI Color won't change via script, why?

GUI color won't change via a script, why is that?

game.Workspace.Status.Red.Value == true then script.Parent.TextColor3 = 255, 98, 98

1 comment

1

Check TextColor3

1 answer

✓ Accepted answer

[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.

4 comments

0

I tried and this didn't work

0

Does it output white?

0

Yes

0

Edited.

This discussion is preserved as it was. New answers, comments, and votes are closed.