Resetting timer on Collision

i have a timer on my game but when my player hits a trap and the game level resets the timmer dose not any help would be helpfull this is the script i’m using to reset the game

function OnCollisionEnter(collision : Collision){

 	if (BoxCollider == "player");
	Application.LoadLevel ("scene 2");
	
}

Did you take the time to re-read the code you posted, because there is quite major error in it xd…if you don’t catch them i suggest take your time doing couple tutorials on some programing fundamental and then unity.

that’s the code i have attached to a box collider that picks up if the player enters its and resets the level and works fine at that it just does’nt reset the time so any help would be helpfull