Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local REGEN_RATE = 0
- local REGEN_STEP = 0
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement