Make Gui text appear when player approches a gameobject.

Hello.
What i want to do is make a GUI text appear when the player
approches a gameobject and dissaspear when the player go away.
I have a problem with a script that i have copied on another
post:

function OnTriggerEnter (other : Collider) {
    if (other.CompareTag ("Player")) {         
        SendMessageUpwards("SetTheGUI");
    }
}

function OnTriggerExit (other : Collider) {
    if (other.CompareTag ("Player")) {         
        SendMessageUpwards("UnSetGUI");
    }
}

But when i start the game and approches the sphere,It says: Sendmessage SetheGUI has no receivers!

Thanks.

For SendMessageUpwards to work, your trigger object would have to be a child object of the GUIText (which would be kind of weird).
Get a reference to your GUIText object instead and enable/disable it as needed. Something like

var theGuiObject : GUIText; // set this in the inspector view

function OnTriggerEnter (other : Collider) {
    if (other.CompareTag ("Player")) {         
        theGuiObject.enabled = true;
    }
}

function OnTriggerExit (other : Collider) {
    if (other.CompareTag ("Player")) {         
         theGuiObject.enabled = false;
    }
}