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
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()
Dude, I didn't find anything.