Script going to next scene by itself

**** update already have the answer thanks guys*****

sure thing

function Start () {
   yield WaitForSeconds (2);
   Application.LoadLevel (Application.loadedLevel + 1);
}

Thanks

I keep getting this error. Cannot load level 2 not in building settings but yet I have 5 scenes in my settings .

File>Build Settings…>Add Current

The rest you can probably figure out yourself :wink:

No longer need

There is 2 way in loading level:
Application.LoadLevel(1);
this is through the number system where the number is at the right side on the building setting
Application.LoadLevel(“level 1”);
this is through the naming system where it load the level by name which the naming must be the same in order for it to load the level

You have to check your building settings again. The scenes there have an index running from 0 to something. Application.loadedLevel + 1 relies on that. Maybe your current scene has the last index and there is no higher one?