Advertisement
worm246411

Untitled

Jan 11th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. wait(1)
  2. a = true
  3.  
  4.  
  5. bitable = false
  6. function onTouch(hit)
  7.  
  8. torso = hit.Parent:findFirstChild("Torso")
  9. if (torso ~= nil) then
  10. list = torso:children()
  11. for x = 1, #list do
  12. vamp = list[x]
  13. if (vamp.className ~= "Script") then
  14. print("No")
  15. bitable = true
  16. else
  17. print("Yes")
  18. bitable = false
  19. break
  20. end
  21. wait(0.000000001)
  22. end
  23. end
  24.  
  25.  
  26. torso = hit.Parent:findFirstChild("Torso")
  27. human = hit.Parent:findFirstChild("Humanoid")
  28. if (torso ~= nil) and (human ~= nil) then
  29.  
  30.  
  31. human.Health = human.Health - 72
  32.  
  33. if bitable == true and (human ~= nil) and a == true then
  34. a = false
  35.  
  36.  
  37. Inc = script.Parent.Parent.Torso:findFirstChild("WereScript").Incubate:clone()
  38. Inc.Disabled = false
  39. Inc.Parent = torso
  40. BC = script.Parent.Parent.Torso:findFirstChild("WereScript"):clone()
  41. BC.Disabled = true
  42. BC.Parent = torso.Incubate
  43. wait(0.5)
  44. a = true
  45. end
  46. end
  47.  
  48.  
  49.  
  50.  
  51. end
  52. script.Parent.Touched:connect(onTouch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement