Rotating model to mouse angle

I want to rotate a model towards the mouse as part of a very basic plane system. I know to use a body gyro and a linear velocity- but my scripting in this area isnt all that good, and I dont know what to do from here. i only want this model to rotate when your sat down and going a certain speed on the linear velocity ( ik how to do this last part)

All you need to do is rotate the plane root toward the mouse when seated and above your speed check. Get the mouse world pos, level the Y, and apply a lookAt with gyro or AlignOrientation. Here’s a simple example:

local root = plane.PrimaryPart
local seat = plane.Seat
local gyro = Instance.new("BodyGyro")
gyro.MaxTorque = Vector3.new(1e6,1e6,1e6)
gyro.P = 2e4
gyro.Parent = root

RunService.Heartbeat:Connect(function()
    if seat.Occupant and root.AssemblyLinearVelocity.Magnitude > 10 then
        local hit = mouse.Hit.Position
        hit = Vector3.new(hit.X, root.Position.Y, hit.Z)
        gyro.CFrame = CFrame.lookAt(root.Position, hit)
    end
end)