How Can I Make it Where Text Shows and the Game Ends on Collision?

The code I have is:

function OnTriggerEnter (other:Collider){
    guiText.text = "You Win!";
    print("You win!");
    Application.Quit();
    }

Oh and by the way, the text is attached to the object and the GUILayer is enabled. But the text does not show up, and the game does not end. The debug “You win!” I just put in to make sure it wasn’t a collision problem which it is not. If anyone happens to have an idea as to what it is that I’m having issues with, I would greatly appreciate some help in resolving it. Thanks in advance.

The Unity Editor will not close on Application.Quit(). Built project will.

I meant to put this in my previous post, but the Tab button doesn’t work and I didn’t know it.

var a = false;

function OnTriggerEnter (other : Collider) {
	print ("Testing collision");
	a = true;
        Application.Quit();

}

function OnGUI(){
	if (a == true){
		GUI.Label(Rect(Screen.width/2,Screen.height/2,600,60),"You win!");
	}
}

function Update () {

}