Advertisement
Remusutules

Health Disable

Nov 28th, 2024
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. local REGEN_RATE = 0
  2. local REGEN_STEP = 0
  3. local Character = script.Parent
  4. local Humanoid = Character:WaitForChild'Humanoid'
  5.  
  6. while true do
  7. while Humanoid.Health < Humanoid.MaxHealth do
  8. local dt = wait(REGEN_STEP)
  9. local dh = dt*REGEN_RATE*Humanoid.MaxHealth
  10. Humanoid.Health = math.min(Humanoid.Health + dh, Humanoid.MaxHealth)
  11. end
  12. Humanoid.HealthChanged:Wait()
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement