I have another script that changes the clips but this one is not picking the var up. Please Help
Script I do not get any errors but it is not working :
var Gui : GameObject;
var GuiUpTime = 10;
function Update ()
{
Gui.active = false;
var other : gunscript = gameObject.GetComponent(gunscript);
if (other.Clips>=0)
{ Gui.active = true; end ();
}
}
function end ()
{ yield WaitForSeconds (GuiUpTime);
Gui.active = false; Update (); }