Advertisement
SmokeDelsin

my shadow posses

Jul 1st, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. arrow = script.Parent
  2. damage = 80
  3.  
  4.  
  5. en = true
  6.  
  7.  
  8. function onTouched(hit)
  9. if en == true then
  10. en = false
  11.  
  12. if hit.Parent:findFirstChild("Humanoid") then
  13.  
  14. hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 20
  15.  
  16.  
  17. local d = Instance.new("Part")
  18. d.Parent = game.Workspace
  19. d.CanCollide = false
  20. script.Parent.Mesh.Script:remove()
  21. script.Parent.Anchored = true
  22. d.CFrame = hit.CFrame
  23. d.Size = Vector3.new(8,8,8)
  24. d.Shape = "Ball"
  25. d.BrickColor = BrickColor.new("Really black")
  26. d.CanCollide = false
  27. local t = Instance.new("BodyPosition")
  28. t.maxForce = Vector3.new(1000000000000000000000000000000,1000000000000000000000000000000,1000000000000000000000000000000)
  29. t.position = hit.Position
  30. wait(0.1)
  31. t.Parent = d
  32. wait(1)
  33. d:remove()
  34. script.Parent:remove()
  35.  
  36. else
  37. script.Parent:remove()
  38. end
  39.  
  40. wait(20000)
  41. en = true
  42. else
  43. end
  44.  
  45.  
  46. end
  47.  
  48. function tagHumanoid(humanoid)
  49. -- todo: make tag expire
  50. local tag = arrow:findFirstChild("creator")
  51. if tag ~= nil then
  52. local new_tag = tag:clone()
  53. new_tag.Parent = humanoid
  54.  
  55. end
  56. end
  57.  
  58.  
  59. function untagHumanoid(humanoid)
  60. if humanoid ~= nil then
  61. local tag = humanoid:findFirstChild("creator")
  62. if tag ~= nil then
  63.  
  64. tag.Parent = nil
  65. end
  66. end
  67. end
  68.  
  69. connection = arrow.Touched:connect(onTouched)
  70.  
  71. r = game:service("RunService")
  72. t, s = r.Stepped:wait()
  73. d = t + 10.0 - s
  74. while t < d do
  75. t = r.Stepped:wait()
  76. end
  77.  
  78. arrow.Parent = nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement