how do i make an enemy appear then immediately dissapear?

I’m making a horror game and i want to know how to do this to add some jump scare moments please help :slight_smile:

You can use a trigger , and if the player has entered the trigger zone , instantiate the enemy, make him do something, then destroy him.

 
function OnTriggerEnter(col : Collider){
     if(col.gameObject.tag == "Player" && !enemySpawned){
           //instantiate the enemy where you want it and destroy it after some time
         enemySpawned = true;
    }
 }