How to rotate two motor6Ds to mirror a World space CFrame?

Lets say you have a turret, and that turret is on a boat. The boat may twist and turn, tilt with the waves, etc. You want the turret to face one direction the entire time, compensating for the orientation of the boat. What would be the best way to accomplish this?