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