Trouble with a respawn script

I’m making a 2D game for my Uni project and I’m a games design student and i don’t do much programming but I’ve come to like JavaScript and the problem is for some reason it wont reload the level when enter the trigger.

This is the script

function OnCollisionEnter (collision : Collision) {
if (collision.gameObject.name==“Player”)
Application.loadLevel(Application.loadedLevel);
}

  1. Please format your code using 10101 button
  2. Capitalize L in LoadLevel
  3. is the variable “loadedLevel” defined and in your Build Settings
  4. Do you use something with DontDestroyOnLoad on scene transitions (for the Level++)