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

Can somebody explain/show how to rotate a model with CFrames using the PrimaryPart?thing?

I know how to use the CFrame. My problem is how do I rotate the model using the PrimaryPart? I've looked at other examples and the wiki but I just can't seem to understand it quite all the way.

2 comments

0

PrimaryPart just references a model's property (which the value of is a part). Treat it as any other part when rotating. So Model.PrimaryPart.CFrame = Model.PrimaryPart.CFrame * CFrame.Angles(0, math.pi, 0) which would rotate the yaw of that part 180 degrees

0

If you want to rotate the entire model you can use :SetPrimaryPartCFrame(theCF) and this will rotate the entire part around the center part's rotation

1 answer

✓ Accepted answer

SetPrimaryPartCFrame(thething'sModel:GetPrimaryPartCFrame()*CFrame.Angles(0,0,0))

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