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


while true do
	while Humanoid.Health < Humanoid.MaxHealth do
		if Character:FindFirstChild("Regen") then
			local dt = task.wait(0.000001)
			local dh = dt*75/100*Humanoid.MaxHealth
			
			Humanoid.Health = math.min(Humanoid.Health + dh, Humanoid.MaxHealth)
		else
			local dt = wait(REGEN_STEP)
			local dh = dt*REGEN_RATE*Humanoid.MaxHealth
			
			Humanoid.Health = math.min(Humanoid.Health + dh, Humanoid.MaxHealth)
		end
	end
	Humanoid.HealthChanged:Wait()
end
