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

How do I change the background colour of a gui to random? (Very easy)

I have no idea, but this is how I would've done it based on how to do it with bricks.

while true do

	script.Parent.BackgroundColor3 = BackgroundColor3.Random()
	wait(1)
	
end

1 comment

0

Try :Random().

1 answer

hello, i think this is my stupid code i cant write but still work brrrrrrrrrrrrr

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

4 comments

0

You can just write math.random(255) instead of math.random(0,255).

0

thats why i called my script a stupid code

0

Try script.Parent.BackgroundColor3 = BrickColor.Random().Color

0

u cant, bcs its a the background is color3 so u must use Color3 function maybe

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