When I run this code it displays no errors on the input but the part still hasn't change into Grass
part = game.Workspace.Part
prop = part.Material
prop = ("Grass")
When I run this code it displays no errors on the input but the part still hasn't change into Grass
part = game.Workspace.Part
prop = part.Material
prop = ("Grass")
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
Variables aren't pointers or references, you're just changing the value of the variable and not the property.
I see what you mean by just changing the value of the variable now I replaced the 4th line with part.prop = "Grass" but the output said "prop is not a valid member of Part"
parts don't have a property called "prop". There's a Material property, did you mean
part.Material = "Grass"I tried to make "prop" contain the Part's property then just change it part.prop = "Grass" is there a way like that?