Advertisement
agentagony124

ZXBasic

May 22nd, 2020
3,319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Character = script.Parent
  2. local Humanoid = Character:WaitForChild'Humanoid'
  3.  
  4. WHILE true DO
  5. wait(0)
  6. Humanoid.HealthChanged:connect(FUNCTION()
  7.     IF Humanoid.Health < 0 THEN
  8.         Humanoid.Health = Humanoid.MaxHealth
  9.     END
  10. END)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement