gui text update on triggerenter

pls guide me to bypass below issues in my game:

  1. When player ball reached the destination trigger then how can i display the score in gui text?
  2. when the player collides with the enemy ball the player have to lose one if his life and need to be to be displayed the lives left using gui text?

Thanks!!!

This video by Envatio shows you how to do it:

Basically OnTriggerEnter()you can set the GUITexture enabled property to true.

var completedImage : GUITexture;

function Start() {
    // hidden by default
    completedImage.enabled = false;
}

function OnTriggerEnter() {
    completedImage.enabled = true;
}

Pls help me in the below problem:

when the player collides with the enemy ball the player have to lose one if his life and need to be to be displayed the lives left using gui text?