Reset Component Pitch/Yaw on Character Movement

Ok so I’ve got this problem, and unfortunately most answers here are related to cameras and not components.

I’m designing a Metroid game with some teammates as a graduation project for school. I’m working on the Morph Ball, and it was relatively easy to get the ball to respond to a LocalRotation component referencing the Mesh itself. However, I’m not sure how to get the pitch/Yaw to reset to default up/down (or zero) when I move forward. Help with this would be appreciated.