Help with AI plane

So I have an AI plane and I want the plane to fly towards the player. How can I check if the player is on an Axis of the AI plane?

I’m using a VehicleSeat so it can be easier.

VehicleSeat:GetPropertyChangedSignal("Steer"):Connect(function()
	local result = checkFlyPartWeld()
	
	if isOn.Value == true and result == true then
		AngularVelocity.AngularVelocity = Vector3.new(AngularVelocity.AngularVelocity.X, -1 * VehicleSeat.Steer, AngularVelocity.AngularVelocity.Z)
	end
end)

VehicleSeat:GetPropertyChangedSignal("Throttle"):Connect(function()
	local result = checkFlyPartWeld()
	
	if isOn.Value == true and result == true then
		AngularVelocity.AngularVelocity = Vector3.new(1 * VehicleSeat.Throttle, AngularVelocity.AngularVelocity.Y, AngularVelocity.AngularVelocity.Z)
	end
end)

So how can I make the AI plane fly to the player? Checking if player is on the Axis of the AI plane?

What do you mean by the same axis, do you mean on the same longitude in the sky?

Like check if the player is on the X axis of the AI plane.

Don’t know if this is the best solution.

if target.Position.X <= FlyPart.Position.X then
				VehicleSeat.Steer = -1
			else
				VehicleSeat.Steer = 1
			end
			
			if target.Position.Y <= FlyPart.Position.Y then
				VehicleSeat.Throttle = -1
			elseif target.Position.Y >= FlyPart.Position.Y then
				VehicleSeat.Throttle = 1
			end