script.Parent.SelectionBox.Color = script.Parent.SelectionBox.Color.Random()
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()