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

PrimaryPart no longer exists. Please set Model.PrimaryPart before using this?

Hello, watch this error that appears here, I'm doing an obby and I created a platform and I wanted it to move and go back to the place, so I created this script:

while true do
 wait(1)
 for i= 1, 200 do
		script.Parent.CFrame = script.Parent.CFrame * CFrame.new(89.923, 0.099, 175.222)
  wait(3)
 end 
 wait(1)
 for i= 1, 200 do
		script.Parent.CFrame = script.Parent.CFrame * CFrame.new(58.457, 0.099, 175.222)
  wait(3)
 end 
end

and the error is this:

**Model:GetPrimaryPartCFrame() failed because no PrimaryPart has been set, or the PrimaryPart no longer exists. Please set Model.PrimaryPart before using this.    A primary part should be set so that the character can be spawned correctly **

2 comments

1

It looks like the error is occurring in a different part of the script or a different script entirely. Try to search for where it says :GetPrimaryPartCFrame()

0

Dude, I didn't find anything.

1 answer

✓ Accepted answer

The error is exactly what it says. There is no primary part set. Click on the model, look at the properties and look for where it says "PrimaryPart", and then set it to any part that is inside of the model.

1 comment

0

I didn't find anything about it

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