Level requested not loading, prev. one is instead?

Ok, so here is my script, its on a trigger. When I hit said Trigger, scene 1 (the one I’m on) then loads up again, instead of scene 2. I have no other scripts with LoadLevel on them in the area… Any ideas?? And I double checked the “build settings” and made sure.

#pragma strict
    
    function Start() {
    
    }
    function OnTriggerEnter(){
    	
    	yield WaitForSeconds(2); Application.LoadLevel(2);
    	
    }

Hey Gamegirl,

Sure you’re not in scene 0 (The real scene 1) and needing to load scene 1?
Have you tried messing with the 2 and changing it to something else?

If this doesn’t help, can you please put a screenshot of your build settings? (Sorry. :stuck_out_tongue: )
Hope to hear from you soon! :smiley:

Close this please. I’m a dork. the issues was: My current scene was not in my build settings (because I re-named it) So for some reason that was effecting the trigger script. And it was re loading the current scene under a different name. Not sure why and how that would happen though.