Load next level after reaching a number

I have this script that works perfectly without a doubt :slight_smile:
all thats left is making it so that when the counter reaches 0 it will load the next level

var i : int = 1000000;
var Sound : AudioClip;
function Update () 
    i -= 1;
var customGuiStyle : GUIStyle;
function OnGUI() 
xPos = Screen.width; yPos = Screen.height;
GUI.Label(Rect((.01)*xPos,(.1)*yPos, (.1)*xPos,(.1)*yPos), i.ToString(), customGuiStyle);

how hould i go about doing that?

if (i == 0)

Assuming i is your Counter, the int in the LoadLevel Method as a parameter is the index of the level you wish to load.