Problem with making level change on collision.

For some reason nothing happens, I have applied this script to the box that needs to be jumped on to end the level:

function OnTriggerEnter (hit : Collider)
{
Application.LoadLevel ("2");
}

I have applied “On Trigger” to the player, and the box has rigidbody.

Have you put the Scene to be loaded by this trigger in the build settings as Scene 2?

Yes, that’s correct