I don't know if there's a problem with the colors on Roblox but when I test, instead of the text color being the desired color below (bronze), it's a whole different color, which is 255, 187, 0 or #ffbb00. which is not the color I want. if you want to see a video of it please let me know
while wait(1) do script.Parent.Text = tostring(game.Players.LocalPlayer.Data.Level.Value) local level = script.Parent if level.Text <= "9" then level.TextColor3 = Color3.new(157, 78, 0) end if level.Text >= "10" then level.TextColor3 = Color3.new(0, 0, 0) end end
Instead of using Color3.new
you should use Color3.fromRGB
, as .new
is just for Color3 values on a scale between 0-1 instead of 0-255.
Color3.new(0,1,0)
would be bright green, while
Color3.fromRGB(0,255,0)
would be the same green.