How to stop AlignOrientation from instantly rotating the object/part to 0,0,0

Just started using AlignOrientation today, and I’ve hit an issue I’m unsure on how to solve.

Whenever I start my game, the object I have with the AlignOrientation part instantly flips to face 0,0,0 vector. I’ve tried settings it’s CFrame to the objects CFrame, so it flips towards where the object is facing, but that doesn’t seem to work.

Here’s a clip of the issue:
45e37cdefbdbb43db9476bbe1167ba99

Here’s the code I currently use to attempt to get it to not auto-flip:

-- ... code above ...

ao = MAIN.AlignOrientation

-- ... more code ...

ao.CFrame = ao.CFrame*CFrame.Angles(0,MAIN.CFrame.Rotation.Y,0)

When you use CFrame.Rotation, it returns the CFrame matrix without any position, which, thus, returns 0 if you use CFrame.Rotation.Y (Y being the Y position, not orientation). Use:

math.rad(MAIN.Orientation.Y)