AlignOrientation rotating on every axis instead of just the primary axis

Hello, I am working on a shooting npc that faces towards a player using AlignOrientation, I only need it to rotate on one axis, because if it looks up or down then the npc will fall over. I have it set to OneAttachment and PrimaryAxisLookAt, but for some reason it still rotates on the other axis. There is a script setting the CFrame of the constraint to the player’s HumanoidRootPart CFrame.
And yes, the primary axis is the correct axis.

2 Likes