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
✓ ANSWER ACCEPTED
Can I get help with a random color-changing brick script?
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.

3 comments
Someone please help me!!!
Are you aware that you just misspelled "brickcolor" wrong in line 3, or did you manually change the name of that brickcolor property?
oh lol I didn't realize that :P