How to make something happen over time?

I made this script that teleports a collider to a certain transform after a certain amount of hits. I was wondering how I could make it so then the collider is destroyed and then spawns at the transform after an amount of time. Here is my script so far:

var lives = 5;
var spawnPoint : Transform;
var seconds = 5;

function OnTriggerEnter(){
	(lives) = (lives) - 1;
	if((lives) == 0){
		gameObject.transform.position = spawnPoint.position;
	}
}

You would be better off just disabling it and re-enabling it at some future time:

var lives = 5;
var spawnPoint : Transform;
var seconds = 5;
 
function OnTriggerEnter(){
    (lives) = (lives) - 1;
    if((lives) == 0){
       Invoke("LiveAgain", 2.0);
       gameObject.SetActive(false);
    }
}

funciton LiveAgain() {
    gameObject.transform.position = spawnPoint.position;
    gameObject.SetActive(true);
}

This will wait 2.0 seconds before moving it an re-enabling it.