Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to change rotation of PrimaryPart while not changing position?

Asked by 5 years ago

Model:SetPrimaryPartCFrame(Model:GetPrimaryPartCFrame() * AngleVal.Value)

This somewhat works (rotation only), but causes the model to move EVERYWHERE. What's the deal?

AngleVal is some vector3 with some rotation(radians) in the Y component...

0
As long as you only provide an angle CFrame it shouldn't set the position too... Professor_Boxtrot 136 — 5y
0
Something like this?                                                              Model:SetPrimaryPartCFrame(CFrame.Angles(0, math.rad(rot*90), 0))                                   Takes the model to the origin. LetterSlayer 42 — 5y

Answer this question