https://gyazo.com/4cbf374bf42c8990918fb3010430ca5e
It's just a simple healthbar script. Btw I'm still new to scripting.
local player = game.Players.LocalPlayer
local health = script.Parent
local character = player.Character or player.Character:Wait()
local hum = character:WaitForChild("Humanoid")
while wait() do
local percent = hum.Health / hum.MaxHealth
health.Size = UDim2.fromScale(percent - 0.06, 0.574) --hmmmmm
health.Text = math.floor(player.Character.Humanoid.Health)
end

1 comment
Thank you so much, it worked! I just changed the math.clamp(percent, 0.05, 1).