Application.LoadLevel not working

This is a basic JavaScript I am trying to use in a platform so that when the player touches it, the level will change.

function OnTriggerEnter( other: Collider)

{

Application.LoadLevel("Level_2");

}

But nothing happens when the player touches the platform, no matter which collider is set to Trigger.

Check your build settings and make sure that Level2 scene is added to the project. Now if that does not work, check what number is assigned to your scene in the Scenes to build list in the build settings menu.