Problem with changing scene

Here is the story: I’m playing my game and I get the end of the level with my player object, I collide with box and this takes me to the menu.

How do I do this?

I tried various scripts:

using UnityEngine;
using System.Collections;

1 C#)

public class SwitchScenes : MonoBehaviour {

void OnTriggerEnter (){
	
	Application.LoadLevel("Menu");
}

}

2 JS)

var MoveScene : String;

function OnTriggerEnter(hit : Collider) { Application.LoadLevel(“Menu”); }

My box has BoxCollider2D with “Is Trigger” property checked in the editor. I tried to fix it with other people help from youtube videos and also with the answers from this forum, but still my player object goes through box when BoxCollider “Is Trigger” an nothing happens.

Do like Oliver1135 said but also check the collider’s tag, that way not just any collider will cause the game to revert to the main menu.
Here is an example of how to do it:

OnTriggerEnter(Collider other){
      if(other.tag == "Player"){
           Application.LoadLevel("Menu");
      }
}

Have you tried calling (or its 2D equivalent)

OnTriggerEnter(Collider other)
{
//Code Here
}

instead of

OnTriggerEnter()
{
//CodeHere
}