I am trying to make it so that the enemy looks at the player and I have achieved that but when I jusp it also rotates to the point where it is lying down if it is close up. How do I make it so that it will always stay upright and not “fall over” like it s doing?
Here is my current code attacked to the enemy: