Locking Movement to Local Axis

So I am trying to lock a players movement to their Local X Axis as seen in the example below.
The blue arrow represents the direction the character would be facing, while the red line represents the X axis the movement would be locked to. I’m not entirely sure how to approach such a task. My goal with this is to be able to lock the direction dynamically no matter which direction they’re currently looking.

If you have any further questions I’ll be glad to answer!

not sure how to do it for mobile, but for pc players you just need to remove “moveBackwardAction” and it should work