Dark_EccentricYT

Untitled

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