Model rotates without PrimaryPart

My goal is to rotate a model 90 degrees when a button is clicked, so I use PrimaryPart.CFrame to rotate the whole model, but for some reason this does not rotate the PrimaryPart itself, which is what I’m looking for

Model.PrimaryPart.CFrame *= CFrame.Angles(0, math.rad(90), 0)

Something else I’ve tried and still didn’t work:

Model:FindFirstChild(Model.PrimaryPart.Name).CFrame *= CFrame.Angles(0, math.rad(90), 0)

Any solution to this?

Model:PivotTo(Model:GetPivot() * CFrame.Angles(0, math.rad(90), 0))
1 Like

The model is now stuck at 0 degrees whenever I try to rotate

1 Like

for me it seems to be fine though…

i can’t show the video due to an error not letting me upload it

Figured it out, had a dumb typo, thank you for the help

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.