LookAt GameObject but never rotate in Y Axis

Hi i’m trying to make the enemy look at the player and its working great but when the player jump the enemy rotates in Y axis wich is bad i don’t know how to make him rotats only in X and Z Axis, i need to know that , thnx :slight_smile:

I’ve found the answer
here