my trigger keeps defaulting back to the scene i am in

Hi guys,

I have managed to get my player to hit an object which is named portal1 (which is ticked trigger in the inspector and tagged). I want it to load to scene2 but for some reason it keeps loading to scene1 even if I put scene3,scene4, or scene5. In the build setting they are
as follows in this order:

scene1.unity
scene2.unity
scene3.unity
scene4.unity
scene5.unity

here is my code:

 function OnTriggerEnter (portal : Collider)
{
	
	// if tag is portal
	if(portal.tag == "portal1")
	{
		Application.LoadLevel("scene2");  // Load to scene 2
	}

}

Does anyone know why it will not load to scene2 and keeps saying scene1 but that scene1 is blank I cannot understand it :?

you aren’t using the same portal tag are you?

how do mean I do not understand

if(portal.tag == “portal1”) should that be portal1 or portal2?