Dark_EccentricYT

Untitled

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