Advertisement
CryniteEpic

Bloody Fireaxe (Roblox)

Dec 30th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 20.29 KB | None | 0 0
  1. o1 = Instance.new("Tool")
  2. o1.Name = "Fire Axe"
  3. o1.GripForward = Vector3.new(-1.74845553e-007, 4.37113812e-008, 1)
  4. o1.GripPos = Vector3.new(0.487703323, -3.7742065e-010, 0.00863459334)
  5. o1.GripRight = Vector3.new(-7.64274186e-015, -1, 4.37113812e-008)
  6. o1.GripUp = Vector3.new(-1, 0, -1.74845553e-007)
  7. o1.CanBeDropped = false
  8. o4 = Instance.new("Animation")
  9. o4.Name = "Whack"
  10. o4.Parent = o1
  11. o4.AnimationId = "http://www.roblox.com/Asset?ID=94161088"
  12. o7 = Instance.new("Part")
  13. o7.Name = "Wedge"
  14. o7.Parent = o1
  15. o7.Material = Enum.Material.Metal
  16. o7.BrickColor = BrickColor.new("Maroon")
  17. o7.Position = Vector3.new(-9.99647808, 2.66786528, 55.8684578)
  18. o7.Rotation = Vector3.new(5.00001049, 0, -180)
  19. o7.Anchored = true
  20. o7.CFrame = CFrame.new(-9.99647808, 2.66786528, 55.8684578, -1, 0, 0, 0, -0.996185839, -0.0871551484, 0, -0.0871551558, 0.996185839)
  21. o7.FormFactor = Enum.FormFactor.Custom
  22. o7.Size = Vector3.new(0.39738366, 0.39738363, 0.39738363)
  23. o7.BottomSurface = Enum.SurfaceType.Smooth
  24. o7.TopSurface = Enum.SurfaceType.Smooth
  25. o7.Color = Color3.new(0.458824, 0, 0)
  26. o8 = Instance.new("SpecialMesh")
  27. o8.Parent = o7
  28. o8.Scale = Vector3.new(0.285714298, 0.571428597, 0.142857149)
  29. o8.MeshType = Enum.MeshType.Wedge
  30. o9 = Instance.new("Part")
  31. o9.Parent = o1
  32. o9.Material = Enum.Material.Metal
  33. o9.BrickColor = BrickColor.new("Maroon")
  34. o9.Position = Vector3.new(-9.99647808, 3.02555633, 56.01371)
  35. o9.Rotation = Vector3.new(95.0000076, 0, -90)
  36. o9.Anchored = true
  37. o9.CFrame = CFrame.new(-9.99647808, 3.02555633, 56.01371, 0, 1, 0, 0.0871551484, 0, -0.996185839, -0.996185839, 0, -0.0871551558)
  38. o9.FormFactor = Enum.FormFactor.Custom
  39. o9.Size = Vector3.new(0.39738366, 0.39738363, 0.39738363)
  40. o9.BottomSurface = Enum.SurfaceType.Smooth
  41. o9.TopSurface = Enum.SurfaceType.Smooth
  42. o9.Color = Color3.new(0.458824, 0, 0)
  43. o10 = Instance.new("BlockMesh")
  44. o10.Parent = o9
  45. o10.Scale = Vector3.new(0.714285731, 0.285714298, 1.28571427)
  46. o11 = Instance.new("Part")
  47. o11.Parent = o1
  48. o11.Material = Enum.Material.Metal
  49. o11.BrickColor = BrickColor.new("Black")
  50. o11.Position = Vector3.new(-9.99639225, 1.28804588, 55.8821335)
  51. o11.Rotation = Vector3.new(-98.331665, 90, 0)
  52. o11.Anchored = true
  53. o11.CFrame = CFrame.new(-9.99639225, 1.28804588, 55.8821335, 0, 0, 1, -0.989437163, -0.144901738, 0, 0.144901723, -0.989437163, 0)
  54. o11.FormFactor = Enum.FormFactor.Plate
  55. o11.Size = Vector3.new(0.0994508043, 0.266528189, 0.119341016)
  56. o11.Color = Color3.new(0.105882, 0.164706, 0.207843)
  57. o12 = Instance.new("Part")
  58. o12.Parent = o1
  59. o12.Material = Enum.Material.Metal
  60. o12.BrickColor = BrickColor.new("Black")
  61. o12.Position = Vector3.new(-9.99370193, 1.40131426, 55.8971977)
  62. o12.Rotation = Vector3.new(-76.431015, 90, 0)
  63. o12.Anchored = true
  64. o12.CFrame = CFrame.new(-9.99370193, 1.40131426, 55.8971977, 0, 0, 1, -0.972079694, 0.234613955, 0, -0.23461397, -0.972079694, 0)
  65. o12.FormFactor = Enum.FormFactor.Plate
  66. o12.Size = Vector3.new(0.0994508043, 0.266528189, 0.125308067)
  67. o12.Color = Color3.new(0.105882, 0.164706, 0.207843)
  68. o13 = Instance.new("Part")
  69. o13.Parent = o1
  70. o13.Material = Enum.Material.Metal
  71. o13.BrickColor = BrickColor.new("Black")
  72. o13.Position = Vector3.new(-9.99370193, 1.50252604, 55.90522)
  73. o13.Rotation = Vector3.new(-84.9999924, 90, 0)
  74. o13.Anchored = true
  75. o13.CFrame = CFrame.new(-9.99370193, 1.50252604, 55.90522, 0, 0, 1, -0.996185839, 0.0871551484, 0, -0.0871551558, -0.996185839, 0)
  76. o13.FormFactor = Enum.FormFactor.Plate
  77. o13.Size = Vector3.new(0.0994508043, 0.258572131, 0.12133003)
  78. o13.Color = Color3.new(0.105882, 0.164706, 0.207843)
  79. o14 = Instance.new("Part")
  80. o14.Parent = o1
  81. o14.Material = Enum.Material.Metal
  82. o14.BrickColor = BrickColor.new("Maroon")
  83. o14.Position = Vector3.new(-9.9964819, 0.22239995, 55.8333473)
  84. o14.Rotation = Vector3.new(82.6855316, 0, -90)
  85. o14.Anchored = true
  86. o14.CFrame = CFrame.new(-9.9964819, 0.22239995, 55.8333473, 0, 1, 0, -0.127313927, 0, -0.991853654, -0.991853714, 0, 0.127313912)
  87. o14.FormFactor = Enum.FormFactor.Custom
  88. o14.Size = Vector3.new(0.397383124, 0.397383094, 0.397383094)
  89. o14.BottomSurface = Enum.SurfaceType.Smooth
  90. o14.TopSurface = Enum.SurfaceType.Smooth
  91. o14.Color = Color3.new(0.458824, 0, 0)
  92. o15 = Instance.new("BlockMesh")
  93. o15.Parent = o14
  94. o15.Scale = Vector3.new(0.571428597, 0.285714298, 0.428571433)
  95. o16 = Instance.new("Part")
  96. o16.Parent = o1
  97. o16.Material = Enum.Material.Metal
  98. o16.BrickColor = BrickColor.new("Maroon")
  99. o16.Position = Vector3.new(-9.9964819, 0.375630856, 55.8168411)
  100. o16.Rotation = Vector3.new(88.6483841, 0, -90)
  101. o16.Anchored = true
  102. o16.CFrame = CFrame.new(-9.9964819, 0.375630856, 55.8168411, 0, 1, 0, -0.023587808, 0, -0.999713004, -0.999713004, 0, 0.0235878006)
  103. o16.FormFactor = Enum.FormFactor.Custom
  104. o16.Size = Vector3.new(0.397383124, 0.397383094, 0.397383094)
  105. o16.BottomSurface = Enum.SurfaceType.Smooth
  106. o16.TopSurface = Enum.SurfaceType.Smooth
  107. o16.Color = Color3.new(0.458824, 0, 0)
  108. o17 = Instance.new("BlockMesh")
  109. o17.Parent = o16
  110. o17.Scale = Vector3.new(0.571428597, 0.285714298, 0.428571433)
  111. o18 = Instance.new("WedgePart")
  112. o18.Parent = o1
  113. o18.Material = Enum.Material.Metal
  114. o18.BrickColor = BrickColor.new("Maroon")
  115. o18.Position = Vector3.new(-9.93888187, 3.79157043, 55.4540977)
  116. o18.Rotation = Vector3.new(4.99995804, 0, -90)
  117. o18.Anchored = true
  118. o18.CFrame = CFrame.new(-9.93888187, 3.79157043, 55.4540977, 0, 1, 0, -0.996186078, 0, -0.0871542543, -0.0871542618, 0, 0.996186078)
  119. o18.FormFactor = Enum.FormFactor.Symmetric
  120. o18.Size = Vector3.new(0.139231324, 0.0696156621, 0.654387176)
  121. o18.Color = Color3.new(0.458824, 0, 0)
  122. o19 = Instance.new("Part")
  123. o19.Parent = o1
  124. o19.Material = Enum.Material.Metal
  125. o19.BrickColor = BrickColor.new("Maroon")
  126. o19.Position = Vector3.new(-9.9964819, 1.58100605, 55.9158287)
  127. o19.Rotation = Vector3.new(95.0000076, 0, -90)
  128. o19.Anchored = true
  129. o19.CFrame = CFrame.new(-9.9964819, 1.58100605, 55.9158287, 0, 1, 0, 0.0871551484, 0, -0.996185839, -0.996185839, 0, -0.0871551558)
  130. o19.FormFactor = Enum.FormFactor.Custom
  131. o19.Size = Vector3.new(0.397383064, 0.397383034, 2.38429832)
  132. o19.BottomSurface = Enum.SurfaceType.Smooth
  133. o19.TopSurface = Enum.SurfaceType.Smooth
  134. o19.Color = Color3.new(0.458824, 0, 0)
  135. o20 = Instance.new("BlockMesh")
  136. o20.Parent = o19
  137. o20.Scale = Vector3.new(0.571428597, 0.285714298, 1)
  138. o21 = Instance.new("Part")
  139. o21.Parent = o1
  140. o21.Material = Enum.Material.Metal
  141. o21.BrickColor = BrickColor.new("Black")
  142. o21.Position = Vector3.new(-9.97369194, 3.52371502, 56.1993446)
  143. o21.Rotation = Vector3.new(-84.9999924, 0, -90)
  144. o21.Anchored = true
  145. o21.CFrame = CFrame.new(-9.97369194, 3.52371502, 56.1993446, 0, 1, 0, -0.0871551484, 0, 0.996185839, 0.996185839, 0, 0.0871551558)
  146. o21.FormFactor = Enum.FormFactor.Symmetric
  147. o21.Size = Vector3.new(0.877157807, 0.139231384, 0.543002486)
  148. o21.BottomSurface = Enum.SurfaceType.Smooth
  149. o21.TopSurface = Enum.SurfaceType.Smooth
  150. o21.Color = Color3.new(0.105882, 0.164706, 0.207843)
  151. o22 = Instance.new("WedgePart")
  152. o22.Parent = o1
  153. o22.Material = Enum.Material.Metal
  154. o22.BrickColor = BrickColor.new("Mid gray")
  155. o22.Position = Vector3.new(-9.93888187, 3.43113708, 56.7782478)
  156. o22.Rotation = Vector3.new(-175.000015, 0, -90)
  157. o22.Anchored = true
  158. o22.CFrame = CFrame.new(-9.93888187, 3.43113708, 56.7782478, 0, 1, 0, 0.996186018, 0, 0.0871547684, 0.0871547759, 0, -0.996186137)
  159. o22.FormFactor = Enum.FormFactor.Symmetric
  160. o22.Size = Vector3.new(0.626541376, 0.0696156994, 0.292385936)
  161. o22.Color = Color3.new(0.803922, 0.803922, 0.803922)
  162. o25 = Instance.new("Part")
  163. o25.Name = "CHOPPART"
  164. o25.Parent = o1
  165. o25.Material = Enum.Material.Metal
  166. o25.BrickColor = BrickColor.new("Black")
  167. o25.Transparency = 1
  168. o25.Position = Vector3.new(-9.94330788, 3.48598647, 55.9995308)
  169. o25.Rotation = Vector3.new(-84.9999924, 0, -90)
  170. o25.Anchored = true
  171. o25.CFrame = CFrame.new(-9.94330788, 3.48598647, 55.9995308, 0, 1, 0, -0.0871551484, 0, 0.996185839, 0.996185839, 0, 0.0871551558)
  172. o25.FormFactor = Enum.FormFactor.Symmetric
  173. o25.Size = Vector3.new(1.87715781, 0.200000003, 0.693002462)
  174. o25.BottomSurface = Enum.SurfaceType.Smooth
  175. o25.TopSurface = Enum.SurfaceType.Smooth
  176. o25.Color = Color3.new(0.105882, 0.164706, 0.207843)
  177. o26 = Instance.new("Part")
  178. o26.Name = "Handle"
  179. o26.Parent = o1
  180. o26.Transparency = 1
  181. o26.Position = Vector3.new(-10.0078793, 1.42237854, 55.9140701)
  182. o26.Rotation = Vector3.new(-2.1344531e-006, 0, -90)
  183. o26.Anchored = true
  184. o26.CFrame = CFrame.new(-10.0078793, 1.42237854, 55.9140701, 0, 1, 0, -0.999991179, 0, 3.7252903e-008, 2.98023224e-008, 0, 0.999991179)
  185. o26.Size = Vector3.new(0.200000003, 1, 0.200000003)
  186. o27 = Instance.new("Sound")
  187. o27.Name = "SlashSound"
  188. o27.Parent = o26
  189. o27.SoundId = "rbxassetid://101164100"
  190. o27.Volume = 1
  191. o28 = Instance.new("Sound")
  192. o28.Name = "Hit"
  193. o28.Parent = o26
  194. o28.SoundId = "rbxassetid://214755079"
  195. o28.Volume = 1
  196. o30 = Instance.new("Animation")
  197. o30.Name = "Chop"
  198. o30.Parent = o1
  199. o30.AnimationId = "rbxassetid://32659699"
  200. o31 = Instance.new("Animation")
  201. o31.Name = "Slice"
  202. o31.Parent = o1
  203. o31.AnimationId = "rbxassetid://28090109"
  204. o1.Parent = game.Players.LocalPlayer.Backpack
  205. for i,v in pairs (o1:GetChildren()) do
  206.     if v:IsA("Animation") then
  207.         else
  208.     v.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  209. v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  210. v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  211. v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  212. v.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  213. v.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  214. end
  215. end
  216.  
  217. repeat wait() until o1:FindFirstChild("Handle")
  218.  
  219. local Welds = {}
  220.  
  221. function ClearOldWelds(tbl)
  222.     for _,v in pairs(tbl) do
  223.         if v:IsA('Weld') then
  224.             v:Destroy()
  225.         end
  226.     end
  227. end
  228.  
  229. function Equipped()
  230. for i,v in pairs (o1:GetChildren()) do
  231.     if v:IsA("Animation") then
  232.         else
  233.     v.Anchored = false
  234. end
  235. end
  236.     local Handle = o1:FindFirstChild('Handle')
  237.     if not Handle then return end
  238.     local tble = Handle:GetChildren()
  239.     for _,v in pairs(o1:GetChildren()) do
  240.         if v:IsA('Part') or v:IsA('WedgePart') and v ~= Handle then
  241.             local c1
  242.             for _1,v1 in pairs(Welds) do
  243.                 if _1 == v then
  244.                     c1 = v1
  245.                     break
  246.                 end
  247.             end
  248.            
  249.             if not c1 then
  250.                 Welds[v] = v.CFrame:inverse()*Handle.CFrame
  251.                 v.Anchored = true
  252.                 c1 = Welds[v]
  253.             end
  254.            
  255.             local Weld = Instance.new('Weld')
  256.             Weld.Part0 = Handle
  257.             Weld.Part1 = v
  258.             Weld.C0 = CFrame.new()
  259.             Weld.C1 = c1
  260.             Weld.Parent = Handle
  261.            
  262.         end
  263.     end
  264.     ClearOldWelds(tble)
  265.     Handle.Anchored=false
  266. end
  267.  
  268. Equipped()
  269. o1.Equipped:connect(Equipped)
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278. Tool = o1
  279. Handle = Tool:WaitForChild("Handle")
  280.  
  281. Players = game:GetService("Players")
  282. Debris = game:GetService("Debris")
  283. InsertService = game:GetService("InsertService")
  284. function onEquipped(mouse2)
  285.     mouse2.KeyDown:connect(onkeyDown)
  286.     mouse = mouse2
  287. end
  288. o1.Equipped:connect(onEquipped)
  289. WhackAnim = Tool:WaitForChild("Whack")
  290. ChopAnim = Tool:WaitForChild("Chop")
  291. SliceAnim = Tool:WaitForChild("Slice")
  292. SlashSound = Handle:WaitForChild("SlashSound")
  293. HitSound = Handle:WaitForChild("Hit")
  294.  
  295. Damage = 10
  296.  
  297. ReloadTime = .4
  298.  
  299. Kills = 0
  300.  
  301. function TagHumanoid(humanoid, player) --registers you actually Hitting the guy
  302.     HitSound:Play()
  303.     local Creator_Tag = Instance.new("ObjectValue")
  304.     Creator_Tag.Name = "creator"
  305.     Creator_Tag.Value = player
  306.     Debris:AddItem(Creator_Tag, 2)
  307.     Creator_Tag.Parent = humanoid
  308. end
  309. function onkeyDown(key)
  310.         if Tool.Enabled then
  311.     if key == "q" then
  312.         Slice = Humanoid:LoadAnimation(SliceAnim)
  313.         if Slice then
  314.             Slice:Play()
  315.             SlashSound:Play()
  316.             wait(1)
  317.             SlashSound:Play()
  318.         end
  319.         Tool.Enabled = true
  320.         end
  321.         end
  322.        
  323.                 if Tool.Enabled then
  324.     if key == "e" then
  325.         Chop = Humanoid:LoadAnimation(ChopAnim)
  326.         if Chop then
  327.             Chop:Play()
  328.             SlashSound:Play()
  329.         end
  330.         Tool.Enabled = true
  331.         end
  332.     end
  333. end
  334.  
  335. function UntagHumanoid(humanoid)
  336.     for i, v in pairs(humanoid:GetChildren()) do
  337.         if v:IsA("ObjectValue") and v.Name == "creator" then
  338.             v:Destroy()
  339.         end
  340.     end
  341. end
  342.  
  343. function Blow(Hit)
  344.     if Hit.Name == "Head" then
  345.         Hit.Anchored= false Hit.Size = Vector3.new(2, 0.2, 1)
  346.         Hit.BrickColor = BrickColor.new("Maroon")
  347.         o1 = Instance.new("Sound")
  348.         o1.Parent = Hit
  349.         o1.SoundId = "rbxassetid://429400881"
  350.         o1:Play()
  351.     end
  352.         if Hit.Name == "Right Arm" then
  353. o11.Name = "GOREPART"
  354. o11.Parent = workspace
  355. o11.BrickColor = BrickColor.new("Maroon")
  356. o11.Position = Hit.Position
  357. o11.Rotation = Vector3.new(-180, 1.29089606, 180)
  358. o11.FormFactor = Enum.FormFactor.Symmetric
  359. o11.Size = Vector3.new(1, 2, 1)
  360. o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  361. o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  362. o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  363. o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  364. o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  365. o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  366. o11.Color = Color3.new(0.458824, 0, 0)
  367. Hit:Destroy()
  368.         o1 = Instance.new("Sound")
  369.         o1.Parent = o11
  370.         o1.SoundId = "rbxassetid://429400881"
  371.         o1:Play()
  372.  
  373.         end
  374.                 if Hit.Name == "Left Arm" then
  375.         o11 = Instance.new("Part")
  376. o11.Name = "GOREPART"
  377. o11.Parent = workspace
  378. o11.BrickColor = BrickColor.new("Maroon")
  379. o11.Position = Hit.Position
  380. o11.Rotation = Vector3.new(-180, 1.29089606, 180)
  381. o11.FormFactor = Enum.FormFactor.Symmetric
  382. o11.Size = Vector3.new(1, 2, 1)
  383. o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  384. o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  385. o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  386. o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  387. o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  388. o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  389. o11.Color = Color3.new(0.458824, 0, 0)
  390. Hit:Destroy()
  391.         o1 = Instance.new("Sound")
  392.         o1.Parent = o11
  393.         o1.SoundId = "rbxassetid://429400881"
  394.         o1:Play()
  395.  
  396.                 end
  397.                 if Hit.Name == "Right Leg" then
  398. Hit:Destroy()
  399.         o1 = Instance.new("Sound")
  400.         o1.Parent = o11
  401.         o1.SoundId = "rbxassetid://429400881"
  402.         o1:Play()
  403.  
  404.         end
  405.                 if Hit.Name == "Left Arm" then
  406.         o11 = Instance.new("Part")
  407. o11.Name = "GOREPART"
  408. o11.Parent = workspace
  409. o11.BrickColor = BrickColor.new("Maroon")
  410. o11.Position = Hit.Position
  411. o11.Rotation = Vector3.new(-180, 1.29089606, 180)
  412. o11.FormFactor = Enum.FormFactor.Symmetric
  413. o11.Size = Vector3.new(1, 2, 1)
  414. o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  415. o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  416. o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  417. o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  418. o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  419. o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  420. o11.Color = Color3.new(0.458824, 0, 0)
  421. Hit:Destroy()
  422.         o1 = Instance.new("Sound")
  423.         o1.Parent = o11
  424.         o1.SoundId = "rbxassetid://429400881"
  425.         o1:Play()
  426.  
  427.                 end
  428.                
  429.                 if Hit.Name == "Left Leg" then
  430. Hit:Destroy()
  431.         o1 = Instance.new("Sound")
  432.         o1.Parent = o11
  433.         o1.SoundId = "rbxassetid://429400881"
  434.         o1:Play()
  435.  
  436.         end
  437.                 if Hit.Name == "Left Arm" then
  438.         o11 = Instance.new("Part")
  439. o11.Name = "GOREPART"
  440. o11.Parent = workspace
  441. o11.BrickColor = BrickColor.new("Maroon")
  442. o11.Position = Hit.Position
  443. o11.Rotation = Vector3.new(-180, 1.29089606, 180)
  444. o11.FormFactor = Enum.FormFactor.Symmetric
  445. o11.Size = Vector3.new(1, 2, 1)
  446. o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  447. o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  448. o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  449. o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  450. o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  451. o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  452. o11.Color = Color3.new(0.458824, 0, 0)
  453. Hit:Destroy()
  454.         o1 = Instance.new("Sound")
  455.         o1.Parent = o11
  456.         o1.SoundId = "rbxassetid://429400881"
  457.         o1:Play()
  458.  
  459.                 end
  460.                                 if Hit.Name == "Torso" then
  461.         o11 = Instance.new("Part")
  462. o2 = Instance.new("Part")
  463. o2.Name = "GOREPART"
  464. o2.Parent = workspace
  465. o2.BrickColor = BrickColor.new("Maroon")
  466. o2.Position = Hit.Position
  467. o2.Rotation = Vector3.new(-180, 1.29089832, 180)
  468. o2.CanCollide = true
  469. o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  470. o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  471. o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  472. o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  473. o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  474. o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  475. o2.Size = Vector3.new(2, 1, 1)
  476. o2.LeftSurface = Enum.SurfaceType.Weld
  477. o2.RightSurface = Enum.SurfaceType.Weld
  478. o2.Color = Color3.new(0.105882, 0.164706, 0.207843)
  479. o1 = Instance.new("Part")
  480. o1.Name = "GOREPART"
  481. o1.Parent = workspace
  482. o1.BrickColor = BrickColor.new("Maroon")
  483. o1.Position = Hit.Position
  484. o1.Rotation = Vector3.new(-180, 1.29089832, 180)
  485. o1.CanCollide = true
  486. o1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  487. o1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  488. o1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  489. o1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  490. o1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  491. o1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  492. o1.Size = Vector3.new(2, 1, 1)
  493. o1.LeftSurface = Enum.SurfaceType.Weld
  494. o1.RightSurface = Enum.SurfaceType.Weld
  495. o1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  496.  
  497.  
  498. Hit:Destroy()
  499.         o1 = Instance.new("Sound")
  500.         o1.Parent = o11
  501.         o1.SoundId = "rbxassetid://143384769"
  502.         o1:Play()
  503.  
  504.     end --registers the Hit, deals damage to the player, and if the humanoid has 0 health a kill is added into the killstreak.
  505.     if Hit and Hit.Parent then
  506.         local character = Hit.Parent
  507.         local humanoid = character:FindFirstChild("Humanoid")
  508.         if Humanoid and Humanoid ~= humanoid and humanoid and Humanoid.Health > 0 and humanoid.Health > 0 then
  509.             local Right_Arm = Character:FindFirstChild("Right Arm")
  510.             if Right_Arm then
  511.                 local Joint = Right_Arm:FindFirstChild("RightGrip")
  512.                 if (Joint and (Joint.Part0 == Handle or Joint.Part1 == Handle)) then
  513.                     humanoid:TakeDamage(Damage) --deal regular damage or instakill normal health players if a ninja
  514.                     UntagHumanoid(humanoid)
  515.                     TagHumanoid(humanoid, Player)
  516.                 end
  517.             end
  518.         end
  519.     end
  520. end
  521.  
  522. function Activated() --when you swing
  523.     if Tool.Enabled then
  524.         Tool.Enabled = false
  525.         Whack = Humanoid:LoadAnimation(WhackAnim)
  526.         if Whack then
  527.             Whack:Play()
  528.             SlashSound:Play()
  529.         end
  530.         wait(ReloadTime)
  531.         Tool.Enabled = true
  532.     end
  533. end
  534.  
  535. function Equipped(mouse) --get everything settled up
  536.     Character = Tool.Parent
  537.     Player = Players:GetPlayerFromCharacter(Character)
  538.     Humanoid = Character:FindFirstChild("Humanoid")
  539.     Torso = Character:FindFirstChild("Torso")
  540.     if not Humanoid or not Torso then
  541.         return    
  542.     end
  543.    
  544.     if not Tool.Enabled then
  545.         wait(ReloadTime)
  546.         Tool.Enabled = true
  547.     end
  548. end
  549.  
  550. function Unequipped()
  551.     if Whack then
  552.         Whack:Stop()
  553.     end
  554.         if Slice then
  555.         Slice:Stop()
  556.         end
  557.         if Chop then
  558.         Chop:Stop()
  559.     end
  560. end
  561.  
  562.  
  563. Mouse_Icon = "rbxasset://textures/GunCursor.png"
  564. Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
  565.  
  566. Tool = o1
  567.  
  568. Mouse = nil
  569.  
  570. function UpdateIcon()
  571.     if Mouse then
  572.         Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
  573.     end
  574. end
  575.  
  576. function OnEquipped(ToolMouse)
  577.     Mouse = ToolMouse
  578.     UpdateIcon()
  579. end
  580.  
  581. function OnChanged(Property)
  582.     if Property == "Enabled" then
  583.         UpdateIcon()
  584.     end
  585. end
  586.  
  587. Tool.Equipped:connect(OnEquipped)
  588. Tool.Changed:connect(OnChanged)
  589.  
  590. Tool.Activated:connect(Activated)
  591. Tool.Equipped:connect(Equipped)
  592. Tool.Unequipped:connect(Unequipped)
  593.  
  594. Tool.CHOPPART.Touched:connect(Blow)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement