Selddy
(Selddy)
February 3, 2023, 5:12pm
#1
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?
VSCPlays
(Void)
February 3, 2023, 5:21pm
#2
Model:PivotTo(Model:GetPivot() * CFrame.Angles(0, math.rad(90), 0))
1 Like
Selddy
(Selddy)
February 3, 2023, 5:23pm
#3
The model is now stuck at 0 degrees whenever I try to rotate
1 Like
VSCPlays
(Void)
February 3, 2023, 5:31pm
#4
for me it seems to be fine though…
i can’t show the video due to an error not letting me upload it
Selddy
(Selddy)
February 3, 2023, 5:36pm
#5
Figured it out, had a dumb typo, thank you for the help
1 Like
system
(system)
Closed
February 17, 2023, 5:37pm
#6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.