MrWiggles1029

rg rejgerig JDIFOJIFNOi**9&*(&^

Dec 1st, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.93 KB | None | 0 0
  1. --Machete by DMS same as fire axe just a machete
  2. o1 = Instance.new("Tool")
  3. o2 = Instance.new("Part")
  4. o3 = Instance.new("CylinderMesh")
  5. o5 = Instance.new("Part")
  6. o6 = Instance.new("CylinderMesh")
  7. o7 = Instance.new("Part")
  8. o8 = Instance.new("SpecialMesh")
  9. o9 = Instance.new("Part")
  10. o10 = Instance.new("BlockMesh")
  11. o11 = Instance.new("Part")
  12. o12 = Instance.new("BlockMesh")
  13. o13 = Instance.new("Part")
  14. o14 = Instance.new("SpecialMesh")
  15. o15 = Instance.new("Part")
  16. o16 = Instance.new("SpecialMesh")
  17. o17 = Instance.new("Part")
  18. o18 = Instance.new("SpecialMesh")
  19. o19 = Instance.new("Part")
  20. o20 = Instance.new("SpecialMesh")
  21. o21 = Instance.new("Part")
  22. o22 = Instance.new("CylinderMesh")
  23. o23 = Instance.new("Part")
  24. o24 = Instance.new("SpecialMesh")
  25. o25 = Instance.new("Part")
  26. o26 = Instance.new("CylinderMesh")
  27. o27 = Instance.new("Animation")
  28. o28 = Instance.new("Animation")
  29. o29 = Instance.new("Animation")
  30. asd = Instance.new("Sound")
  31. asds = Instance.new("Sound")
  32. asd.Name = "Hit"
  33. asd.Parent = o2
  34. asd.SoundId = "rbxassetid://214755079"
  35. asd.Volume = 1
  36. asds.Name = "SlashSound"
  37. asds.Parent = o2
  38. asds.SoundId = "rbxassetid://101164100"
  39. asds.Volume = 1
  40. o1.Name = "Machete"
  41. o1.GripForward = Vector3.new(1, -4.31581502e-005, 3.26636873e-005)
  42. o1.GripRight = Vector3.new(-3.26636837e-005, 9.29513244e-010, 0.99999994)
  43. o1.GripUp = Vector3.new(4.31581502e-005, 1, 4.80190998e-010)
  44. o2.Name = "Handle"
  45. o2.Parent = o1
  46. o2.Material = Enum.Material.SmoothPlastic
  47. o2.BrickColor = BrickColor.new("Black")
  48. o2.Position = Vector3.new(-12.0166664, 0.944444001, -1.11112702)
  49. o2.FormFactor = Enum.FormFactor.Symmetric
  50. o2.Size = Vector3.new(1, 1, 1)
  51. o2.CFrame = CFrame.new(-12.0166664, 0.944444001, -1.11112702, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  52. o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  53. o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  54. o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  55. o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  56. o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  57. o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  58. o2.Color = Color3.new(0.105882, 0.164706, 0.207843)
  59. o3.Parent = o2
  60. o3.Scale = Vector3.new(0.333333343, 0.833333313, 0.333333343)
  61. o5.Parent = o1
  62. o5.Material = Enum.Material.SmoothPlastic
  63. o5.BrickColor = BrickColor.new("Really black")
  64. o5.Position = Vector3.new(-12.0166664, 1.38888705, -1.11112702)
  65. o5.FormFactor = Enum.FormFactor.Symmetric
  66. o5.Size = Vector3.new(1, 1, 1)
  67. o5.CFrame = CFrame.new(-12.0166664, 1.38888705, -1.11112702, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  68. o5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  69. o5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  70. o5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  71. o5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  72. o5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  73. o5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  74. o5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  75. o6.Parent = o5
  76. o6.Scale = Vector3.new(0.444444448, 0.055555556, 0.444444448)
  77. o7.Parent = o1
  78. o7.Material = Enum.Material.SmoothPlastic
  79. o7.Position = Vector3.new(-11.7944441, 2.41665602, -1.11112702)
  80. o7.Rotation = Vector3.new(-90, 0, -90)
  81. o7.FormFactor = Enum.FormFactor.Symmetric
  82. o7.Size = Vector3.new(1, 1, 2)
  83. o7.CFrame = CFrame.new(-11.7944441, 2.41665602, -1.11112702, 0, 1, 0, 0, 0, 1, 1, 0, 0)
  84. o7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  85. o7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  86. o7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  87. o7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  88. o7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  89. o7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  90. o8.Parent = o7
  91. o8.Scale = Vector3.new(0.111111112, 0.166666672, 1)
  92. o8.MeshType = Enum.MeshType.Wedge
  93. o9.Parent = o1
  94. o9.Material = Enum.Material.SmoothPlastic
  95. o9.Position = Vector3.new(-11.9611101, 3.52775002, -1.11112702)
  96. o9.FormFactor = Enum.FormFactor.Symmetric
  97. o9.Size = Vector3.new(1, 1, 1)
  98. o9.CFrame = CFrame.new(-11.9611101, 3.52775002, -1.11112702, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  99. o9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  100. o9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  101. o9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  102. o9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  103. o9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  104. o9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  105. o10.Parent = o9
  106. o10.Scale = Vector3.new(0.277777791, 0.222222224, 0.111111112)
  107. o11.Parent = o1
  108. o11.Material = Enum.Material.SmoothPlastic
  109. o11.Position = Vector3.new(-11.9888878, 2.41665602, -1.11112702)
  110. o11.FormFactor = Enum.FormFactor.Symmetric
  111. o11.Size = Vector3.new(1, 2, 1)
  112. o11.CFrame = CFrame.new(-11.9888878, 2.41665602, -1.11112702, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  113. o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  114. o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  115. o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  116. o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  117. o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  118. o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  119. o12.Parent = o11
  120. o12.Scale = Vector3.new(0.222222224, 1, 0.111111112)
  121. o13.Parent = o1
  122. o13.Material = Enum.Material.SmoothPlastic
  123. o13.Position = Vector3.new(-11.7666664, 3.52775002, -1.11112702)
  124. o13.Rotation = Vector3.new(90, 0, -90)
  125. o13.FormFactor = Enum.FormFactor.Symmetric
  126. o13.Size = Vector3.new(1, 1, 1)
  127. o13.CFrame = CFrame.new(-11.7666664, 3.52775002, -1.11112702, 0, 1, 0, 0, 0, -1, -1, 0, 0)
  128. o13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  129. o13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  130. o13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  131. o13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  132. o13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  133. o13.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  134. o14.Parent = o13
  135. o14.Scale = Vector3.new(0.111111112, 0.111111112, 0.222222224)
  136. o14.MeshType = Enum.MeshType.Wedge
  137. o15.Parent = o1
  138. o15.Material = Enum.Material.SmoothPlastic
  139. o15.Position = Vector3.new(-11.9611101, 3.69442606, -1.11112702)
  140. o15.Rotation = Vector3.new(90, 0, -90)
  141. o15.FormFactor = Enum.FormFactor.Symmetric
  142. o15.Size = Vector3.new(1, 1, 1)
  143. o15.CFrame = CFrame.new(-11.9611101, 3.69442606, -1.11112702, 0, 1, 0, 0, 0, -1, -1, 0, 0)
  144. o15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  145. o15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  146. o15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  147. o15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  148. o15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  149. o15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  150. o16.Parent = o15
  151. o16.Scale = Vector3.new(0.111111112, 0.277777791, 0.111111112)
  152. o16.MeshType = Enum.MeshType.Wedge
  153. o17.Parent = o1
  154. o17.Material = Enum.Material.SmoothPlastic
  155. o17.Position = Vector3.new(-12.1277781, 3.33331394, -1.11112702)
  156. o17.Rotation = Vector3.new(-90, 0, 90)
  157. o17.FormFactor = Enum.FormFactor.Symmetric
  158. o17.Size = Vector3.new(1, 1, 1)
  159. o17.CFrame = CFrame.new(-12.1277781, 3.33331394, -1.11112702, 0, -1, 0, 0, 0, 1, -1, 0, 0)
  160. o17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  161. o17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  162. o17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  163. o17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  164. o17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  165. o17.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  166. o18.Parent = o17
  167. o18.Scale = Vector3.new(0.111111112, 0.055555556, 0.611111104)
  168. o18.MeshType = Enum.MeshType.Wedge
  169. o19.Parent = o1
  170. o19.Material = Enum.Material.SmoothPlastic
  171. o19.Position = Vector3.new(-12.1277781, 2.22220802, -1.11112702)
  172. o19.Rotation = Vector3.new(90, 0, 90)
  173. o19.FormFactor = Enum.FormFactor.Symmetric
  174. o19.Size = Vector3.new(1, 1, 2)
  175. o19.CFrame = CFrame.new(-12.1277781, 2.22220802, -1.11112702, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  176. o19.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  177. o19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  178. o19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  179. o19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  180. o19.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  181. o19.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  182. o20.Parent = o19
  183. o20.Scale = Vector3.new(0.111111112, 0.055555556, 0.805555582)
  184. o20.MeshType = Enum.MeshType.Wedge
  185. o21.Parent = o1
  186. o21.Material = Enum.Material.SmoothPlastic
  187. o21.BrickColor = BrickColor.new("Really black")
  188. o21.Position = Vector3.new(-12.0166664, 0.50000298, -1.11112702)
  189. o21.FormFactor = Enum.FormFactor.Symmetric
  190. o21.Size = Vector3.new(1, 1, 1)
  191. o21.CFrame = CFrame.new(-12.0166664, 0.50000298, -1.11112702, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  192. o21.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  193. o21.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  194. o21.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  195. o21.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  196. o21.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  197. o21.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  198. o21.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  199. o22.Parent = o21
  200. o22.Scale = Vector3.new(0.388888896, 0.055555556, 0.388888896)
  201. o23.Parent = o1
  202. o23.Material = Enum.Material.SmoothPlastic
  203. o23.Position = Vector3.new(-12.1277781, 3.69442606, -1.11112702)
  204. o23.Rotation = Vector3.new(90, 0, 90)
  205. o23.FormFactor = Enum.FormFactor.Symmetric
  206. o23.Size = Vector3.new(1, 1, 1)
  207. o23.CFrame = CFrame.new(-12.1277781, 3.69442606, -1.11112702, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  208. o23.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  209. o23.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  210. o23.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  211. o23.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  212. o23.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  213. o23.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  214. o24.Parent = o23
  215. o24.Scale = Vector3.new(0.111111112, 0.055555556, 0.111111112)
  216. o24.MeshType = Enum.MeshType.Wedge
  217. o25.Name = "CHOPPART"
  218. o25.Parent = o1
  219. o25.Material = Enum.Material.SmoothPlastic
  220. o25.BrickColor = BrickColor.new("Black")
  221. o25.Transparency = 1
  222. o25.Position = Vector3.new(-12.0116653, 2.68785763, -1.08112705)
  223. o25.FormFactor = Enum.FormFactor.Symmetric
  224. o25.Size = Vector3.new(0.689999998, 2.38999987, 0.200000003)
  225. o25.CFrame = CFrame.new(-12.0116653, 2.68785763, -1.08112705, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  226. o25.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  227. o25.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  228. o25.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  229. o25.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  230. o25.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  231. o25.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  232. o25.Color = Color3.new(0.105882, 0.164706, 0.207843)
  233. o26.Parent = o25
  234. o26.Scale = Vector3.new(0.333333343, 0.833333313, 0.333333343)
  235. o27.Name = "Chop"
  236. o27.Parent = o1
  237. o27.AnimationId = "rbxassetid://32659699"
  238. o28.Name = "Slice"
  239. o28.Parent = o1
  240. o28.AnimationId = "rbxassetid://28090109"
  241. o29.Name = "Whack"
  242. o29.Parent = o1
  243. o29.AnimationId = "http://www.roblox.com/Asset?ID=94161088"
  244. o1.Parent = game.Players.LocalPlayer.Backpack
  245. for i,v in pairs (o1:GetChildren()) do
  246. if v:IsA("Animation") then
  247. elseif v:IsA("Sound") then
  248. else
  249. v.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  250. v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  251. v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  252. v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  253. v.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  254. v.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  255. end
  256. end
  257.  
  258. repeat wait() until o1:FindFirstChild("Handle")
  259.  
  260. local Welds = {}
  261.  
  262. function ClearOldWelds(tbl)
  263. for _,v in pairs(tbl) do
  264. if v:IsA('Weld') then
  265. v:Destroy()
  266. end
  267. end
  268. end
  269.  
  270. function Equipped()
  271. for i,v in pairs (o1:GetChildren()) do
  272. if v:IsA("Animation") then
  273. elseif v:IsA("Sound") then
  274. else
  275. v.Anchored = false
  276. end
  277. end
  278. local Handle = o1:FindFirstChild('Handle')
  279. if not Handle then return end
  280. local tble = Handle:GetChildren()
  281. for _,v in pairs(o1:GetChildren()) do
  282. if v:IsA('Part') or v:IsA('WedgePart') and v ~= Handle then
  283. local c1
  284. for _1,v1 in pairs(Welds) do
  285. if _1 == v then
  286. c1 = v1
  287. break
  288. end
  289. end
  290.  
  291. if not c1 then
  292. Welds[v] = v.CFrame:inverse()*Handle.CFrame
  293. v.Anchored = true
  294. c1 = Welds[v]
  295. end
  296.  
  297. local Weld = Instance.new('Weld')
  298. Weld.Part0 = Handle
  299. Weld.Part1 = v
  300. Weld.C0 = CFrame.new()
  301. Weld.C1 = c1
  302. Weld.Parent = Handle
  303.  
  304. end
  305. end
  306. ClearOldWelds(tble)
  307. Handle.Anchored=false
  308. end
  309.  
  310. Equipped()
  311. o1.Equipped:connect(Equipped)
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320. Tool = o1
  321. Handle = Tool:WaitForChild("Handle")
  322.  
  323. Players = game:GetService("Players")
  324. Debris = game:GetService("Debris")
  325. InsertService = game:GetService("InsertService")
  326. function onEquipped(mouse2)
  327. mouse2.KeyDown:connect(onkeyDown)
  328. mouse = mouse2
  329. end
  330. o1.Equipped:connect(onEquipped)
  331. WhackAnim = Tool:WaitForChild("Whack")
  332. ChopAnim = Tool:WaitForChild("Chop")
  333. SliceAnim = Tool:WaitForChild("Slice")
  334. SlashSound = Handle:WaitForChild("SlashSound")
  335. HitSound = Handle:WaitForChild("Hit")
  336.  
  337. Damage = 10
  338.  
  339. ReloadTime = .4
  340.  
  341. Kills = 0
  342.  
  343. function TagHumanoid(humanoid, player) --registers you actually Hitting the guy
  344. HitSound:Play()
  345. local Creator_Tag = Instance.new("ObjectValue")
  346. Creator_Tag.Name = "creator"
  347. Creator_Tag.Value = player
  348. Debris:AddItem(Creator_Tag, 2)
  349. Creator_Tag.Parent = humanoid
  350. end
  351. function onkeyDown(key)
  352. if Tool.Enabled then
  353. if key == "q" then
  354. Slice = Humanoid:LoadAnimation(SliceAnim)
  355. if Slice then
  356. Slice:Play()
  357. SlashSound:Play()
  358. wait(1)
  359. SlashSound:Play()
  360. end
  361. Tool.Enabled = true
  362. end
  363. end
  364.  
  365. if Tool.Enabled then
  366. if key == "e" then
  367. Chop = Humanoid:LoadAnimation(ChopAnim)
  368. if Chop then
  369. Chop:Play()
  370. SlashSound:Play()
  371. end
  372. Tool.Enabled = true
  373. end
  374. end
  375. end
  376.  
  377. function UntagHumanoid(humanoid)
  378. for i, v in pairs(humanoid:GetChildren()) do
  379. if v:IsA("ObjectValue") and v.Name == "creator" then
  380. v:Destroy()
  381. end
  382. end
  383. end
  384.  
  385. function Blow(Hit)
  386. if Hit.Name == "Head" then
  387. Hit.Anchored= false Hit.Size = Vector3.new(2, 0.2, 1)
  388. Hit.BrickColor = BrickColor.new("Maroon")
  389. o1 = Instance.new("Sound")
  390. o1.Parent = Hit
  391. o1.SoundId = "rbxassetid://429400881"
  392. o1:Play()
  393. end
  394. if Hit.Name == "Right Arm" then
  395. o11.Name = "CHOPPART"
  396. o11.Parent = workspace
  397. o11.BrickColor = BrickColor.new("Maroon")
  398. o11.Position = Hit.Position
  399. o11.Rotation = Vector3.new(-180, 1.29089606, 180)
  400. o11.FormFactor = Enum.FormFactor.Symmetric
  401. o11.Size = Vector3.new(1, 2, 1)
  402. o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  403. o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  404. o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  405. o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  406. o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  407. o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  408. o11.Color = Color3.new(0.458824, 0, 0)
  409. Hit:Destroy()
  410. o1 = Instance.new("Sound")
  411. o1.Parent = o11
  412. o1.SoundId = "rbxassetid://429400881"
  413. o1:Play()
  414.  
  415. end
  416. if Hit.Name == "Left Arm" then
  417. o11 = Instance.new("Part")
  418. o11.Name = "GOREPART"
  419. o11.Parent = workspace
  420. o11.BrickColor = BrickColor.new("Maroon")
  421. o11.Position = Hit.Position
  422. o11.Rotation = Vector3.new(-180, 1.29089606, 180)
  423. o11.FormFactor = Enum.FormFactor.Symmetric
  424. o11.Size = Vector3.new(1, 2, 1)
  425. o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  426. o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  427. o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  428. o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  429. o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  430. o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  431. o11.Color = Color3.new(0.458824, 0, 0)
  432. Hit:Destroy()
  433. o1 = Instance.new("Sound")
  434. o1.Parent = o11
  435. o1.SoundId = "rbxassetid://429400881"
  436. o1:Play()
  437.  
  438. end
  439. if Hit.Name == "Right Leg" then
  440. Hit:Destroy()
  441. o1 = Instance.new("Sound")
  442. o1.Parent = o11
  443. o1.SoundId = "rbxassetid://429400881"
  444. o1:Play()
  445.  
  446. end
  447. if Hit.Name == "Left Arm" then
  448. o11 = Instance.new("Part")
  449. o11.Name = "GOREPART"
  450. o11.Parent = workspace
  451. o11.BrickColor = BrickColor.new("Maroon")
  452. o11.Position = Hit.Position
  453. o11.Rotation = Vector3.new(-180, 1.29089606, 180)
  454. o11.FormFactor = Enum.FormFactor.Symmetric
  455. o11.Size = Vector3.new(1, 2, 1)
  456. o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  457. o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  458. o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  459. o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  460. o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  461. o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  462. o11.Color = Color3.new(0.458824, 0, 0)
  463. Hit:Destroy()
  464. o1 = Instance.new("Sound")
  465. o1.Parent = o11
  466. o1.SoundId = "rbxassetid://429400881"
  467. o1:Play()
  468.  
  469. end
  470.  
  471. if Hit.Name == "Left Leg" then
  472. Hit:Destroy()
  473. o1 = Instance.new("Sound")
  474. o1.Parent = o11
  475. o1.SoundId = "rbxassetid://429400881"
  476. o1:Play()
  477.  
  478. end
  479. if Hit.Name == "Left Arm" then
  480. o11 = Instance.new("Part")
  481. o11.Name = "GOREPART"
  482. o11.Parent = workspace
  483. o11.BrickColor = BrickColor.new("Maroon")
  484. o11.Position = Hit.Position
  485. o11.Rotation = Vector3.new(-180, 1.29089606, 180)
  486. o11.FormFactor = Enum.FormFactor.Symmetric
  487. o11.Size = Vector3.new(1, 2, 1)
  488. o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  489. o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  490. o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  491. o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  492. o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  493. o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  494. o11.Color = Color3.new(0.458824, 0, 0)
  495. Hit:Destroy()
  496. o1 = Instance.new("Sound")
  497. o1.Parent = o11
  498. o1.SoundId = "rbxassetid://429400881"
  499. o1:Play()
  500.  
  501. end
  502. if Hit.Name == "Torso" then
  503. o11 = Instance.new("Part")
  504. o2 = Instance.new("Part")
  505. o2.Name = "GOREPART"
  506. o2.Parent = workspace
  507. o2.BrickColor = BrickColor.new("Maroon")
  508. o2.Position = Hit.Position
  509. o2.Rotation = Vector3.new(-180, 1.29089832, 180)
  510. o2.CanCollide = true
  511. o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  512. o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  513. o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  514. o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  515. o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  516. o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  517. o2.Size = Vector3.new(2, 1, 1)
  518. o2.LeftSurface = Enum.SurfaceType.Weld
  519. o2.RightSurface = Enum.SurfaceType.Weld
  520. o2.Color = Color3.new(0.105882, 0.164706, 0.207843)
  521. o1 = Instance.new("Part")
  522. o1.Name = "GOREPART"
  523. o1.Parent = workspace
  524. o1.BrickColor = BrickColor.new("Maroon")
  525. o1.Position = Hit.Position
  526. o1.Rotation = Vector3.new(-180, 1.29089832, 180)
  527. o1.CanCollide = true
  528. o1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  529. o1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  530. o1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  531. o1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  532. o1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  533. o1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  534. o1.Size = Vector3.new(2, 1, 1)
  535. o1.LeftSurface = Enum.SurfaceType.Weld
  536. o1.RightSurface = Enum.SurfaceType.Weld
  537. o1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  538.  
  539.  
  540. Hit:Destroy()
  541. o1 = Instance.new("Sound")
  542. o1.Parent = o11
  543. o1.SoundId = "rbxassetid://429400881"
  544. o1:Play()
  545.  
  546. end --registers the Hit, deals damage to the player, and if the humanoid has 0 health a kill is added into the killstreak.
  547. if Hit and Hit.Parent then
  548. local character = Hit.Parent
  549. local humanoid = character:FindFirstChild("Humanoid")
  550. if Humanoid and Humanoid ~= humanoid and humanoid and Humanoid.Health > 0 and humanoid.Health > 0 then
  551. local Right_Arm = Character:FindFirstChild("Right Arm")
  552. if Right_Arm then
  553. local Joint = Right_Arm:FindFirstChild("RightGrip")
  554. if (Joint and (Joint.Part0 == Handle or Joint.Part1 == Handle)) then
  555. humanoid:TakeDamage(Damage) --deal regular damage or instakill normal health players if a ninja
  556. UntagHumanoid(humanoid)
  557. TagHumanoid(humanoid, Player)
  558. end
  559. end
  560. end
  561. end
  562. end
  563.  
  564. function Activated() --when you swing
  565. if Tool.Enabled then
  566. Tool.Enabled = false
  567. Whack = Humanoid:LoadAnimation(WhackAnim)
  568. if Whack then
  569. Whack:Play()
  570. SlashSound:Play()
  571. end
  572. wait(ReloadTime)
  573. Tool.Enabled = true
  574. end
  575. end
  576.  
  577. function Equipped(mouse) --get everything settled up
  578. Character = Tool.Parent
  579. Player = Players:GetPlayerFromCharacter(Character)
  580. Humanoid = Character:FindFirstChild("Humanoid")
  581. Torso = Character:FindFirstChild("Torso")
  582. if not Humanoid or not Torso then
  583. return
  584. end
  585.  
  586. if not Tool.Enabled then
  587. wait(ReloadTime)
  588. Tool.Enabled = true
  589. end
  590. end
  591.  
  592. function Unequipped()
  593. if Whack then
  594. Whack:Stop()
  595. end
  596. if Slice then
  597. Slice:Stop()
  598. end
  599. if Chop then
  600. Chop:Stop()
  601. end
  602. end
  603.  
  604.  
  605. Mouse_Icon = "rbxasset://textures/GunCursor.png"
  606. Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
  607.  
  608. Tool = o1
  609.  
  610. Mouse = nil
  611.  
  612. function UpdateIcon()
  613. if Mouse then
  614. Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
  615. end
  616. end
  617.  
  618. function OnEquipped(ToolMouse)
  619. Mouse = ToolMouse
  620. UpdateIcon()
  621. end
  622.  
  623. function OnChanged(Property)
  624. if Property == "Enabled" then
  625. UpdateIcon()
  626. end
  627. end
  628.  
  629. Tool.Equipped:connect(OnEquipped)
  630. Tool.Changed:connect(OnChanged)
  631.  
  632. Tool.Activated:connect(Activated)
  633. Tool.Equipped:connect(Equipped)
  634. Tool.Unequipped:connect(Unequipped)
  635.  
  636. Tool.CHOPPART.Touched:connect(Blow)
Add Comment
Please, Sign In to add comment