RibCripql

Untitled

Apr 22nd, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. t = Instance.new("Tool")
  2. t.Parent = game.Players.acb227.Backpack
  3. t.Name = "Humanoid"
  4. handlee = Instance.new("Part")
  5. handlee.Position = Vector3.new(100,0,100)
  6. handlee.Size = Vector3.new(1,1,1)
  7. handlee.BrickColor = BrickColor.new(1003)
  8. handlee.Anchored = false
  9. handlee.Name = "Handle"
  10. handlee.Parent = t
  11. handlee.Transparency = 1
  12. handlee.BottomSurface = 0
  13. handlee.Material = "Slate"
  14. handlee.TopSurface = 0
  15.  
  16. f=Instance.new("CylinderMesh")
  17. f.Parent = handlee
  18. f.Scale = Vector3.new(0.01,0.01,0.01)
  19.  
  20. f = Instance.new("Fire")
  21. f.Parent = handlee
  22. f.Heat = 25
  23. f.Color = Color3.new(0,1,0)
  24. f.Size = 3
  25.  
  26.  
  27. ---------------------Part 2
  28. ---------------------Part 2
  29. ---------------------Part 2
  30.  
  31. r = game:service("RunService")
  32.  
  33.  
  34. local Health = 100
  35.  
  36.  
  37. local slash_damage = 0
  38.  
  39.  
  40. sword = handlee
  41. Tool = t
  42.  
  43.  
  44.  
  45.  
  46. Tool.Enabled = true
  47.  
  48. function onActivated()
  49.  
  50. if not Tool.Enabled then
  51. return
  52. end
  53.  
  54. Tool.Enabled = false
  55.  
  56. local character = Tool.Parent;
  57. local humanoid = character.Humanoid
  58. if humanoid == nil then
  59. print("Humanoid not found")
  60. return
  61. end
  62.  
  63.  
  64.  
  65. attack()
  66.  
  67. wait()
  68.  
  69. Tool.Enabled = true
  70. end
  71.  
  72.  
  73. function onEquipped()
  74.  
  75. end
  76.  
  77.  
  78. ------part 3
  79. ------part 3
  80. ------part 3
  81. function onTouched(hit)
  82. h = hit.Parent:findFirstChild("Humanoid")
  83. if h ~= nil then
  84. h:Remove()
  85. end
  86. end
  87.  
  88.  
  89. Tool.Activated:connect(onActivated)
  90. Tool.Equipped:connect(onEquipped)
  91. sword.Touched:connect(onTouched)
  92. wwwwwww
Add Comment
Please, Sign In to add comment