Advertisement
SKOSHILOKI

Jason Voorhees FE

Jun 30th, 2019
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 41.59 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. wait(1) --remove if you're using it in-game
  88. local function lerp(weld,beglerp,endlerp,speed)
  89.     weld.C0 = beglerp:lerp(endlerp,speed)
  90.     return weld.C0
  91. end
  92.  
  93. local speed = 0.2
  94. local angle = 0
  95. local anglespeed = 2
  96. local armspeed = 0.2
  97. local armangle = 0
  98. local armanglespeed = 2
  99. local legspeed = 0.2
  100. local legangle = 0
  101. local leganglespeed = 2
  102. local idle = 0
  103. local on = true
  104. local damen = false
  105. local enabled = true
  106. local buff = false
  107. local zenabled = 0
  108. local xenabled = 0
  109. local cenabled = 0
  110. local venabled = 0
  111. local eenabled = 0
  112. local Debounce = {}
  113. local TakeDamage = false
  114. local combo = 1
  115. local Player = owner
  116. local Char = Player.Character
  117. if Char:FindFirstChild("Shirt") ~= nil then
  118.     Char.Shirt:Destroy()
  119.     Instance.new("Shirt",Char).ShirtTemplate = "http://www.roblox.com/asset/?id=4609119"
  120. end
  121. if Char:FindFirstChild("Pants") ~= nil then
  122.     Char.Pants:Destroy()
  123.     Instance.new("Pants",Char).PantsTemplate = "http://www.roblox.com/asset/?id=4609244"
  124. end
  125. local Human = Char.Humanoid
  126. Human.MaxHealth = 500
  127. wait(0.1)
  128. Human.Health = Human.MaxHealth
  129. local Sounds = {"rbxassetid://588693156","rbxassetid://588693579","rbxassetid://588735023","rbxassetid://588737825","rbxassetid://163619849","rbxassetid://240517975","rbxassetid://233856154","rbxassetid://401057781","rbxassetid://401057825","rbxassetid://401057895","rbxassetid://199149186","rbxassetid://199149269"}
  130. local Head = Char.Head
  131. local LA = Char:findFirstChild("Left Arm")
  132. local RA = Char:findFirstChild("Right Arm")
  133. local LL = Char:findFirstChild("Left Leg")
  134. local RL = Char:findFirstChild("Right Leg")
  135. local T = Char:findFirstChild("Torso")
  136. local LS = T:findFirstChild("Left Shoulder")
  137. local RS = T:findFirstChild("Right Shoulder")
  138. local LH = T:findFirstChild("Left Hip")
  139. local RH = T:findFirstChild("Right Hip")
  140. local Neck = T:findFirstChild("Neck")
  141. local HM = Char:findFirstChild("HumanoidRootPart")
  142. local RJ = Char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  143. local WLS = Instance.new("Motor", T)
  144. WLS.C0 = CFrame.new(-1.5, 0.5, 0)
  145. WLS.C1 = CFrame.new(0, 0.5, 0)
  146. WLS.Part0 = T
  147. WLS.Part1 = LA
  148. local WRS = Instance.new("Motor", T)
  149. WRS.Part0 = T
  150. WRS.Part1 = RA
  151. WRS.C0 = CFrame.new(1.5, 0.5, 0)
  152. WRS.C1 = CFrame.new(0, 0.5, 0)
  153. local WLH = LH
  154. local WRH = RH
  155. local LSC0 = WLS.C0
  156. local RSC0 = WRS.C0
  157. local LHC0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  158. local LHC1 = CFrame.new(-0.5, 1 ,0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  159. local RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  160. local RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  161. local WRJ = RJ
  162. local RJC0 = WRJ.C0
  163. local RJC1 = WRJ.C1
  164. local NC0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  165. local Run = game:GetService("RunService")
  166. local noweightprop = PhysicalProperties.new(0,0.3,0.5,0,0) --apply to parts you add by doing part.CustomPhysicalProperties = noweightprop
  167. local Machete = Instance.new("Part",Char)
  168. Machete.CanCollide = false
  169. Machete.Locked = true
  170. Machete.TopSurface = 10
  171. Machete.BottomSurface = 10
  172. Machete.CustomPhysicalProperties = noweightprop
  173. Machete.FormFactor = 3
  174. Machete.Size = Vector3.new(0.5,2,0.5)
  175. local MacheteMesh = Instance.new("SpecialMesh",Machete)
  176. MacheteMesh.Scale = Vector3.new(1,0.5,0.4)
  177. MacheteMesh.MeshId = "http://www.roblox.com/asset/?id=123248347"
  178. MacheteMesh.TextureId = "http://www.roblox.com/asset/?id=123248449"
  179. local MacheteWeld = Instance.new("Motor",Machete)
  180. MacheteWeld.Part0 = RA
  181. MacheteWeld.Part1 = Machete
  182. MacheteWeld.C0 = CFrame.new(0,-1.15,-1.8) *CFrame.Angles(-math.pi/2,0,0)
  183. local HW = MacheteWeld
  184. local hc0 = HW.C0
  185. local Mask = Instance.new("Part",Char)
  186. Mask.CanCollide = false
  187. Mask.Locked = true
  188. Mask.TopSurface = 10
  189. Mask.BottomSurface = 10
  190. Mask.FormFactor = 3
  191. Mask.Size = Vector3.new(1,1,1)
  192. local MaskMesh = Instance.new("SpecialMesh",Mask)
  193. MaskMesh.Scale = Vector3.new(0.125,0.125,0.125)
  194. MaskMesh.MeshId = "http://www.roblox.com/asset/?id=5158270"
  195. MaskMesh.TextureId = "http://www.roblox.com/asset/?id=5158267"
  196. local MaskWeld = Instance.new("Weld",Head)
  197. MaskWeld.Part0 = Head
  198. MaskWeld.Part1 = Mask
  199. MaskWeld.C0 = CFrame.new(0,0.075,-0.65) *CFrame.Angles(-math.pi/2,0,0)
  200.  
  201. Anim = Char:FindFirstChild("Animate")
  202. if Anim ~= nil then
  203.     Anim.Parent = nil
  204. end
  205. Animate = Human:FindFirstChild("Animator")
  206. if Animate ~= nil then
  207.     Animate.Parent = nil
  208. end
  209.  
  210. local gui = Instance.new("ScreenGui",Player.PlayerGui)
  211. local skill1 = Instance.new("TextLabel",gui)
  212. skill1.Size = UDim2.new(0,150,0,50)
  213. skill1.Position = UDim2.new(0.75,0,0.75,0)
  214. skill1.Text = ""
  215. skill1.TextWrapped = true
  216. skill1.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  217. local skill1text = Instance.new("TextLabel",gui)
  218. skill1text.Size = UDim2.new(0,150,0,50)
  219. skill1text.Position = UDim2.new(0.75,0,0.75,0)
  220. skill1text.TextColor3 = Color3.new(1,1,1)
  221. skill1text.BackgroundTransparency = 1
  222. skill1text.Text = "[Z] \n Machete Toss"
  223. skill1text.TextWrapped = true
  224. skill1text.TextScaled = true
  225. skill1text.Font = "Antique"
  226. skill1text.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  227. skill1img = Instance.new("ImageLabel",skill1)
  228. skill1img.Size = UDim2.new(0,0,1,0)
  229. skill1img.Image = "rbxassetid://48965808"
  230. skill1img.BackgroundColor3 = BrickColor.new("Crimson").Color
  231. local skill2 = Instance.new("TextLabel",gui)
  232. skill2.Size = UDim2.new(0,150,0,50)
  233. skill2.Position = UDim2.new(0.875,0,0.75,0)
  234. skill2.Text = ""
  235. skill2.TextWrapped = true
  236. skill2.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  237. local skill2text = Instance.new("TextLabel",gui)
  238. skill2text.Size = UDim2.new(0,150,0,50)
  239. skill2text.Position = UDim2.new(0.875,0,0.75,0)
  240. skill2text.TextColor3 = Color3.new(1,1,1)
  241. skill2text.BackgroundTransparency = 1
  242. skill2text.Text = "[X] \n Machete Combo"
  243. skill2text.TextWrapped = true
  244. skill2text.TextScaled = true
  245. skill2text.Font = "Antique"
  246. skill2text.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  247. skill2img = Instance.new("ImageLabel",skill2)
  248. skill2img.Size = UDim2.new(0,0,1,0)
  249. skill2img.Image = "rbxassetid://48965808"
  250. skill2img.BackgroundColor3 = BrickColor.new("Crimson").Color
  251. local skill3 = Instance.new("TextLabel",gui)
  252. skill3.Size = UDim2.new(0,150,0,50)
  253. skill3.Position = UDim2.new(0.75,0,0.85,0)
  254. skill3.Text = ""
  255. skill3.TextWrapped = true
  256. skill3.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  257. local skill3text = Instance.new("TextLabel",gui)
  258. skill3text.Size = UDim2.new(0,150,0,50)
  259. skill3text.Position = UDim2.new(0.75,0,0.85,0)
  260. skill3text.TextColor3 = Color3.new(1,1,1)
  261. skill3text.BackgroundTransparency = 1
  262. skill3text.Text = "[C] \n Choke"
  263. skill3text.TextWrapped = true
  264. skill3text.TextScaled = true
  265. skill3text.Font = "Antique"
  266. skill3text.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  267. skill3img = Instance.new("ImageLabel",skill3)
  268. skill3img.Size = UDim2.new(0,0,1,0)
  269. skill3img.Image = "rbxassetid://48965808"
  270. skill3img.BackgroundColor3 = BrickColor.new("Crimson").Color
  271. local skill4 = Instance.new("TextLabel",gui)
  272. skill4.Size = UDim2.new(0,150,0,50)
  273. skill4.Position = UDim2.new(0.875,0,0.85,0)
  274. skill4.Text = ""
  275. skill4.TextWrapped = true
  276. skill4.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  277. local skill4text = Instance.new("TextLabel",gui)
  278. skill4text.Size = UDim2.new(0,150,0,50)
  279. skill4text.Position = UDim2.new(0.875,0,0.85,0)
  280. skill4text.TextColor3 = Color3.new(1,1,1)
  281. skill4text.BackgroundTransparency = 1
  282. skill4text.Text = "[V] \n Guts Spill"
  283. skill4text.TextWrapped = true
  284. skill4text.TextScaled = true
  285. skill4text.Font = "Antique"
  286. skill4text.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  287. skill4img = Instance.new("ImageLabel",skill4)
  288. skill4img.Size = UDim2.new(0,0,1,0)
  289. skill4img.Image = "rbxassetid://48965808"
  290. skill4img.BackgroundColor3 = BrickColor.new("Crimson").Color
  291. local skill5 = Instance.new("TextLabel",gui)
  292. skill5.Size = UDim2.new(0,150,0,50)
  293. skill5.Position = UDim2.new(0.8125,0,0.65,0)
  294. skill5.Text = ""
  295. skill5.TextWrapped = true
  296. skill5.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  297. local skill5text = Instance.new("TextLabel",gui)
  298. skill5text.Size = UDim2.new(0,150,0,50)
  299. skill5text.Position = UDim2.new(0.8125,0,0.65,0)
  300. skill5text.TextColor3 = Color3.new(1,1,1)
  301. skill5text.BackgroundTransparency = 1
  302. skill5text.Text = "[E] \n Killing Machine"
  303. skill5text.TextWrapped = true
  304. skill5text.TextScaled = true
  305. skill5text.Font = "Antique"
  306. skill5text.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
  307. skill5img = Instance.new("ImageLabel",skill5)
  308. skill5img.Size = UDim2.new(0,0,1,0)
  309. skill5img.Image = "rbxassetid://48965808"
  310. skill5img.BackgroundColor3 = BrickColor.new("Crimson").Color
  311.  
  312. local Meshes={
  313.     Blast="20329976",
  314.     Crown="1323306",
  315.     Ring="3270017",
  316.     Claw="10681506",
  317.     Crystal="9756362",
  318.     Coil="9753878",
  319.     Cloud="1095708",
  320.     Skull="4770583",
  321.     SpinyShell="1080954",
  322. }
  323.  
  324. local function nooutlines(part)
  325.     part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  326. end
  327.  
  328. local function getmesh(mesh)
  329.     return "rbxassetid://"..mesh
  330. end
  331.  
  332. --[[
  333.     Might look confusing, but it isn't really.
  334.    
  335.     Example:
  336.     effect(part,brickcolor,size,cframe,trans,transincrement,scaleby,loopwait,meshid,meshtype)
  337. --]]
  338.  
  339. ArtificialHB = Instance.new("BindableEvent", script)
  340. ArtificialHB.Name = "Heartbeat"
  341.  
  342. script:WaitForChild("Heartbeat")
  343.  
  344. frame = 1 / 60
  345. tf = 0
  346. allowframeloss = false
  347. tossremainder = false
  348. lastframe = tick()
  349. script.Heartbeat:Fire()
  350.  
  351. game:GetService("RunService").Heartbeat:connect(function(s, p)
  352.     tf = tf + s
  353.     if tf >= frame then
  354.         if allowframeloss then
  355.             script.Heartbeat:Fire()
  356.             lastframe = tick()
  357.         else
  358.             for i = 1, math.floor(tf / frame) do
  359.                 script.Heartbeat:Fire()
  360.             end
  361.             lastframe = tick()
  362.         end
  363.         if tossremainder then
  364.             tf = 0
  365.         else
  366.             tf = tf - frame * math.floor(tf / frame)
  367.         end
  368.     end
  369. end)
  370.  
  371. local function Rwait(num)
  372.     if num == 0 or num == nil then
  373.         ArtificialHB.Event:wait()
  374.     else
  375.         for i = 0, num do
  376.             ArtificialHB.Event:wait()
  377.         end
  378.     end
  379. end
  380.  
  381. local function effect(part,brickcolor,size,cframe,trans,transincrement,scaleby,loopwait,meshid,meshtype)
  382.     local p = Instance.new("Part", part or workspace)
  383.     p.Anchored = true
  384.     p.CanCollide = false
  385.     p.FormFactor = Enum.FormFactor.Custom
  386.     p.Material = "SmoothPlastic"
  387.     p.CFrame = cframe
  388.     p.BrickColor = brickcolor
  389.     p.Size = Vector3.new(1,1,1)
  390.     p.Transparency = trans
  391.     nooutlines(p)
  392.     local m = Instance.new("SpecialMesh",p)
  393.     if meshtype ~= nil and meshid == nil then
  394.         m.MeshType = meshtype
  395.     end
  396.     if meshtype == nil and meshid ~= nil then
  397.         m.MeshId = getmesh(meshid)
  398.     end
  399.     m.Scale = size
  400.     coroutine.wrap(function()
  401.         for i = 0,loopwait,0.1 do
  402.             p.CFrame = p.CFrame
  403.             p.Transparency = p.Transparency +transincrement
  404.             m.Scale = m.Scale + scaleby
  405.             Rwait()
  406.         end
  407.         p:Destroy()
  408.     end)()
  409.     return p
  410. end
  411.  
  412. local PlaySound = function(part,volume,pitch,id,looped)
  413.     local Sound = Instance.new("Sound", part)
  414.     Sound.SoundId = id
  415.     Sound.Pitch = pitch
  416.     Sound.Volume = volume
  417.     coroutine.wrap(function()
  418.         wait()
  419.         Sound:Play()
  420.         if looped == nil then
  421.             game.Debris:AddItem(Sound,10)
  422.         end
  423.     end)()
  424.     if looped == true then
  425.         Sound.Looped = true
  426.     end
  427.     return Sound
  428. end
  429.  
  430. local ShowDmg = function(totake)
  431.     local modl = Instance.new("Model", workspace)
  432.     modl.Name = tostring(totake)
  433.     local prt = Instance.new("Part", modl)
  434.     prt.CanCollide = false
  435.     prt.BrickColor = BrickColor.Red()
  436.     prt.Name = "Head"
  437.     prt.CFrame = HM.CFrame *CFrame.new(0, 1.5, 0)
  438.     prt.TopSurface = 0
  439.     prt.BottomSurface = 0
  440.     prt.FormFactor = 3
  441.     prt.Size = Vector3.new(1, 0.2, 1)
  442.     local bm = Instance.new("BlockMesh", prt)
  443.     local hum = Instance.new("Humanoid", modl)
  444.     hum.Health = 0
  445.     hum.MaxHealth = 0
  446.     hum.WalkSpeed = 0
  447.     bodypos = Instance.new("BodyPosition", prt)
  448.     bodypos.position = Head.Position +Vector3.new(0, 1, 0)
  449.     bodypos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  450.     game.Debris:AddItem(modl, 1)
  451.     coroutine.resume(coroutine.create(function()
  452.         for i = 1, 3 do
  453.             bodypos.position = bodypos.position +Vector3.new(0, 0.5, 0)
  454.             Rwait()
  455.         end
  456.     end))
  457. end
  458.  
  459. local function ChargeAt(Strength)
  460.     local BV = Instance.new("BodyVelocity",HM)
  461.     BV.maxForce = Vector3.new(1e5,0,1e5)
  462.     BV.velocity = HM.CFrame.lookVector *Strength
  463.     game.Debris:AddItem(BV,0.1)
  464. end
  465.  
  466. local function Damage(hit,mm,knockback,knockbackvelocity)
  467.     if hit ~= nil and damen == true and hit.Parent ~= Char then
  468.         local hum = GetHumanoid(hit.Parent)
  469.         if hum ~= nil then
  470.             if TakeDamage == true then
  471.                 if buff == false then
  472.                     hum:TakeDamage(mm)
  473.                     spawn(function()
  474.                         ShowDmg(mm)
  475.                     end)
  476.             elseif buff == true then
  477.                     hum:TakeDamage(mm*2)
  478.                     spawn(function()
  479.                         ShowDmg(mm*2)
  480.                     end)
  481.                 end
  482.             elseif TakeDamage == false then
  483.                 if buff == false then
  484.                     hum.Health = hum.Health - mm
  485.                     spawn(function()
  486.                         ShowDmg(mm)
  487.                     end)
  488.                 elseif buff == true then
  489.                     hum.Health  = hum.Health - mm*2
  490.                     spawn(function()
  491.                         ShowDmg(mm)
  492.                     end)
  493.                 end
  494.             end
  495.             PlaySound(hum.Torso,1,1,Sounds[math.random(8,12)])
  496.             if knockback ~= nil and knockback ~= 0 then
  497.                 if knockbackvelocity == nil then
  498.                     local v = Instance.new("BodyVelocity",hum.Torso)
  499.                     v.maxForce = Vector3.new(1e5,1e5,1e5)
  500.                     v.P = 1e20
  501.                     v.velocity = HM.CFrame.lookVector *knockback
  502.                     game.Debris:AddItem(v,0.3)
  503.                 else
  504.                     local v = Instance.new("BodyVelocity",hum.Torso)
  505.                     v.maxForce = Vector3.new(1e5,1e5,1e5)
  506.                     v.P = 1e20
  507.                     v.velocity = knockbackvelocity *knockback
  508.                     game.Debris:AddItem(v,0.3)
  509.                 end
  510.             end
  511.         end
  512.         damen = false
  513.     end
  514. end
  515.  
  516. local function GetDistance(Obj,Mag)
  517.     local Bodies = {}
  518.     local hum
  519.     for _,v in pairs(workspace:GetChildren()) do
  520.         if v ~= Char then
  521.             hum = GetHumanoid(v)
  522.             if hum ~= nil and hum.Torso ~= nil then
  523.                 local Mag2 = (hum.Torso.Position - Obj.Position).magnitude
  524.                 if Mag2 < Mag then
  525.                     Bodies[#Bodies + 1] = v
  526.                 end
  527.             end
  528.         end
  529.     end
  530.     return Bodies,hum
  531. end
  532.  
  533. --darkus stuff
  534.  
  535. function GetHumanoid(Character)
  536.    
  537.     assert(Character, 'bad argument #1 to Character (Model expected, got nil)')
  538.    
  539.     local hum
  540.    
  541.     if Character == Char then return end
  542.    
  543.     if Character.ClassName == "Hat" or Character.ClassName == "Accessory" then
  544.         for q,e in next, Character.Parent:children() do
  545.             if e:isA'Humanoid' then
  546.                 hum = e
  547.             end
  548.             if e:isA'ForceField' then
  549.                 return
  550.             end
  551.         end
  552.     else
  553.         for q,e in next, Character:children() do
  554.             if e:isA'Humanoid' then
  555.                 hum = e
  556.             end
  557.             if e:isA'ForceField' then
  558.                 return
  559.             end
  560.         end
  561.     end
  562. return hum
  563. end
  564.  
  565. function GetNear(Object, Distance)
  566.    
  567.     assert(Object, 'bad argument #1 to Object (Model expected, got nil)')
  568.    
  569.     local Distance = (Distance and Distance or 25)
  570.     local rtn = {}
  571.    
  572.     for q,e in next, workspace:children() do
  573.         local Hum = e:FindFirstChild'Humanoid'
  574.         if Hum ~= nil then
  575.             Tor = Hum.Torso
  576.         end
  577.         if Tor ~= nil then
  578.             local dist = (Object.Position-Tor.Position).magnitude
  579.             if dist <= Distance then
  580.                 rtn[#rtn+1] = e
  581.             end
  582.         end
  583.     end
  584. return rtn
  585. end
  586.    
  587. local function DamageNear(Distance, Part, Damage, Knockback, DebounceTime, KnockbackVelocity)
  588.     if damen == false then return end
  589.     assert(Part, 'bad argument #2 to Part (Part expected, got nil)')
  590.     assert(Part:isA'BasePart', ('bad argument #2 to Part (Part expected, got %s)'):format(Part.ClassName))
  591.    
  592.     if DebounceTime == 0 or DebounceTime == nil then
  593.         DebounceTime = 0.5
  594.     end
  595.    
  596.     local Distance = (Distance and Distance or 25)
  597.     local Noobs = GetNear(Part, Distance)
  598.    
  599.     for nild, Character in next, Noobs do
  600.        
  601.         local Human = GetHumanoid(Character)
  602.         if Human and not Debounce[Character] then
  603.             -- no clue why they were using spawn but ok...
  604.            
  605.             Debounce[Character] = true
  606.            
  607.             if TakeDamage then
  608.                 if buff == false then
  609.                     Human:TakeDamage(mm)
  610.                     spawn(function()
  611.                         ShowDmg(mm)
  612.                     end)
  613.             elseif buff == true then
  614.                     Human:TakeDamage(Damage)
  615.                     spawn(function()
  616.                         ShowDmg(Damage*2)
  617.                     end)
  618.                 end
  619.             else
  620.                 if buff == false then
  621.                     Human.Health = Human.Health - Damage
  622.                     spawn(function()
  623.                         ShowDmg(Damage)
  624.                     end)
  625.             elseif buff == true then
  626.                     Human:TakeDamage(Damage*2)
  627.                     spawn(function()
  628.                         ShowDmg(Damage*2)
  629.                     end)
  630.                 end
  631.             end
  632.             PlaySound(Human.Torso,1,1,Sounds[math.random(8,12)])
  633.             if Knockback then
  634.                 if KnockbackVelocity == nil then
  635.                     local v = Instance.new("BodyVelocity", Human.Torso)
  636.                     v.maxForce = Vector3.new(1e5,1e5,1e5)
  637.                     v.P = 1e20
  638.                     v.velocity = HM.CFrame.lookVector * Knockback
  639.                     spawn(function()
  640.                         game:service'Debris':AddItem(v,0.3)
  641.                     end)
  642.                 else
  643.                     local v = Instance.new("BodyVelocity", Human.Torso)
  644.                     v.maxForce = Vector3.new(1e5,1e5,1e5)
  645.                     v.P = 1e20
  646.                     v.velocity = KnockbackVelocity * Knockback
  647.                     spawn(function()
  648.                         game:service'Debris':AddItem(v,0.3)
  649.                     end)
  650.                 end
  651.             end
  652.            
  653.             coroutine.wrap(function()--spawn(function()
  654.                 wait(DebounceTime)
  655.                 Debounce[Character] = nil
  656.             end)()--end)
  657.            
  658.         end
  659.     end
  660.    
  661. return
  662. end
  663. --
  664.  
  665. local function Slash1()
  666.     for i = 1,11 do
  667.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/6,0,0),armspeed)
  668.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.05,0,math.pi/10),armspeed)
  669.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  670.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed)
  671.         lerp(HW,HW.C0,hc0,speed)
  672.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  673.             lerp(WLH,WLH.C0,LHC0,legspeed)
  674.             lerp(WRH,WRH.C0,RHC0,legspeed)
  675.         elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 20 then
  676.             lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.2-math.cos(legangle)*0.05,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*0.75))),legspeed)
  677.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.2-math.cos(legangle)*0.05,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*0.75))),legspeed)
  678.         elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 20 then
  679.             lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.05+math.cos(legangle)*0.5,-0.3*math.cos(legangle),0) *CFrame.Angles(0,0,math.rad(10)+math.sin(legangle)),legspeed)
  680.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.05+math.cos(legangle)*0.5,0.3*math.cos(legangle),0) *CFrame.Angles(0,0,-math.rad(10)+math.sin(legangle)),legspeed)
  681.         end
  682.         Rwait()
  683.     end
  684.     damen = true
  685.     PlaySound(Machete,1,0.6,Sounds[1])
  686.     for i = 1,14 do
  687.         DamageNear(4,Machete,math.random(7,14),5)
  688.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/6,0,0),armspeed)
  689.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/20,0,-math.pi/10),armspeed)
  690.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/5),speed)
  691.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  692.         lerp(HW,HW.C0,hc0,speed)
  693.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  694.             lerp(WLH,WLH.C0,LHC0,legspeed)
  695.             lerp(WRH,WRH.C0,RHC0,legspeed)
  696.         elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 20 then
  697.             lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.2-math.cos(legangle)*0.05,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*0.75))),legspeed)
  698.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.2-math.cos(legangle)*0.05,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*0.75))),legspeed)
  699.         elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 20 then
  700.             lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.05+math.cos(legangle)*0.5,-0.3*math.cos(legangle),0) *CFrame.Angles(0,0,math.rad(10)+math.sin(legangle)),legspeed)
  701.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.05+math.cos(legangle)*0.5,0.3*math.cos(legangle),0) *CFrame.Angles(0,0,-math.rad(10)+math.sin(legangle)),legspeed)
  702.         end
  703.         Rwait()
  704.     end
  705.     damen = false
  706. end
  707.  
  708. local function Kick2()
  709.     local walkspeed = Human.WalkSpeed
  710.     Human.WalkSpeed = 0
  711.     for i = 1,11 do
  712.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/6,0,0),armspeed)
  713.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(-math.pi/10,0,0),armspeed)
  714.         lerp(WLH,WLH.C0,LHC0,legspeed)
  715.         lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.3,0.5,0) *CFrame.Angles(0,0,math.pi/10),legspeed)
  716.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(-math.pi/8,0,0),speed)
  717.         lerp(Neck,Neck.C0,NC0,speed)
  718.         lerp(HW,HW.C0,hc0,speed)
  719.         Rwait()
  720.     end
  721.     damen = true
  722.     PlaySound(Machete,1,0.6,"rbxassetid://200632211")
  723.     ChargeAt(50)
  724.     for i = 1,10 do
  725.         DamageNear(3,RL,math.random(7,14),15)
  726.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/6,0,0),armspeed)
  727.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(-math.pi/10,0,0),armspeed)
  728.         lerp(WLH,WLH.C0,LHC0,legspeed)
  729.         lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.3,0,0) *CFrame.Angles(0,0,math.pi/2),legspeed)
  730.         lerp(WRJ,WRJ.C0,RJC0,speed)
  731.         lerp(Neck,Neck.C0,NC0,speed)
  732.         lerp(HW,HW.C0,hc0,speed)
  733.         Rwait()
  734.     end
  735.     Human.WalkSpeed = walkspeed
  736.     damen = false
  737. end
  738.  
  739. local function BackSlash3()
  740.     local walkspeed = Human.WalkSpeed
  741.     for i = 1,11 do
  742.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/6,0,0),armspeed)
  743.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/5,math.pi/2),armspeed)
  744.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/1.005),speed)
  745.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed)
  746.         lerp(HW,HW.C0,hc0,speed)
  747.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  748.             lerp(WLH,WLH.C0,LHC0,legspeed)
  749.             lerp(WRH,WRH.C0,RHC0,legspeed)
  750.         elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 20 then
  751.             lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.2-math.cos(legangle)*0.05,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*0.75))),legspeed)
  752.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.2-math.cos(legangle)*0.05,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*0.75))),legspeed)
  753.         elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 20 then
  754.             lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.05+math.cos(legangle)*0.5,-0.3*math.cos(legangle),0) *CFrame.Angles(0,0,math.rad(10)+math.sin(legangle)),legspeed)
  755.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.05+math.cos(legangle)*0.5,0.3*math.cos(legangle),0) *CFrame.Angles(0,0,-math.rad(10)+math.sin(legangle)),legspeed)
  756.         end
  757.         Rwait()
  758.     end
  759.     damen = true
  760.     PlaySound(Machete,1,0.8,Sounds[1])
  761.     ChargeAt(45)
  762.     Human.WalkSpeed = 0
  763.     for i = 1,14 do
  764.         DamageNear(4,Machete,math.random(7,14),5)
  765.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/6,0,0),armspeed*1.5)
  766.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/30,math.pi/2),armspeed*1.5)
  767.         lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/8),legspeed)
  768.         lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.3,0,0),legspeed)
  769.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/5),speed*1.5)
  770.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/5),speed*1.5)
  771.         lerp(HW,HW.C0,hc0,speed*1.5)
  772.         Rwait()
  773.     end
  774.     Human.WalkSpeed = walkspeed
  775.     damen = false
  776. end
  777.  
  778. local function MacheteToss()
  779.     damen = true
  780.     local walkspeed = Human.WalkSpeed
  781.     Human.WalkSpeed = 0
  782.     for i = 1,20 do
  783.         lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.5,0,-1) *CFrame.Angles(math.pi/1.4,0,math.pi/4),armspeed)
  784.         lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.5,0,-1) *CFrame.Angles(math.pi/1.4,0,-math.pi/4),armspeed)
  785.         lerp(WLH,WLH.C0,LHC0,legspeed)
  786.         lerp(WRH,WRH.C0,RHC0,legspeed)
  787.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.2) *CFrame.Angles(-math.pi/7.5,0,0),speed)
  788.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/10,0,0),speed)
  789.         lerp(HW,HW.C0,hc0,speed)
  790.         Rwait()
  791.     end
  792.     HW.Part0 = HM
  793.     HW.C0 = CFrame.new()
  794.     for i = 1,40 do
  795.         DamageNear(4,Machete,math.random(7,14),15)
  796.         if i % 4 == 0 then
  797.             PlaySound(Machete,1,0.75,Sounds[2])
  798.         end
  799.         lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.5,0,-1) *CFrame.Angles(math.pi/2,0,math.pi/4),armspeed)
  800.         lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.5,0,-1) *CFrame.Angles(math.pi/2,0,-math.pi/4),armspeed)
  801.         lerp(WLH,WLH.C0,LHC0,legspeed)
  802.         lerp(WRH,WRH.C0,RHC0,legspeed)
  803.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.2) *CFrame.Angles(math.pi/7.5,0,0),speed)
  804.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/10,0,0),speed)
  805.         lerp(HW,HW.C0,hc0 *CFrame.new(0,1+i,0) *CFrame.Angles(-i,0,0),speed)
  806.         Rwait()
  807.     end
  808.     for i = 40,0,-1 do
  809.         DamageNear(4,Machete,math.random(7,14),15)
  810.         if i % 4 == 0 then
  811.             PlaySound(Machete,1,0.75,Sounds[2])
  812.         end
  813.         lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.5,0,-1) *CFrame.Angles(math.pi/2,0,math.pi/4),armspeed)
  814.         lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.5,0,-1) *CFrame.Angles(math.pi/2,0,-math.pi/4),armspeed)
  815.         lerp(WLH,WLH.C0,LHC0,legspeed)
  816.         lerp(WRH,WRH.C0,RHC0,legspeed)
  817.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.2) *CFrame.Angles(math.pi/7.5,0,0),speed)
  818.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/10,0,0),speed)
  819.         lerp(HW,HW.C0,hc0 *CFrame.new(0,1+i,0) *CFrame.Angles(-i,0,0),speed)
  820.         Rwait()
  821.     end
  822.     HW.Part0 = RA
  823.     HW.C0 = hc0
  824.     Human.WalkSpeed = walkspeed
  825.     damen = false
  826. end
  827.  
  828. local function KillingMachine()
  829.     PlaySound(Head,1,0.8,Sounds[3])
  830.     local walkspeed = Human.WalkSpeed
  831.     Human.WalkSpeed = 0
  832.     buff = true
  833.     for i = 1,20 do
  834.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,-math.pi/2),armspeed)
  835.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/2),armspeed)
  836.         lerp(WLH,WLH.C0,LHC0,legspeed)
  837.         lerp(WRH,WRH.C0,RHC0,legspeed)
  838.         lerp(WRJ,WRJ.C0,RJC0,speed)
  839.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/8,0,0),speed)
  840.         lerp(HW,HW.C0,hc0,speed)
  841.         Rwait()
  842.     end
  843.     local bufffire = Instance.new("Fire",HM)
  844.     bufffire.Color = BrickColor.new("New Yeller").Color
  845.     bufffire.Size = 10
  846.     Human.WalkSpeed = walkspeed
  847.     spawn(function()
  848.         Rwait(1000)
  849.         buff = false
  850.         bufffire:Destroy()
  851.         effect(HM,BrickColor.new("Black"),Vector3.new(4,4,4),HM.CFrame,0,0.1,Vector3.new(-0.1,-0.1,-0.1),3,nil,"Sphere")
  852.         PlaySound(Head,1,0.7,Sounds[4])
  853.     end)
  854. end
  855.  
  856. local choking = false
  857.  
  858. local function Choke(hit)
  859.     choking = true
  860.     local beforeprop = hit.Parent.Humanoid.Torso.CustomPhysicalProperties
  861.     for i = 1,40 do
  862.         for i,v in pairs(hit.Parent:GetChildren()) do
  863.             if v.ClassName == "Part" then
  864.                 v.CustomPhysicalProperties = noweightprop
  865.             end
  866.         end
  867.         hit.Parent.Humanoid.PlatformStand = true
  868.         hit.Parent.Humanoid:ChangeState(1)
  869.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/1.1,0,-math.pi/3),armspeed/2)
  870.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/5),armspeed/2)
  871.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/2),speed/2)
  872.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/2),speed/2)
  873.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  874.             lerp(WLH,WLH.C0,LHC0,legspeed)
  875.             lerp(WRH,WRH.C0,RHC0,legspeed)
  876.         elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 20 then
  877.             lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.2-math.cos(legangle)*0.05,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*0.75))),legspeed)
  878.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.2-math.cos(legangle)*0.05,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*0.75))),legspeed)
  879.         elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 20 then
  880.             lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.05+math.cos(legangle)*0.5,-0.3*math.cos(legangle),0) *CFrame.Angles(0,0,math.rad(10)+math.sin(legangle)),legspeed)
  881.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.05+math.cos(legangle)*0.5,0.3*math.cos(legangle),0) *CFrame.Angles(0,0,-math.rad(10)+math.sin(legangle)),legspeed)
  882.         end
  883.         Rwait()
  884.     end
  885.     for i = 1,30 do
  886.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2.4,0,0),armspeed)
  887.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/5),armspeed)
  888.         lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/2.4),legspeed)
  889.         lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/2.4),legspeed)
  890.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.6) *CFrame.Angles(math.pi/2.4,0,0),speed)
  891.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed)
  892.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  893.             lerp(WLH,WLH.C0,LHC0,legspeed)
  894.             lerp(WRH,WRH.C0,RHC0,legspeed)
  895.         elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 20 then
  896.             lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.2-math.cos(legangle)*0.05,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*0.75))),legspeed)
  897.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.2-math.cos(legangle)*0.05,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*0.75))),legspeed)
  898.         elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 20 then
  899.             lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.05+math.cos(legangle)*0.5,-0.3*math.cos(legangle),0) *CFrame.Angles(0,0,math.rad(10)+math.sin(legangle)),legspeed)
  900.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.05+math.cos(legangle)*0.5,0.3*math.cos(legangle),0) *CFrame.Angles(0,0,-math.rad(10)+math.sin(legangle)),legspeed)
  901.         end
  902.         Rwait()
  903.     end
  904.     Human:ChangeState(2)
  905.     for i,v in pairs(hit.Parent:GetChildren()) do
  906.         if v.ClassName == "Part" then
  907.             v.CustomPhysicalProperties = beforeprop
  908.         end
  909.     end
  910.     Damage(hit,math.random(18,28))
  911.     hit.Parent.Humanoid.PlatformStand = false
  912.     grabweld:Destroy()
  913.     local ok = effect(hit.Parent.Torso,BrickColor.White(),Vector3.new(),hit.Parent.Torso.CFrame *CFrame.Angles(-math.pi/2,0,0),0,0.1,Vector3.new(1,1,1),3,Meshes.Blast,nil)
  914.     PlaySound(ok,1,0.6,"rbxassetid://174295284")
  915.     choking = false
  916.     damen = false
  917.     enabled = true
  918. end
  919.  
  920. local function GrabChoke()
  921.     damen = true
  922.     PlaySound(Claw,1,0.7,Sounds[2])
  923.     local dmgbx = LA.Touched:connect(function(hit) if choking == false and hit.Parent ~= nil and hit.Parent:FindFirstChild("Humanoid").Health >= 0 and hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then grabweld = Instance.new("Weld",T) grabweld.Part0 = LA grabweld.Part1 = hit.Parent.Torso grabweld.C0 = CFrame.new(0,-1.5,0) grabweld.C0 = grabweld.C0 *CFrame.Angles(-math.pi/2,math.pi,0) choking = true print(hit,grabweld,damen) Choke(hit) end end)
  924.     for i = 1,100 do
  925.         if choking == true then break end
  926.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,-math.pi/5),armspeed)
  927.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/5),armspeed)
  928.         lerp(WLH,WLH.C0,LHC0,legspeed)
  929.         lerp(WRH,WRH.C0,RHC0,legspeed)
  930.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  931.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed)
  932.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then
  933.             lerp(WLH,WLH.C0,LHC0,legspeed)
  934.             lerp(WRH,WRH.C0,RHC0,legspeed)
  935.         elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 20 then
  936.             lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.2-math.cos(legangle)*0.05,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*0.75))),legspeed)
  937.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.2-math.cos(legangle)*0.05,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*0.75))),legspeed)
  938.         elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 20 then
  939.             lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.05+math.cos(legangle)*0.5,-0.3*math.cos(legangle),0) *CFrame.Angles(0,0,math.rad(10)+math.sin(legangle)),legspeed)
  940.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.05+math.cos(legangle)*0.5,0.3*math.cos(legangle),0) *CFrame.Angles(0,0,-math.rad(10)+math.sin(legangle)),legspeed)
  941.         end
  942.         Rwait()
  943.     end
  944.     if choking == false then
  945.         damen = false
  946.         enabled = true
  947.     end
  948.     dmgbx:disconnect()
  949. end
  950.  
  951. local click = mouse.Button1Down:connect(function()
  952.     if on == false then return end
  953.     if enabled == false then return end
  954.     if combo == 1 and enabled == true then
  955.         enabled = false
  956.         Slash1()
  957.         enabled = true
  958.         combo = 2
  959.         coroutine.wrap(function()
  960.             Rwait(400)
  961.             if combo ~= 1 and enabled == true then
  962.                 combo = 1
  963.             end
  964.         end)()
  965.     elseif combo == 2 and enabled == true then
  966.         enabled = false
  967.         Kick2()
  968.         enabled = true
  969.         combo = 3
  970.         coroutine.wrap(function()
  971.             Rwait(400)
  972.             if combo ~= 1 and enabled == true then
  973.                 combo = 1
  974.             end
  975.         end)()
  976.     elseif combo == 3 and enabled == true then
  977.         enabled = false
  978.         BackSlash3()
  979.         enabled = true
  980.         combo = 1
  981.     end
  982. end)
  983.  
  984. local canlaugh = true
  985.  
  986. local keys = mouse.KeyDown:connect(function(key)
  987.     key = key:lower()
  988.     if enabled == false then return end
  989.     if key == "q" and on == true and enabled == true then
  990.         idle = 500
  991.     end
  992.     if key == "h" and on == true and enabled == true then
  993.         if canlaugh == true then
  994.             canlaugh = false
  995.             PlaySound(Head,3,0.85,"rbxassetid://504011121")
  996.             Rwait(300)
  997.             canlaugh = true
  998.         end
  999.     end
  1000.     if key == "z" and on == true and enabled == true and zenabled == 1 then
  1001.         zenabled = 0
  1002.         enabled = false
  1003.         MacheteToss()
  1004.         enabled = true
  1005.     elseif key == "x" and on == true and enabled == true and xenabled == 1 then
  1006.         xenabled = 0
  1007.         enabled = false
  1008.         --MacheteCombo()
  1009.         enabled = true
  1010.     elseif key == "c" and on == true and enabled == true and cenabled == 1 then
  1011.         cenabled = 0
  1012.         enabled = false
  1013.         GrabChoke()
  1014.     elseif key == "v" and on == true and enabled == true and venabled == 1 then
  1015.         venabled = 0
  1016.         enabled = false
  1017.         --GutsSpill()
  1018.         enabled = true
  1019.     elseif key == "e" and on == true and enabled == true and eenabled == 1 then
  1020.         eenabled = 0
  1021.         enabled = false
  1022.         buff = true
  1023.         KillingMachine()
  1024.         enabled = true
  1025.     elseif key == string.char(50) and enabled == true then
  1026.         Human.WalkSpeed = 32
  1027.     end
  1028. end)
  1029.  
  1030. local keys = mouse.KeyUp:connect(function(key)
  1031.     if key == string.char(50) and enabled == true then
  1032.         Human.WalkSpeed = 16
  1033.     end
  1034. end)
  1035.  
  1036. local function Cast(Pos,Dir,Amp,IgnoreList)
  1037.     return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit*Amp), IgnoreList)
  1038. end
  1039.  
  1040. while true do
  1041.     local surface = Cast(HM.Position,(CFrame.new(HM.Position,HM.Position - Vector3.new(0,1,0))).lookVector,4,Char)
  1042.     if zenabled < 1 then
  1043.         zenabled = zenabled +0.01 *0.25
  1044.     else
  1045.         zenabled = 1
  1046.     end
  1047.     if xenabled < 1 then
  1048.         xenabled = xenabled +0.01 *0.2
  1049.     else
  1050.         xenabled = 1
  1051.     end
  1052.     if cenabled < 1 then
  1053.         cenabled = cenabled +0.01 *0.15
  1054.     else
  1055.         cenabled = 1
  1056.     end
  1057.     if eenabled < 1 then
  1058.         eenabled = eenabled +0.01 *0.1
  1059.     else
  1060.         eenabled = 1
  1061.     end
  1062.     if venabled < 1 then
  1063.         venabled = venabled +0.01 *0.15
  1064.     else
  1065.         venabled = 1
  1066.     end
  1067.     if enabled == false then
  1068.         idle = 0
  1069.     end
  1070.     idle = idle +1
  1071.     skill1img:TweenSize(UDim2.new(zenabled,0,1,0), "Out","Quad",0.1,false,nil)
  1072.     skill2img:TweenSize(UDim2.new(xenabled,0,1,0), "Out","Quad",0.1,false,nil)
  1073.     skill3img:TweenSize(UDim2.new(cenabled,0,1,0), "Out","Quad",0.1,false,nil)
  1074.     skill4img:TweenSize(UDim2.new(venabled,0,1,0), "Out","Quad",0.1,false,nil)
  1075.     skill5img:TweenSize(UDim2.new(eenabled,0,1,0), "Out","Quad",0.1,false,nil)
  1076.     if on == true then
  1077.         angle = (angle % 100) +anglespeed/10
  1078.         armangle = (armangle % 100) +armanglespeed/10
  1079.         legangle = (legangle % 100) +leganglespeed/10
  1080.         if action == "Idle" and enabled == true and surface ~= nil then
  1081.             if idle < 500 then
  1082.                 lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/10,0,-math.pi/10),armspeed)
  1083.                 lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/8,math.pi/25),armspeed)
  1084.                 lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.2,0) *CFrame.Angles(-math.pi/30,0,math.pi/15),legspeed)
  1085.                 lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.25,0.2,0),legspeed)
  1086.                 lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.2) *CFrame.Angles(0,0,-math.pi/10),speed)
  1087.                 lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/10+math.sin(angle*0.25)*0.025,0,math.pi/10),speed)
  1088.                 lerp(HW,HW.C0,hc0,speed)
  1089.             elseif idle >= 500 then
  1090.                 lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/4,0,-math.pi/7),armspeed)
  1091.                 lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/6,0,math.pi/7),armspeed)
  1092.                 lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.2,0) *CFrame.Angles(-math.pi/30,0,math.pi/15),legspeed)
  1093.                 lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.25,0.2,0),legspeed)
  1094.                 lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.2),speed)
  1095.                 lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.cos(angle*0.125/2)*0.25,0,math.sin(angle*0.125/2)),speed)
  1096.                 lerp(HW,HW.C0,hc0 *CFrame.new(0,-0.9,1.7) *CFrame.Angles(math.pi/2.5,0,0),speed)
  1097.             end
  1098.         end
  1099.         if action == "Walk" and enabled == true and surface ~= nil then
  1100.             idle = 0
  1101.             lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.sin(armangle),0,0),armspeed)
  1102.             lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,-math.pi/3,math.pi/9),armspeed)
  1103.             lerp(WLH,WLH.C0,LHC0 *CFrame.new(0.1,0.2-math.cos(legangle)*0.05,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*0.75))),legspeed)
  1104.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1,0.2-math.cos(legangle)*0.05,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*0.75))),legspeed)
  1105.             lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.2),speed)
  1106.             lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/10+math.sin(angle*0.25)*0.1,0,0),speed)
  1107.             lerp(HW,HW.C0,hc0,speed)
  1108.         end
  1109.         if action == "Run" and enabled == true and surface ~= nil then
  1110.             idle = 0
  1111.             lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/4+math.sin(armangle)*1.25,0,0),armspeed*1.25)
  1112.             lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,-math.pi/2.3,math.pi/9),armspeed)
  1113.             lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.05+math.cos(legangle)*0.5,-0.05*math.cos(legangle),0) *CFrame.Angles(0,0,math.rad(10)+math.sin(legangle)),legspeed)
  1114.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.05+math.cos(legangle)*0.5,0.05*math.cos(legangle),0) *CFrame.Angles(0,0,-math.rad(10)+math.sin(legangle)),legspeed)
  1115.             lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.1) *CFrame.Angles(math.pi/5,0,0),speed)
  1116.             lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/5+math.sin(angle*0.25)*0.1,0,0),speed)
  1117.             lerp(HW,HW.C0,hc0,speed)
  1118.         end
  1119.         if HM.Velocity.Y >= 5 and enabled == true and surface == nil then
  1120.             action = "Jump"
  1121.             idle = 0
  1122.             lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/10,0,-math.pi/10),armspeed*1.5)
  1123.             lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/8,math.pi/25),armspeed*1.5)
  1124.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/10),legspeed*1.5)
  1125.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.5,0.5,0) *CFrame.Angles(0,0,-math.pi/8),legspeed*1.5)
  1126.             lerp(WRJ,WRJ.C0,RJC0,speed*1.5)
  1127.             lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/5,0,0),speed*1.5)
  1128.             lerp(HW,HW.C0,hc0,speed*1.5)
  1129.             Rwait()
  1130.         elseif HM.Velocity.Y <= -5 and enabled == true and surface == nil then
  1131.             action = "Fall"
  1132.             idle = 0
  1133.             lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/10,0,-math.pi/10),armspeed*1.5)
  1134.             lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/8,math.pi/25),armspeed*1.5)
  1135.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/10),legspeed*1.5)
  1136.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.15,0) *CFrame.Angles(0,0,-math.pi/8),legspeed*1.5)
  1137.             lerp(WRJ,WRJ.C0,RJC0,speed*1.5)
  1138.             lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/5,0,0),speed*1.5)
  1139.             lerp(HW,HW.C0,hc0,speed*1.5)
  1140.             Rwait()
  1141.         end
  1142.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude <= 2 then
  1143.             action = "Idle"
  1144.         elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 20 then
  1145.             action = "Walk"
  1146.         elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 20 then
  1147.             action = "Run"
  1148.         end
  1149.     end
  1150.     Rwait()
  1151. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement