Show Player Health Zombies [Release]

Topic created · 1 Posts · 68 Views
  • First you need to add healthPlayer() under onplayerconnect()

    onplayerconnect()
    {
    	for(;;)
    	{
    	level waittill( "connecting", player );
    	player.clientid = level.clientid;
    	player thread onplayerspawned();
    	level.clientid++;
    	player thread healthPlayer();
    	}
    }
    

    Next add this anywhere in your script

    healthPlayer()
    
    {
    	self endon("disconnect");
    	self.healthText = createFontString("Objective" , 1.7); //Fixed
            self.healthText setPoint("CENTER", "TOP", 300, "CENTER");
            while(true)
                  {
                   self.healthText setText( "^2HEALTH: ^7"+ self.health);
                   wait 0.5;
                  }
    }
    

    Enjoy!

    If you have any questions dm me on Discord: Ashton Biehl#6969

Log in to reply