Advertisement
lafur

Untitled

Sep 18th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.81 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end local function lerp(weld,beglerp,endlerp,speed)
  6. weld.C0 = beglerp:lerp(endlerp,speed)
  7. return weld.C0
  8. end
  9. local function lerp2(weld,beglerp,endlerp,speed)
  10. weld.C0 = beglerp:lerp(endlerp,speed)
  11. return weld.C1
  12. end
  13.  
  14. local speed = 0.2
  15. local angle = 0
  16. local anglespeed = 2
  17. local armspeed = 0.2
  18. local armangle = 0
  19. local armanglespeed = 2
  20. local legspeed = 0.2
  21. local legangle = 0
  22. local leganglespeed = 2
  23. local ignore = {}
  24. local on = true
  25. local damen = true
  26. local enabled = true
  27. local slamming = false
  28. local combo = 1
  29. local Player = game.Players.LocalPlayer
  30. local mouse = Player:GetMouse()
  31. local Char = Player.Character
  32. local Character = Char
  33. local Human = Char.Humanoid
  34. local Sounds = {"rbxassetid://200633148","rbxassetid://200632211","rbxassetid://2101137","rbxassetid://136523485"}
  35. local Head = Char.Head
  36. local LA = Char:findFirstChild("Left Arm")
  37. local RA = Char:findFirstChild("Right Arm")
  38. local LL = Char:findFirstChild("Left Leg")
  39. local RL = Char:findFirstChild("Right Leg")
  40. local T = Char:findFirstChild("Torso")
  41. local LS = T:findFirstChild("Left Shoulder")
  42. local RS = T:findFirstChild("Right Shoulder")
  43. local LH = T:findFirstChild("Left Hip")
  44. local RH = T:findFirstChild("Right Hip")
  45. local Neck = T:findFirstChild("Neck")
  46. local HM = Char:findFirstChild("HumanoidRootPart")
  47. local RJ = Char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  48. local WLS = Instance.new("Weld", T)
  49. WLS.C0 = CFrame.new(-1.5, 0.5, 0)
  50. WLS.C1 = CFrame.new(0, 0.5, 0)
  51. WLS.Part0 = T
  52. WLS.Part1 = LA
  53. local WRS = Instance.new("Weld", T)
  54. WRS.Part0 = T
  55. WRS.Part1 = RA
  56. WRS.C0 = CFrame.new(1.5, 0.5, 0)
  57. WRS.C1 = CFrame.new(0, 0.5, 0)
  58. local WLH = LH
  59. local WRH = RH
  60. local LSC0 = WLS.C0
  61. local RSC0 = WRS.C0
  62. local LHC0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  63. local LHC1 = CFrame.new(-0.5, 1 ,0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  64. local RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  65. local RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  66. local WRJ = RJ
  67. local RJC0 = WRJ.C0
  68. local RJC1 = WRJ.C1
  69. local NC0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  70. local NC1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  71. local Run = game:GetService("RunService")
  72. RJC = RJ:Clone()
  73. LSH = LS:Clone()
  74. RSH = RS:Clone()
  75. LHH = LH:Clone()
  76. RHH = RH:Clone()
  77. Anim = Char:FindFirstChild("Animate")
  78. if Anim ~= nil then
  79. Anim.Parent = nil
  80. end
  81. Animate = Human:FindFirstChild("Animator")
  82. if Animate ~= nil then
  83. Animate.Parent = nil
  84. end
  85. WLS.Parent = T
  86. WRS.Parent = T
  87. WLH.Parent = T
  88. WRH.Parent = T
  89. WRJ.Parent = T
  90.  
  91. m=Instance.new('Model',Character)
  92. it=Instance.new
  93. function nooutline(part)
  94. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  95. end
  96. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  97. local fp=it("Part")
  98. fp.formFactor=formfactor
  99. fp.Parent=parent
  100. fp.Reflectance=reflectance
  101. fp.Transparency=transparency
  102. fp.CanCollide=false
  103. fp.Locked=true
  104. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  105. fp.Name=name
  106. fp.Size=size
  107. fp.Position=Character.Torso.Position
  108. nooutline(fp)
  109. fp.Material=material
  110. fp:BreakJoints()
  111. return fp
  112. end
  113. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  114. local mesh=it(Mesh)
  115. mesh.Parent=part
  116. if Mesh=="SpecialMesh" then
  117. mesh.MeshType=meshtype
  118. mesh.MeshId=meshid
  119. end
  120. mesh.Offset=offset
  121. mesh.Scale=scale
  122. return mesh
  123. end
  124. function weld(parent,part0,part1,c0,c1)
  125. local weld=it("Weld")
  126. weld.Parent=parent
  127. weld.Part0=part0
  128. weld.Part1=part1
  129. weld.C0=c0
  130. weld.C1=c1
  131. return weld
  132. end
  133.  
  134. Claw=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,1,"Really black","Handle",Vector3.new(1, 1.5, 1))
  135. Clawweld=weld(m,Character["Right Arm"],Claw,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0149011612, 0.25, -0.0200300217, -1, 0, 0, 0, 0.999999881, 0, 0, 0, -1))
  136. Part=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1, 1.5, 1))
  137. Partweld=weld(m,Claw,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  138. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 1.10000002, 1.10000002))
  139. Part=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1, 0.200000003, 1))
  140. Partweld=weld(m,Claw,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.549998999, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  141. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.20000005, 1.20000005, 1.20000005))
  142. Part=part(Enum.FormFactor.Symmetric,m,Enum.Material.Plastic,0,0,"Institutional white","Part",Vector3.new(0.299999952, 1, 1.39999998))
  143. Partweld=weld(m,Claw,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.594539642, -0.0200266838, -0.508953333, -0.970295787, 0.241921946, 0, 0, 0, -1, -0.241921946, -0.970295787, 0))
  144. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=10681506",Vector3.new(0, 0, 0),Vector3.new(2, 1.5, 1))
  145.  
  146. Hitbox = Part
  147.  
  148. local Meshes={
  149. Blast="20329976",
  150. Crown="1323306",
  151. Ring="3270017",
  152. Claw="10681506",
  153. Crystal="9756362",
  154. Coil="9753878",
  155. Cloud="1095708",
  156. Skull="4770583",
  157. }
  158.  
  159. local function nooutlines(part)
  160. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  161. end
  162.  
  163. local function getmesh(mesh)
  164. return "rbxassetid://"..mesh
  165. end
  166.  
  167. local function effect(part,brickcolor,size,cframe,trans,transincrement,scaleby,loopwait,meshid,meshtype)
  168. local p = Instance.new("Part", part or workspace)
  169. p.Anchored = true
  170. p.CanCollide = false
  171. p.FormFactor = Enum.FormFactor.Custom
  172. p.Material = "SmoothPlastic"
  173. p.CFrame = cframe
  174. p.BrickColor = brickcolor
  175. p.Size = Vector3.new(1,1,1)
  176. p.Transparency = trans
  177. nooutlines(p)
  178. local m = Instance.new("SpecialMesh",p)
  179. if meshtype ~= nil and meshid == nil then
  180. m.MeshType = meshtype
  181. end
  182. if meshtype == nil and meshid ~= nil then
  183. m.MeshId = getmesh(meshid)
  184. end
  185. m.Scale = size
  186. coroutine.wrap(function()
  187. for i = 0,loopwait,0.1 do
  188. p.CFrame = p.CFrame
  189. p.Transparency = p.Transparency +transincrement
  190. m.Scale = m.Scale + scaleby
  191. wait(1/60)
  192. end
  193. p:Destroy()
  194. end)()
  195. return p
  196. end
  197.  
  198. function Rwait(long)
  199. if long == 0 or long == nil then
  200. Run.RenderStepped:wait()
  201. else
  202. for i = 0,long do
  203. Run.RenderStepped:wait()
  204. end
  205. end
  206. end
  207.  
  208. local PlaySound = function(part,volume,pitch,id,looped)
  209. local Sound = Instance.new("Sound", part)
  210. Sound.SoundId = id
  211. Sound.Pitch = pitch
  212. Sound.Volume = volume
  213. coroutine.wrap(function()
  214. wait()
  215. Sound:Play()
  216. if looped == nil then
  217. game.Debris:AddItem(Sound,10)
  218. end
  219. end)()
  220. if looped == true then
  221. Sound.Looped = true
  222. ThisSound = Sound
  223. end
  224. end
  225.  
  226. local function GetDistance(Obj,Mag)
  227. for _,v in pairs(workspace:GetChildren()) do
  228. if v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') and v ~= Char then
  229. local Mag2 = (v.Torso.Position - Obj.Position).magnitude
  230. if Mag2 < Mag then
  231. return v
  232. end
  233. end
  234. end
  235. end
  236.  
  237. local ShowDmg = function(totake)
  238. local modl = Instance.new("Model", workspace)
  239. modl.Name = tostring(totake)
  240. local prt = Instance.new("Part", modl)
  241. prt.CanCollide = false
  242. prt.BrickColor = BrickColor.Red()
  243. prt.Name = "Head"
  244. prt.CFrame = HM.CFrame *CFrame.new(0, 1.5, 0)
  245. prt.TopSurface = 0
  246. prt.BottomSurface = 0
  247. prt.FormFactor = 3
  248. prt.Size = Vector3.new(1, 0.2, 1)
  249. local bm = Instance.new("BlockMesh", prt)
  250. local hum = Instance.new("Humanoid", modl)
  251. hum.Health = 0
  252. hum.MaxHealth = 0
  253. hum.WalkSpeed = 0
  254. bodypos = Instance.new("BodyPosition", prt)
  255. bodypos.position = Head.Position +Vector3.new(0, 1, 0)
  256. bodypos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  257. game.Debris:AddItem(modl, 1)
  258. coroutine.resume(coroutine.create(function()
  259. for i = 1, 3 do
  260. bodypos.position = bodypos.position +Vector3.new(0, 0.5, 0)
  261. Rwait()
  262. end
  263. end))
  264. end
  265.  
  266. local function ChargeAt(Strength,lastfor)
  267. local BV = Instance.new("BodyVelocity",HM)
  268. BV.maxForce = Vector3.new(5e4,0,5e4)
  269. BV.velocity = HM.CFrame.lookVector *Strength
  270. if lastfor == nil then lastfor = 0.1 end
  271. game.Debris:AddItem(BV,lastfor)
  272. end
  273.  
  274. local function Damage(hit,mm,knockback)
  275. if hit ~= nil and hit.Parent ~= nil and damen == true and hit.Parent ~= Char and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health > 0 then
  276. if game.Players:FindFirstChild(hit.Parent) ~= nil and game.Players:FindFirstChild(hit.Parent).TeamColor == "Bright orange" then
  277. return
  278. end
  279. hit.Parent.Humanoid:TakeDamage(mm)
  280. if knockback ~= nil and knockback ~= 0 then
  281. local v = Instance.new("BodyVelocity",hit.Parent.Torso)
  282. v.maxForce = Vector3.new(5e4,0,5e4)
  283. v.P = 1e20
  284. v.velocity = HM.CFrame.lookVector *knockback
  285. game.Debris:AddItem(v,0.5)
  286. end
  287. coroutine.resume(coroutine.create(function()
  288. ShowDmg(mm)
  289. end))
  290. damen = false
  291. end
  292. end
  293.  
  294. local function MagDamage(magnitude,part,damg,knockback,ignoretime)
  295. if ignoretime == 0 or ignoretime == nil then
  296. ignoretime = 0.5
  297. end
  298. local Body = GetDistance(part,magnitude)
  299. if Body ~= nil and Body.Humanoid and Body ~= Char and not ignore[Body] then
  300. ignore[Body] = true
  301. Body.Humanoid:TakeDamage(damg)
  302. spawn(function()
  303. ShowDmg(damg)
  304. end)
  305. if knockback ~= nil and Body.Torso ~= nil then
  306. local v = Instance.new("BodyVelocity",Body.Torso)
  307. v.maxForce = Vector3.new(5e4,0,5e4)
  308. v.P = 1e20
  309. v.velocity = HM.CFrame.lookVector *knockback
  310. game.Debris:AddItem(v,0.1)
  311. end
  312. coroutine.resume(coroutine.create(function()
  313. wait(ignoretime)
  314. ignore[Body] = false
  315. end))
  316. end
  317. end
  318.  
  319. local function Rwait(long)
  320. if long == 0 or long == nil then
  321. Run.RenderStepped:wait()
  322. else
  323. for i = 0,long do
  324. Run.RenderStepped:wait()
  325. end
  326. end
  327. end
  328.  
  329. local function Slash1()
  330. for i = 1,10 do
  331. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2.3,0,-math.pi/5),armspeed*1.3)
  332. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/10),armspeed*1.3)
  333. lerp(WLH,WLH.C0,LHC0,legspeed)
  334. lerp(WRH,WRH.C0,RHC0,legspeed)
  335. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  336. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed)
  337. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  338. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  339. lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  340. end
  341. Rwait()
  342. end
  343. damen = true
  344. local dmgbx = Hitbox.Touched:connect(function(hit) Damage(hit,math.random(8,14),3) end)
  345. PlaySound(Claw,1,1.1,Sounds[1])
  346. for i = 1,13 do
  347. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/3,0,-math.pi/3),armspeed*1.3)
  348. lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,0,-0.5) *CFrame.Angles(math.pi/2,0,-math.pi/3),armspeed*1.3)
  349. lerp(WLH,WLH.C0,LHC0,legspeed)
  350. lerp(WRH,WRH.C0,RHC0,legspeed)
  351. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/5),speed)
  352. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  353. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  354. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  355. lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  356. end
  357. Rwait()
  358. end
  359. damen = false
  360. dmgbx:disconnect()
  361. end
  362.  
  363. local function Slash2()
  364. for i = 1,10 do
  365. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/8),armspeed*1.3)
  366. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.2,math.pi/2,math.pi/5),armspeed*1.3)
  367. lerp(WLH,WLH.C0,LHC0,legspeed)
  368. lerp(WRH,WRH.C0,RHC0,legspeed)
  369. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  370. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed)
  371. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  372. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  373. lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  374. end
  375. Rwait()
  376. end
  377. damen = true
  378. local dmgbx = Hitbox.Touched:connect(function(hit) Damage(hit,math.random(8,14),3) end)
  379. PlaySound(Claw,1,1,Sounds[1])
  380. for i = 1,13 do
  381. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/7,0,-math.pi/4),armspeed*1.3)
  382. lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,0,-0.5) *CFrame.Angles(math.pi/6,math.pi/5,0),armspeed*1.3)
  383. lerp(WLH,WLH.C0,LHC0,legspeed)
  384. lerp(WRH,WRH.C0,RHC0,legspeed)
  385. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/5),speed)
  386. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  387. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  388. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  389. lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  390. end
  391. Rwait()
  392. end
  393. damen = false
  394. dmgbx:disconnect()
  395. end
  396.  
  397. local function Kick3()
  398. damen = true
  399. local dmgbx = RL.Touched:connect(function(hit) Damage(hit,math.random(5,8),10) end)
  400. PlaySound(RL,1,1.2,Sounds[2])
  401. ChargeAt(80,0.1)
  402. for i = 1,10 do
  403. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/5,0,0),armspeed)
  404. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/5),armspeed)
  405. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.pi/7),legspeed*1.3)
  406. lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/2.5),legspeed*1.3)
  407. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(-math.pi/7,0,0),speed)
  408. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/4,0,0),speed)
  409. Rwait()
  410. end
  411. damen = false
  412. dmgbx:disconnect()
  413. end
  414.  
  415. local function Slash4()
  416. damen = true
  417. local dmgbx = Hitbox.Touched:connect(function(hit) Damage(hit,math.random(8,14),3) end)
  418. PlaySound(Claw,1,1.2,Sounds[1])
  419. for i = 1,10 do
  420. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/8),armspeed*1.3)
  421. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.4,-math.pi/5,-math.pi/5),armspeed*1.3)
  422. lerp(WLH,WLH.C0,LHC0,legspeed)
  423. lerp(WRH,WRH.C0,RHC0,legspeed)
  424. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/5),speed)
  425. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  426. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  427. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  428. lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  429. end
  430. Rwait()
  431. end
  432. damen = false
  433. dmgbx:disconnect()
  434. end
  435.  
  436. function ChargeClaw()
  437. damen = true
  438. local dmgbx = Hitbox.Touched:connect(function(hit) Damage(hit,math.random(14,30),50) end)
  439. PlaySound(Claw,1,0.7,Sounds[1])
  440. ChargeAt(100,0.1)
  441. for i = 1,100 do
  442. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/4),armspeed)
  443. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/3,math.pi/2),armspeed)
  444. lerp(WLH,WLH.C0,LHC0,legspeed)
  445. lerp(WRH,WRH.C0,RHC0,legspeed)
  446. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/5),speed)
  447. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  448. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  449. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  450. lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  451. end
  452. Rwait()
  453. end
  454. damen = false
  455. dmgbx:disconnect()
  456. end
  457.  
  458. function GrabClaw()
  459. damen = true
  460. PlaySound(Claw,1,0.7,Sounds[2])
  461. local dmgbx = LA.Touched:connect(function(hit) if slamming == false and hit.Parent ~= nil and hit.Parent:FindFirstChild("Humanoid").Health >= 0 and hit.Parent:FindFirstChild("Torso") ~= 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) slamming = true print(hit,grabweld,damen) Slam(hit) end end)
  462. for i = 1,100 do
  463. if slamming == true then break end
  464. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,-math.pi/5),armspeed)
  465. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/5),armspeed)
  466. lerp(WLH,WLH.C0,LHC0,legspeed)
  467. lerp(WRH,WRH.C0,RHC0,legspeed)
  468. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  469. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed)
  470. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  471. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  472. lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  473. end
  474. Rwait()
  475. end
  476. if slamming == false then
  477. damen = false
  478. enabled = true
  479. end
  480. dmgbx:disconnect()
  481. end
  482.  
  483. function Slam(hit)
  484. slamming = true
  485. for i = 1,10 do
  486. hit.Parent.Humanoid.PlatformStand = true
  487. hit.Parent.Humanoid:ChangeState(1)
  488. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/1.1,0,-math.pi/3),armspeed)
  489. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/5),armspeed)
  490. lerp(WLH,WLH.C0,LHC0,legspeed)
  491. lerp(WRH,WRH.C0,RHC0,legspeed)
  492. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/5),speed)
  493. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed)
  494. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  495. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  496. lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  497. end
  498. Rwait()
  499. end
  500. for i = 1,20 do
  501. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2.4,0,0),armspeed)
  502. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/5),armspeed)
  503. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/2.4),legspeed)
  504. lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/2.4),legspeed)
  505. lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.6) *CFrame.Angles(math.pi/2.4,0,0),speed)
  506. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/5),speed)
  507. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  508. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  509. lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  510. end
  511. Rwait()
  512. end
  513. Human:ChangeState(2)
  514. Damage(hit,math.random(12,20))
  515. hit.Parent.Humanoid.PlatformStand = false
  516. grabweld:Destroy()
  517. 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),1,Meshes.Blast,nil)
  518. PlaySound(ok,1,1.49,Sounds[4])
  519. slamming = false
  520. damen = false
  521. enabled = true
  522. end
  523.  
  524. local click = mouse.Button1Down:connect(function()
  525. if on == false then return end
  526. if combo == 1 and enabled == true then
  527. enabled = false
  528. Slash1()
  529. enabled = true
  530. combo = 2
  531. coroutine.wrap(function()
  532. Rwait(400)
  533. if combo ~= 1 and enabled == true then
  534. combo = 1
  535. end
  536. end)()
  537. elseif combo == 2 and enabled == true then
  538. enabled = false
  539. Slash2()
  540. enabled = true
  541. combo = 3
  542. coroutine.wrap(function()
  543. Rwait(400)
  544. if combo ~= 1 and enabled == true then
  545. combo = 1
  546. end
  547. end)()
  548. elseif combo == 3 and enabled == true then
  549. enabled = false
  550. Kick3()
  551. enabled = true
  552. combo = 4
  553. coroutine.wrap(function()
  554. Rwait(400)
  555. if combo ~= 1 and enabled == true then
  556. combo = 1
  557. end
  558. end)()
  559. elseif combo == 4 and enabled == true then
  560. enabled = false
  561. Slash4()
  562. enabled = true
  563. combo = 1
  564. end
  565. end)
  566.  
  567. local keys = mouse.KeyDown:connect(function(key)
  568. key = key:lower()
  569. if enabled == false then return end
  570. if key == "z" and on == true and enabled == true then
  571. enabled = false
  572. ChargeClaw()
  573. enabled = true
  574. end
  575. if key == "x" and on == true and enabled == true then
  576. enabled = false
  577. GrabClaw()
  578. end
  579. end)
  580.  
  581. local function Cast(Pos,Dir,Amp,IgnoreList)
  582. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit*Amp), IgnoreList)
  583. end
  584.  
  585. while true do
  586. local surface = Cast(HM.Position,(CFrame.new(HM.Position,HM.Position - Vector3.new(0,1,0))).lookVector,4,Char)
  587. if on == true then
  588. angle = (angle % 100) +anglespeed/10
  589. armangle = (armangle % 100) +armanglespeed/10
  590. legangle = (legangle % 100) +leganglespeed/10
  591. if action == "Idle" and enabled == true and surface ~= nil then
  592. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/8,0,0),armspeed)
  593. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,-math.pi/1.5,-math.pi/8),armspeed)
  594. lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.5,0,0),legspeed)
  595. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,-0.25,0) *CFrame.Angles(0,0,-math.pi/5),legspeed)
  596. lerp(WRJ,WRJ.C0,RJC0,speed)
  597. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.sin(angle*0.25)*0.05,0,0),speed)
  598. end
  599. if action == "Walk" and enabled == true and surface ~= nil then
  600. lerp(WLS,WLS.C0,LSC0 *CFrame.new(1.7,math.cos(armangle*0.25)*0.25,-1) *CFrame.Angles(math.pi/2,0,math.pi/1.9),armspeed)
  601. lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,math.cos(armangle*0.25)*0.25,0) *CFrame.Angles(math.pi/2,0,math.pi/1.4),armspeed)
  602. lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,0.1-math.sin(angle*0.25)*0.25,0) *CFrame.Angles(0,0,-math.pi/30+math.sin(legangle)),legspeed)
  603. lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.1-math.sin(angle*0.25)*0.25,0) *CFrame.Angles(0,0,math.pi/30+math.sin(legangle)),legspeed)
  604. lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.2+math.sin(angle*0.25)*0.25) *CFrame.Angles(math.pi/8,0,0),speed)
  605. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/8,0,0),speed)
  606. end
  607. if HM.Velocity.Y >= 5 and enabled == true and surface == nil then
  608. action = "Jump"
  609. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/6,0,0),armspeed)
  610. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/4,0,0),armspeed)
  611. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.pi/10),legspeed)
  612. lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/5),legspeed)
  613. lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,math.pi/5,0),speed)
  614. lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/8,0,0),speed)
  615. Rwait()
  616. end
  617. if HM.Velocity.Y <= -5 and enabled == true and surface == nil then
  618. action = "Fall"
  619. lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/8,0,0),armspeed)
  620. lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/8,0,0),armspeed)
  621. lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.pi/10),legspeed)
  622. lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/4),legspeed)
  623. lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(math.pi/8,0,0),speed)
  624. lerp(Neck,Neck.C0,NC0,speed)
  625. Rwait()
  626. end
  627. if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude <= 2 then
  628. action = "Idle"
  629. elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  630. action = "Walk"
  631. end
  632. end
  633. Rwait()
  634. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement