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

Can I get help with a random color-changing brick script?

brick = script.Parent
while true do
brick.BrickC0lor = BrickColor.random()
wait(0.5) -- always include the wait in "while true do" (infinite loops). Otherwise your program will crash.
end

3 comments

0

Someone please help me!!!

0

Are you aware that you just misspelled "brickcolor" wrong in line 3, or did you manually change the name of that brickcolor property?

0

oh lol I didn't realize that :P

1 answer

✓ Accepted answer

Here you go brother. I just wrote and tested it. This one works:

----PercyDHunters: Just stick this into the part and there ya go
while true do
script.Parent.Color = Color3.new(math.random(), math.random(), math.random())
wait(0.5)
end

5 comments

0

Still kinda new to this site so I'm sorry for any of the mistakes I make with the code input. Line 1 wasn't supposed to be part of the script. Copy and paste starting at line 2.

0

There we go. That's better.

0

I hope this helps you.

0

Why not make it simpler and just do..... script.Parent.BrickColor = BrickColor:random()

0

You are kinda stupid

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