Roblox plane tweaking out when reaching 90 degrees


Hello, im making a plane right now using bodyvelocity and bodygyro, the problem is it tweaks out at 90 degrees. Anyone can help?

local XAngle = CFrame.Angles(math.rad(Seat.ThrottleFloat * 5),0,0) -- This determines up or down like in the video

BodyGyro.CFrame = CFrame.new(BodyGyro.CFrame.Position, BodyGyro.CFrame.Position + Body.CFrame.LookVector) * ZAngle * XAngle
3 Likes

Help plzzzzzzzzzzdgegdtgffdgfdgfdgfdgfdgfd

The mover constraints you are using are deprecated, so they won’t work properly. Use align position and along orientation instead. As for the issue here, you can add two attachments in the plane, one of which you will be rotating instead of your body gyro with your base script here. Alignorientation will do the aligning for you. Just set the attachment you are modifying to attachment1 and the other to attachment 0. For more info on its properties (in case this post is not effective) visit this link

Alignposition is not like bodyvelocity (I figured out its linearvelocity)