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

Text is not changing color, can anyone help me please?

wait()
script.Parent.TextColor3 = Color3.new(math.random(255),math.random(255),math.random(255))

The text isn't changing color, it stays white No output errors

3 comments

1

Note that in studio, math.random seems to always stay the same value. But in the real game, this does not happen. Use math.randomseed(tick()) at the beginning of the script for more random value.

0

its not working in both testing things, and thers no errors

0

Thank you for accepting the answer. By the way, the .fromRGB property is the color that can be limited from 0 to 255 like in the property window when changing the color.

1 answer

✓ Accepted answer

Try using .fromRGB instead of .new if you're looking to change the color randomly like a almost rainbowish effect.

Also, math.random can be non-random if you're testing in studio. I've used it before and it would constantly send me the same value regardless. But it's different in online servers so the randomness comes back in the real online game.

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