Advertisement
zed_isJayTheLionJR

MMMMMMMHHHHH GIRL U NASTY

Apr 7th, 2019
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. function waitForChild(parent, childName)
  2. while true do
  3. local child = parent:findFirstChild(childName)
  4. if child then
  5. return child
  6. end
  7. parent.ChildAdded:wait()
  8. end
  9. end
  10.  
  11. -- declarations
  12.  
  13. local Figure = script.Parent
  14. local Head = waitForChild(Figure, "Head")
  15. local Humanoid = waitForChild(Figure, "Humanoid")
  16. Humanoid.Health=999999
  17. -- regeneration
  18. --[[
  19. while true do
  20. local s = wait(4)
  21. local health = Humanoid.Health
  22. if health > 0 and health < Humanoid.MaxHealth then
  23. health = health + 0.08 * s * Humanoid.MaxHealth
  24. if health * 1.05 < Humanoid.MaxHealth then
  25. Humanoid.Health = health
  26. else
  27. Humanoid.Health = Humanoid.MaxHealth
  28. end
  29. end
  30. end
  31. --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement