Prevent align orientation primaryAxisPerpendicular from flipping

im using align orientation to prevent the part from tilting, but when the part gets rotated too much it just gets flipped. how can i prevent this from happening?

2 Likes

How did you set this up?

in my case it works:

that prevent rotation of all axis i only want to prevent roll not yaw or pitch

1 Like

sorry, my bad.

Seems “look at” better suits what you need:

1 Like

well that only allows yaw rotation and what i want is yaw+pitch rotation

What do you mean by this? I’d like to know what you’re trying to achieve – is this meant to be used for a hoverboard, boat, plane, etc

This answer seems sufficient for most cases tbh, you just need to keep it aligned to the ground normal or whatever “up” is supposed to be every frame. Otherwise I’d suggest just OneAttachment using AllAxes and calculating/updating the CFrame alignment manually