What causes my capsule to rotate When I fire a projectile from one of my sockets?

- YouTube Here is a small video with the issue I face.

I Used yhis formula to rotate my character but I want it to only rotate my yaw(z)

It helped thanks!

You can break the rotator and make it again to pin needed yaw, leaving others by 0