nealpogi213

Untitled

Apr 21st, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. wait()
  2.  
  3. local zName = "ZombieBOB" --Change h4x to the name of the zombie in the lighting
  4.  
  5. local z = game.Lighting:findFirstChild(zName):clone()
  6. local zom = nil
  7.  
  8. function regen()
  9. if zom then
  10. zom.Parent = nil
  11. end
  12. local z2 = z:clone()
  13. zom = z2
  14. zom:MakeJoints()
  15. zom.Parent = game.Workspace
  16. zom:MoveTo(script.Parent.Position + Vector3.new(0, 4, 0))
  17. zom:MakeJoints()
  18. local zP = zom:GetChildren()
  19. for i = 1, #zP do
  20. if zP[i]:IsA("Script") then
  21. zP[i].Disabled = false
  22. end
  23. if zP[i]:IsA("Humanoid") then
  24. zP[i].Died:connect(die)
  25. end
  26. end
  27. end
  28.  
  29. function die()
  30. wait(5)
  31. regen()
  32. end
  33.  
  34. wait(10)
  35.  
  36. regen()
Add Comment
Please, Sign In to add comment