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

Error cloning a model? " Position is not a valid member of model"

When I am trying to clone a model using the script below it brings up an error saying "Position is not a valid member of model" pointing an arrow at line 4.

while true do
	local noob = game.ServerStorage.Noob:Clone()
	noob.Parent = game.Workspace
	noob.Position = Vector3.new(-121, 0.5, -34)
	wait(0.2)
end

2 comments

0

read my answer :-)

0

A Model is a grouping of entities, a mere container. You need to reference a PrimaryPart (center piece) to shift the entire collection position.

1 answer

Hello, SyncSim!

You can use :MoveTo() to move a model to a certain position. Remember that your model needs to have a primary part for this to work

while true do 
	local noob = game.ServerStorage.Noob:Clone() 
	noob.Parent = game.Workspace 
	noob:MoveTo(Vector3.new(-121, 0.5, -34)) 
	wait(0.2) 
end

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