|
| 12 Feb 2016 11:46 AM |
So i have this little localscript on a textlabel...
local player = game.Players.LocalPlayer
while true do script.Parent.Text = "Rock : "..player.leaderstats.Rock.Value.." Wood : "..player.leaderstats.Wood.Value.." Hunger : %"..player.leaderstats.Hunger.Value.." HP : "..player.Character.Humanoid.Health wait() end
Ingame. the health output (i'm damaging myself to have 71 Health) the Text is like this Rock : 0 Wood : 0 HP : 71.244514465332 |
|
|
| Report Abuse |
|
|
|
| 12 Feb 2016 11:48 AM |
| I think of a better method! Making a int value that gets updated with player health. so it doesn't glitch. |
|
|
| Report Abuse |
|
|
|
| 12 Feb 2016 12:24 PM |
| math.floor(player.Character.Humanoid.Health) |
|
|
| Report Abuse |
|
|