Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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 **

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() LeedleLeeRocket 1257 — 3y
0
Dude, I didn't find anything. trevorvIrus 4 — 3y

1 answer

Log in to vote
0
Answered by
3wdo 198
3 years ago

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.

0
I didn't find anything about it trevorvIrus 4 — 3y
Ad

Answer this question