Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Part is not a valid member of Model, how to fix?

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

2 comments

0

This just means that Model has no child named Part? is this a local script or a server script?

0

Maybe try game.Workspace.Model:WaitForChild("Part") as the part has not loaded yet?

1 answer

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

1 comment

0

That would cause a different error.

This discussion is preserved as it was. New answers, comments, and votes are closed.