Enemy AI help

I have a monster that is standing and looking at the bed, i want the players when they they walk thru the trigger the monster turns around screams walks towards you a bit, and then it disappears

Imgur

how would i do this?

Just like allenallenallen is saying you’re asking someone to write all of the code for you. I will give you what functions you will need to use and a few lines:

Javascript:

function OnTriggerEnter(){
..
}

Look at the player:

Transform.LookAt(MyTarget);

Documentation about this here: Unity - Scripting API: Transform.LookAt
Play the animation:

animation.Play("Scream");//legacy
animator.SetBool("Scream",true);//Mecham

Look up both and decide what you want to use.

Does he have a characterController/Ridibody? Bro. So many questions…
If Rigidbody:

rigidbody.AddForce(...);

Documentation About this: Unity - Scripting API: Rigidbody.AddForce

“Disappears”? jump to a new location? Destroy? Im Assuming destroyed:

Destroy(this.gameObject);

Documentation About this here: Unity - Scripting API: Object.Destroy

I would do a whole bunch of research and decide what direction you would like to move in.