How to restart the level upon cantact

Hey, I was trying to figure out how to use a cube at the bottom of the level to kill the “Player” and restart the level. I don’t need health points or anything i just want to reload the level when you contact that cube(insta-death).

this is what I tried

function OnCollisionEnter(collision : Collision)
{
if(collision.gameObject.tag == "Deathzone")
{
    Application.LoadLevel("mario mock");
}
}

Do I need to add something or start differently? I’m not sure what I need to do :smiley:

what you wrote seems to be correct, did you test it?