Advertisement
DarkScriptZEditors

Axeee

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