|
| 20 Jun 2017 01:43 PM |
The health and level show up fine but when you go into workspace --> Players --> Your player name ---> Leaderstats2 ---> Level and change it to 2 the health stays at 150 and the level stays at 1 appearing on the textlabels
local player=game.Players.LocalPlayer local char=player.Character or player.CharacterAdded:wait() local hum=char:WaitForChild("Humanoid") local pgui=player.PlayerGui local holder=pgui.Level.Holder local lgui=holder.Level local dgui=holder.Damage local hgui=holder.Health local lstats=player:WaitForChild("leaderstats2") local level=lstats:WaitForChild("Level")
if level.Value<1 then level.Value=1 end local health=level.Value*150 hum.MaxHealth=health hum.Health=health local function onhealth() hgui.Text="Health: "..tostring(math.floor(hum.Health+0.5)).."/"..tostring(hum.MaxHealth) lgui.Text="Level: "..level.Value end onhealth() hum.HealthChanged:Connect(onhealth)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|