Align player's head to a point

Basically, I’m trying to make a swing mechanic, but the problem is that whenever I try to align the player’s head with a point (using alignorientation), it also rotates the Y axis.
What I would like to get:
(Arrows = look vector)


What I actually have:

Any help is really appreciated, thanks!

Are you trying to lock the player’s head from start to finish of the swing?

Yes, the player should be looking at the same direction during the swing, but once reached a certain point, the character flips 180 degrees and continues the rest of the swing backwards

Why not have an invisible part on the swing, have the camera lock on, and when the player gets off, the camera resets?

I kinda feel that this solution will overcomplicate things? The player will also have the ability to control the swing, so it’s going to be harder to manage all of it.