Reset Rotation Pitch/Yaw on Forward 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. Is there some node where it will automatically reset? I tried a few things but they all just make things very wonky

If anyone can help with this it would be greatly appreciated. For the life of me nothing I try is working.