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

How do I fix this script to make it work on a SelectionBox?

Asked by 10 years ago

I have this script and it works on parts but wont work on a SelectionBox. Help?

1while true do
2script.Parent.Color = Color3.new(math.random(), math.random(), math.random())
3wait(1.0)
4end

Also, I tried putting the script into the SelectionBox but it didn't work.

1 answer

Log in to vote
0
Answered by 10 years ago

SelectionBoxes use BrickColor for their color property instead of Color3.

Use this:

1while true do
2    script.Parent.Color = BrickColor.Random()
3    wait(1)
4end
Ad

Answer this question