Need ai help!

Hello im good with unity im releasing an fps, and am for the demo using the lookat script, but what i need help with is the ai, it follows me up unrelisticly so i need a fix thanks

Could you post the script please? Otherwise no one can tell you what to improve.

Transform.Lookat(Transform); this is not a problem i just need it so it doesent follow me upward when i jump or go up

So you want to ingore the y-axis when aligning to the player?
You could do it like this:

transform.LookAt(new Vector3(player.position.x,0,player.position.z));

thans you but one more thing my enemy ube looked down when i get close to it

Can you post your code? If the enemy looks down its not because of the lookat command above.