Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 8 years ago
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
0
Someone please help me!!! RobloxPranker 5 — 8y
0
Are you aware that you just misspelled "brickcolor" wrong in line 3, or did you manually change the name of that brickcolor property? LateralLace 297 — 8y
0
oh lol I didn't realize that :P RobloxPranker 5 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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
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. iDev_Percy 45 — 8y
0
There we go. That's better. iDev_Percy 45 — 8y
0
I hope this helps you. iDev_Percy 45 — 8y
0
Why not make it simpler and just do..... script.Parent.BrickColor = BrickColor:random() KingLoneCat 2642 — 8y
0
You are kinda stupid RobloxPranker 5 — 8y
Ad

Answer this question