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

Why does this selectionBox Script not work?

Asked by
IcyEvil 260 Moderation Voter
9 years ago
script.Parent.SelectionBox.Color = script.Parent.SelectionBox.Color.Random()

1 answer

Log in to vote
0
Answered by
Merely 2122 Moderation Voter Community Moderator
9 years ago

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()
0
It works, but my script Which was for a plugin,ended up breaking it. IcyEvil 260 — 9y
Ad

Answer this question