Cframe.Angles not working, no errors, no visible issues

I have the following script to change an airplane’s orientation at a certain height, so it can “butter” the landing.

if script.Parent.Roof.Position.Y < 30 then
script.Parent:SetPrimaryPartCFrame(CFrame.new(script.Parent.Roof.Position.X, script.Parent.Roof.Position.Y, script.Parent.Roof.Position.Z) * CFrame.Angles(0, 0, 0))
else
script.Parent:SetPrimaryPartCFrame(CFrame.new(script.Parent.Roof.Position.X, script.Parent.Roof.Position.Y, script.Parent.Roof.Position.Z) * CFrame.Angles(0, 0, math.deg(10)))

end

Now the problem with this is that it does nothing. No errors, no issues. It just doesn’t work. Why?

I have no idea how Cframe.angles actually works, so I need help.

1 Like

Sorry I’m on mobile so bad formatting, but you want math.rad not math.deg. The bottom should be:

*Cframe.Angles(0,0,math.rad(30))