Trigger for reloading level won't work!

I have spent 4 hours trying to see what was wrong. No errors at all. The script is about using a object as a trigger when the player goes in it. I am using a box collider and a character controller. when the player falls into the trigger it restarts the level, but it’s no doing it. The script(JavaScript):

#pragma strict

var Player : GameObject;

function OnTriggerEnter (other : Collider) {
		Application.LoadLevel(0); //or whatever number your scene is

Please give me the ENTIRE code, I never get what your talking about when you just put up a incomplete code. This is for my 2D game.

I found it! here’s the code!:

#pragma strict

 var player : GameObject;
 function OnTriggerEnter(other : Collider) {
     Debug.Log("Test") ;

LOL, I had to label the both the objects player! I had completely cracked up when I found out! thanks for helping me! You can use this code if you want.