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

Model wont stay rotated when changing CFrame?

Asked by 5 years ago
Edited 5 years ago
local cframe = script.Parent.Parent.PrimaryPart.CFrame
script.Parent.Parent:SetPrimaryPartCFrame(cframe * CFrame.Angles(0, math.rad(90), 0))
script.Parent:SetPrimaryPartCFrame((CFrame.new(script.Parent.EnemyPart.Position) + (Vector3.new(0.1,0,0))))

How would I do this without the model returning to it's original rotated state?

Answer this question