Fixing Plane flight?

Hi, I need some help fixing my Plane flight script please?
My issue is that whenever the Plane flight is Enabled / Disabled, the BodyGyro CFrame doesn’t remain accurate to where the base is facing and results in this:

As you can see, the rotation etc does not remain linear.

The code is below.

local X, Y, Z = 0, 0, 0
BodyVelocity.Velocity = PlaneKit.PrimaryPart.CFrame.LookVector * 100
			BodyGyro.CFrame = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(Y),0) * CFrame.Angles(math.rad(X),0,0) * CFrame.Angles(0, 0, math.rad(Z))
			
			Y = Y - PilotSeat.Steer * 2
			X = X + PilotSeat.Throttle * 2

			if PilotSeat.Steer == 1 then
				if Z > -25 then
					Z = Z - 2.5
				end
			elseif PilotSeat.Steer == 0 then
				if Z < 0 then
					Z = Z + 2.5
				elseif Z > 0 then
					Z = Z - 2.5
				end
			elseif PilotSeat.Steer == -1 then
				if Z < 25 then
					Z = Z + 2.5
				end
			end