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 9 years ago

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

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

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

1 answer

Log in to vote
0
Answered by 9 years ago

SelectionBoxes use BrickColor for their color property instead of Color3.

Use this:

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

Answer this question