Answered by
4 years ago Edited 4 years ago
You are using Model:SetPrimaryPartCFrame() before setting the PrimaryPart.
Models have a PrimaryPart property, which you need to set before calling methods like SetPrimaryPartCFrame and MoveTo() on the model.
01 | local test = part.CFrame |
03 | car.PrimaryPart = primaryparthere |
05 | car:SetPrimaryPartCFrame(test) |
07 | local pos = test * CFrame.Angles( 0 , math.rad( 180 ), 0 ) |
09 | car:SetPrimaryPartCFrame(pos) |
You need to replace "primaryparthere" with a part that the rest of the model will use as a basis for positioning. Preferably, this is a part at or near the center. I usually set an invisible part in the center as the PrimaryPart.