How do I restrict my character's movement to one axis?

so i was trying to do the same but my Get Control Rotation and Get Right Vector does not have as descriptive options as yours?

is this a problem?