Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does my text turn white when using TextBox.TextColor3.new()?

Asked by
N43FGXL 169
4 years ago

Does anyone know why this turns to white instead of dark-yellow?

TextBox.TextColor3 = Color3.new(195, 165, 95) -- Turns to white but should be dark-yellow

TextBox.TextColor3 = Color3.new(67, 66, 66) -- Turns to white but should be dark-gray

For some reason this works and turns to red...

Price.TextColor3 = Color3.new(1, 0, 0) -- Turns to red

Does anyone know why this is?

1 answer

Log in to vote
2
Answered by
royaltoe 5144 Moderation Voter Community Moderator
4 years ago

Color3 takes a value 0-1 you can do Color3.fromRBG() instead.

TextBox.TextColor3 = Color3.fromRGB(195, 165, 95) 
TextBox.TextColor3 = Color3.fromRGB(67, 66, 66) 
Ad

Answer this question