Asking about break rotation

Hello every body i have a little question that if i have my player character and moving him forward and to right and to left but i need to prevent him from back when moving how could i do that please ? i will be grateful to who answer me.

In the player character, change this:

to this:

unfortunately it’s not work cause i need to make rotation to right and left but i need to prevent him from move back cause i make endless runner game do you have another solution bro?

I just tried it, I can move forward / left / right, but not backward.

Can you be more specific?

ok i have my own character that controlled movement with mouse cursor and i need to make the character to move only forward , right and left not backward like subway game do you know what i mean?

So tell me how the controls work. Are you only pointing and clicking with the mouse, or are your also using WASD? ( Don’t know the subway game ).

thanx for answer me the control of player which is about flying character and that character begin flying auto to forward without input any thing so if begin play the flying give me ability to forward and left and right and complete turning the left or right it backward and that what i needn’t ?

What about this? It will let you turn any way, but basically hold you on a forward course…:

thanx bro it isn’t work but i try another solution which make the player if he goes back , he will die