Help with instantiation in timer script

Hello I purchased the GUI timer from the asset store the developer will not return my emails
Im trying to have it instantiate an out of time game object when the countdown hits 0 here is the js i’m using:

function Start(){
	startTime = 0;
}

static function RefreshTimer(){
	startTime = Time.time;
}

function FormatTimer(length:float):String{
    
	var passedTime:float;
	var minutes : float ;
	var seconds : float ;
	var fraction : float;
	var theTime : String ;
	var timer:float ;
	
	timer = timerStartat ; 
	
	if(NormalTimer && !CountDownTimer)
	{
	passedTime = timer + (Time.time - startTime); 
	if (passedTime >= Endtime){
		//in here you must put the level number of gameover
		//Application.LoadLevel(2);
		// or just a simple GUI
		gameOver = true;
		Time.timeScale = 0.0;
	}
	minutes = passedTime / 60 ; 
	seconds = passedTime % 60 ;
	fraction = (passedTime * 10) % 10;
	
	theTime = String.Format ("{0:00}:{1:00}:{2:00}", Mathf.Max(minutes,0), Mathf.Max(seconds,0), Mathf.Max(fraction,0)); 
	return theTime;
	}
	if(CountDownTimer && !NormalTimer)
	{
	passedTime = timer - (Time.time + startTime); 
	if (passedTime <= Endtime){
		{
Instantiate(OutOfTimeGo3, transform.position, transform.rotation); // instantiate this when timer hits 0

}

I got it to work exceptl it instantiates multiples, not just one.

How do make this instantiate only one object?

Thanks
Pete

To make it only instantiate one object, add another variable hasCreated:

var hasCreated = false;

//change instantiate line to:
if (hasCreated == false) {
Instantiate(OutOfTimeGo3, transform.position, transform.rotation);
hasCreated = true;
}