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

Tried making a color-changing script for a textlabel's backgroundcolor3, didnt work?

This code was supposed to change the color of a TextLabel's BackgroundColor3 every 0.1 seconds. Whats the problem?

Script:

while true do 
	script.Parent.BackgroundColor3 = Color3.new(math.random(1, 255), math.random(1, 255), math.random(1, 255))
	wait(0.1)
end

1 answer

✓ Accepted answer

Use Color3.fromRGB().

Color3.new() is not RGB.

Color3.fromRGB(255,255,255) --Changes a color to white.-

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