I’m trying to make the plane rotate but whenever I try to rotate my plane above or below, it won’t allow me to, I don’t understand why this shake occurs.
Here’s a video indicating the problem since I definitely know some wants to see the problem.
Here’s a code that handles the rotation.
local maxBank = 90 -- max angle for rotating
local bank = ((((mouse.ViewSizeX/2)-mouse.X)/(mouse.ViewSizeX/2))*maxBank)
Main.Move.Velocity = Main.CFrame.LookVector*throttle.Value
-- sets the move velocity of the plane
Main.Move.maxForce = Vector3.new(math.huge,math.huge,math.huge)
Main.Gyro.CFrame = (mouse.Hit*CFrame.Angles(0,0,math.rad(bank)))
-- sets the rotation cframe of the plane
Main.Gyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
If anyone can help me, reply down below. Thanks.