Help with Application.LoadLevel Script.

Hey, I am trying to make a multi level game. The only way though is to create a gui without 4 hours of searching to find a good enough tutorial on how to script it (if its even out there). The fabled script i speak of is one that activates when a gameObject is activated in the scen and switching to a different scene. If anyone knows a good way to do this in unityscript then i would very appreciate it if you could post it or post a way to do it in unityscript. Thank you for reading this tome of a question. :slight_smile:

This seemed rather simple to me, but I may not be fully understanding you. Here’s my shot at it though.

var targetGameObject : GameObject; // Define as object you want to listen for

function Update()
{
	if(targetGameObject.isActive)
	{
		Application.LoadLevel(targetGameObject.tag.toString());
	}
}