How to stop model form rotating back to face down?

In my game the enemy is standing straight up after i rotate him here. Then once he follows the script or may i say tun on the game he gos back to his original face down position.

Here is the code if this chnges anything (Its in javascript):

var Player : Transform;
 var MoveSpeed = 4;
 var MaxDist = 10;
 var MinDist = 5;
 
 
 
 
 function Start () 
 {
 
 }
 
 function Update () 
 {
     transform.LookAt(Player);
     
     if(Vector3.Distance(transform.position,Player.position) >= MinDist){
     
          transform.position += transform.forward*MoveSpeed*Time.deltaTime;
 
           
           
          if(Vector3.Distance(transform.position,Player.position) <= MaxDist)
              {
                 //Here Call any function U want Like Shoot at here or something
    } 
    
    }
 }

I can’t really understand what you are saying, if you’re saying what I presume then try replacing your LookAt line with LookAt (Vector3 (Player.position.x, transform.position.y, Player.position.z));