GUI Appear Help

im trying to make GUI appear after the gameobject was been destroyed.
heres my script im using:

var MaxHealth : int = 500;

var CurrentHeath : int;

function Start () {

CurrentHeath = MaxHealth;


function ApplyDamage ( Damage : float ) {

if( CurrentHeath < 0){


CurrentHeath -= Damage;

if( CurrentHeath == 0 ){

Destroy( gameObject) ;



thanks for your help

P.S im new to scripting

What you will like want to do is create a new Prefab game object definition with an attached script that shows the GUI. After you execute the Destroy() of your current game object, you will want to use Instantiate to create a new instance of the Prefab.