Stop at a point

ok i am making a game and i want a MC to rotate but when it rotates half way i want it to stop rotating like a line

Example:
1
o
o
o
2

ooo

and when it turns half way i want it to stop i want it to do it both left and right way…

sry for missspell

[font=‘Times New Roman’][/font]