When I use droolingzombie to test the health bar, it result a very long decimal, I want to convert it into an integer. Any solution?
local player = game.Players.LocalPlayer
local humanoid = player.Character:WaitForChild("Humanoid")
local Label = script.Parent
while true do
local health = humanoid.Health
Label.Text = health
wait(0,1)
end

1 comment
https://developer.roblox.com/en-us/api-reference/event/Humanoid/HealthChanged