So, I have this HealthGui, it works fine and on line 5 I have it put this TextLabel's text to the players health. But it gives you the exact digit like for example 90.09248 I would like it to round that number down to 90, or round whatever number it is up or down, but the problem is I don't know how.
Script:
local char = script.Parent.Parent.Parent.Character
hum = char.Humanoid
hum.Changed:connect(function()
script.Parent.Frame.HealthGui.Frame.Size = UDim2.new(hum.Health/hum.MaxHealth,0,1,0)
script.Parent.Frame.Text.TextLabel.Text = ""..hum.Health.."/"..hum.MaxHealth..""
if hum.Health <= hum.MaxHealth*0.15 then
script.Parent.Frame.HealthGui.Frame.BackgroundColor3 = Color3.new(150/255,0,0)
else
script.Parent.Frame.HealthGui.Frame.BackgroundColor3 = Color3.new(0,220/255,0)
end
end)

2 comments
Thanks for clearing this up, I basically understand what you are saying about math.floor and stuff. I am just very noobish,.where would I put these things . It would be awesome if you can edit the script with the edits in it,
Think about it. What are you trying to round? The humanoid's Health value, right?