How do you make the Health round to nearest one in this script? This script is in an NPC. The health regeneration causes the health to be in a decimal place, but I want it to show only the whole number. In other words, I want the NPC's name to display as a whole number, but his health is still generating in decimals.
while true do
script.Parent.Name = "Name Lv 1 " .. script.Parent.Humanoid.Health .. "/" .. script.Parent.Humanoid.MaxHealth
wait()
end

1 comment
https://scriptinghelpers.org/questions/4850/how-do-i-round-numbers-in-lua-answered