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

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

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

SelectionBoxes use BrickColor for their color property instead of Color3.

Use this:

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

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