How do I load a scence upon clicking on and object?

I have tried to write a very simple script but it will not work:

var Level: 0 ;

function OnMouseUp ()
{
Application.LoadLevel(Level);
}

Perhaps you can help me fix my script or give me another one. Thank You!

Did you add your level 0 into your build settings?
If not

  1. File->BuildSettings
  2. Drag and drop your level 0 scene into “Scenes In Build” or click “Add
    Current” if your are currently in level 0 in editor.