well im beginner, i just learned LUA a bit i used this code
game.Workspace.Model.Part = Enum.Material.Grass
then this freaking error made me crazy Part is not a valid member of Model
well im beginner, i just learned LUA a bit i used this code
game.Workspace.Model.Part = Enum.Material.Grass
then this freaking error made me crazy Part is not a valid member of Model
The issue is that you are trying to set Model.Part as if it were a property. You need to access the Material property of the part.
game.Workspace.Model.Part.Material = Enum.Material.Grass
That would cause a different error.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
This just means that Model has no child named Part? is this a local script or a server script?
Maybe try game.Workspace.Model:WaitForChild("Part") as the part has not loaded yet?