Go in one direction no matter where you're looking?

Hey, I’m trying to make a crawl space so I want it so when the player presses W it goes forward and S goes backward, but it doesn’t matter which way the player is facing, it will always follow the same path, how would I go about doing that?

A bit like how this is done? https://www.youtube.com/watch?v=8fR0eI2hnS8&ab_channel=hisanimations

Hi man,
You can define the direction in some ways.
basically you can just get the player location , and add it a vector “direction” , and set his location to this new value.
For example forward in the room is toward X
so you get the player location + (25,0,0) and set this as player location using the input or tick event.
The player can rotate freely but will move always in the same direction.

If ou build a checkpoint sistem you can just point toward the next checkpoint and walk