Motor6D C1 X Rotation Coordinate looks at Target?

I am making an automatic Sentry Turret which is animated, i’ve been trying to figure out how to make it that the section/limb that holds all of it rotates horizontally to look at it’s target through the Motor6D.

I’ve tried solutions online but none of them work properly, Not even the assistant could help in this one.

ezgif.com-animated-gif-maker (7)