EnumItem cannot be modified? [closed]
I'm making this script that has to change the value depending on what random number it lands on.
It has been working without the value part, but I'm not sure how to fix it
It also has an error saying:
EnumItem cannot be modified
This is the script:
01 | local part = math.random( 1 , 100 ) |
02 | local val = script.Parent.Material |
07 | script.Parent.BrickColor = BrickColor.Green() |
08 | elseif part > 40 and part < 61 then |
11 | script.Parent.BrickColor = BrickColor.Black() |
12 | elseif part > 60 and part < 101 then |
15 | script.Parent.BrickColor = BrickColor.new( "Bright bluish green" ) |
Locked by Spongocardo, chess123mate, and M39a9am3R
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?