https://gyazo.com/49223945b961a4de64d7eb48aa84fca0
As you can see in the gif, when i try rotating on the x axis using my mouse it completely locks out when going above or below 20 degrees, rotating on the y axis continually is absolutely fine though and works perfectly.
bg.CFrame = CFrame.lookAt(part.Position, Vector3.new(MousePos.X ,MousePos.Y,MousePos.Z))
here is my code, the players camera is locked at the position of a part behind the ship if that provides any more context, its what allows the ships to be able to continually rotate on the axis the player moves their mouse in.
All help appreciated!!