AlignOrientation Axis Issue

I am using AlignOrientation to align a part to a spot. (Very simple, create a CFrame.LookAt and set that as the AlignOrientation’s .CFrame). I have it on PrimaryAxisOnly = true. The issue I have is that sometimes when I make the point behind the part, instead of fully rotating the front of it around to face that point it chooses the other half of the axis, which is the back of the part to face.

Basically the AlignOrientation only faces forwards half the time, whilst the other half of the time it faces backwards towards the point. Is there any way to stop this and make it only line up the front-facing half of the axis?

I’m not sure why this is a problem, but so it is. I will give you a programmable solution.

You can detect the dot product from the object space between both of the look vectors (the one on the part and the one on the target) and detect if it is less than -0.9.

I’m going to try that and see, I think it will work, I just need a way to rotate it fast because SetPrimaryPartCFrame is slow

Edit: I used RightVector as well and used an AngularVelocity to rotate it based on the direction it has to turn