GUI on a network.

Hello there. I have a dragon on my server and I am struggling to have it so that when the dragon loses some health the GUI box will be the health of the dragon to every player in the game. But right now. If someone deducts 10 health from the dragon, to everyone else on the server the health won’t have moved.Also, when the dragon is dead, and it get’s destroyed. It only gets destroyed for the person that has took away all of it’s health. Thanks to anyone who can help! :slight_smile:
Here is my current script too if it may help.

#pragma strict
var DragonHealthGUI : boolean = false;

var DragonHealth : int = 960;

var DragonDead : boolean = false;

var Coin : Transform;

var DragonWorks : boolean = false;

function OnTriggerStay(other : Collider){

if(other.tag == “Dragon”){

if(Input.GetKeyUp(KeyCode.RightAlt)){

DragonHealth -=10;

}

DragonHealthGUI = true;

}

}

function OnTriggerExit(){

DragonHealthGUI = false;

}

function Update () {

if(DragonHealth <= 1){

var Dragon = GameObject.Find(“Dragon”);

Destroy(Dragon.gameObject);

DragonHealthGUI = false;

}

}

function OnGUI(){

if(DragonHealthGUI){

GUI.Box(Rect(130,0,DragonHealth,28),“|” + DragonHealth);
}

}

easy just make it like this (C#) ciode you translate

[RPC]
void TakeDamage(int DMG) {
 DragonHealth -=10;
}

//then when you make damage to the dragon

call the RPC function buffered all.

if you need more help ask again.