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

Why does this selectionBox Script not work?

script.Parent.SelectionBox.Color = script.Parent.SelectionBox.Color.Random()

1 answer

Run the script and look at the Output window to see the error you get:

14:57:44.837 - Random is not a valid member

You should be using BrickColor.Random() instead.

script.Parent.SelectionBox.Color = BrickColor.Random()

1 comment

0

It works, but my script Which was for a plugin,ended up breaking it.

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