local L=.01 local G=1 local Y=script.Parent local U=Y:WaitForChild("\072\117\109\097\110\111\105\100")while true do while U.Health<U.MaxHealth do local Y=wait(G)local Z=(Y*L)*U.MaxHealth U.Health=math.min(U.Health+Z,U.MaxHealth)end U.HealthChanged:Wait()end
-- Gradually regenerates the Humanoid's Health over time.

local REGEN_RATE = 1 / 100 -- Regenerate this fraction of MaxHealth per second.
local REGEN_STEP = 1 -- Wait this long between each regeneration step.

--------------------------------------------------------------------------------

local Character = script.Parent
local Humanoid = Character:WaitForChild "Humanoid"

--------------------------------------------------------------------------------

while true do
	while Humanoid.Health < Humanoid.MaxHealth do
		local dt = wait(REGEN_STEP)
		local dh = dt * REGEN_RATE * Humanoid.MaxHealth
		Humanoid.Health = math.min(Humanoid.Health + dh, Humanoid.MaxHealth)
	end
	Humanoid.HealthChanged:Wait()
end
