StrikerAndDai

Untitled

Jul 16th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.27 KB | None | 0 0
  1. ----------------------------------
  2. local LocalPlayer = game:GetService("Players").LocalPlayer
  3. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  4.  
  5. Character.Head.Transparency = 1
  6.  
  7. local Orb = Instance.new("Part", Character)
  8. Orb.Name = "Orb"
  9.  
  10. Orb.CanCollide = false
  11. Orb.BrickColor = BrickColor.new("Really black")
  12. Orb.Transparency = 0
  13. Orb.Material = "Plastic"
  14. Orb.Size = Vector3.new(1, 1, 1)
  15.  
  16.  
  17. local M = Instance.new("SpecialMesh")
  18. M.Parent = Orb
  19. M.MeshId = "http://www.roblox.com/asset/?id=83499032"
  20. M.Scale = Vector3.new(1,1,1)
  21.  
  22.  
  23. local Weld = Instance.new("Weld", Orb)
  24. Weld.Part0 = Character.Head
  25. Weld.Part1 = Orb
  26. Weld.C1 = CFrame.new(0, -0.1, 0)
  27. ----------------------------------
  28. local Orbd = Instance.new("Part", Character)
  29. Orbd.Name = "Orbd"
  30. Orbd.Shape = Enum.PartType.Ball
  31. Orbd.CanCollide = false
  32. Orbd.BrickColor = BrickColor.new("Really red")
  33. Orbd.Transparency = 0
  34. Orbd.Material = "Neon"
  35. Orbd.Size = Vector3.new(0.1, 0.1, 0.1)
  36. Orbd.TopSurface = Enum.SurfaceType.Smooth
  37. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  38.  
  39. local Weld = Instance.new("Weld", Orbd)
  40. Weld.Part0 = Character.Head
  41. Weld.Part1 = Orbd
  42. Weld.C1 = CFrame.new(-0.2, -0.2, 0.5)
  43. ----------------------------------
  44. local p = game.Players.LocalPlayer
  45. local char = p.Character
  46. local mouse = p:GetMouse()
  47. local larm = char["Left Arm"]
  48. local rarm = char["Right Arm"]
  49. local lleg = char["Left Leg"]
  50. local rleg = char["Right Leg"]
  51. local hed = char.Head
  52. local torso = char.Torso
  53. local hum = char.Humanoid
  54. local cam = game.Workspace.CurrentCamera
  55. local root = char.HumanoidRootPart
  56. local rj = root.RootJoint
  57. local deb = false
  58. local shot = 0
  59. local stanceToggle = "Idle1"
  60. local l = game:GetService("Lighting")
  61. local rs = game:GetService("RunService").RenderStepped
  62. local hb = game:GetService("RunService").Heartbeat
  63. local Stepped = game:GetService("RunService").Stepped
  64. hum.JumpPower = 100
  65. hed.face:Remove()
  66. char["Body Colors"].HeadColor = BrickColor.new("Really black")
  67. fat = Instance.new("BindableEvent", script)
  68. fat.Name = "Heartbeat"
  69. script:WaitForChild("Heartbeat")
  70. frame = 0.033333333333333
  71. tf = 0
  72. allowframeloss = false
  73. tossremainder = false
  74. lastframe = tick()
  75. script.Heartbeat:Fire()
  76. game:GetService("RunService").Heartbeat:connect(function(s, p)
  77.  
  78. tf = tf + s
  79. if frame <= tf then
  80. if allowframeloss then
  81. script.Heartbeat:Fire()
  82. lastframe = tick()
  83. else
  84. for i = 1, math.floor(tf / frame) do
  85. script.Heartbeat:Fire()
  86. end
  87. lastframe = tick()
  88. end
  89. if tossremainder then
  90. tf = 0
  91. else
  92. tf = tf - frame * math.floor(tf / frame)
  93. end
  94. end
  95. end
  96. )
  97. for i,v in pairs(hed:GetChildren()) do
  98. if v:IsA("Sound") then
  99. v:Destroy()
  100. end
  101. end
  102. Debounces = {CanAttack = true, CanJoke = true, NoIdl = false, RPunch = false, RPunched = false, LPunch = false, LPunched = false, Slashing = false, Slashed = false, ks = false, ks2 = false}
  103. weld5 = function(part0, part1, c0, c1)
  104.  
  105. weeld = Instance.new("Weld", part0)
  106. weeld.Part0 = part0
  107. weeld.Part1 = part1
  108. weeld.C0 = c0
  109. weeld.C1 = c1
  110. return weeld
  111. end
  112.  
  113. NewPart = function(prnt, siz, cf, trans, anc, mat, col)
  114.  
  115. local prt = Instance.new("Part")
  116. prt.Parent = prnt
  117. prt.Name = "Part"
  118. prt.Size = siz
  119. prt.CanCollide = false
  120. prt.Anchored = anc
  121. prt.Locked = true
  122. prt.Transparency = trans
  123. prt.TopSurface = 10
  124. prt.BottomSurface = 10
  125. prt.FrontSurface = 10
  126. prt.BackSurface = 10
  127. prt.LeftSurface = 10
  128. prt.RightSurface = 10
  129. prt:BreakJoints()
  130. if not cf then
  131. prt.CFrame = CFrame.new(30, 10, 30)
  132. prt.Material = mat
  133. prt.BrickColor = BrickColor.new(col)
  134. m = Instance.new("SpecialMesh", prt)
  135. m.MeshType = 6
  136. return prt
  137. end
  138. end
  139.  
  140. lerp = function(a, b, t)
  141.  
  142. return a + (b - a) * t
  143. end
  144.  
  145. slerp = function(a, b, t)
  146.  
  147. dot = a:Dot(b)
  148. if t > 0.5 or not a then
  149. do return dot <= 0.99999 and dot >= -0.99999 or b end
  150. r = math.acos(dot)
  151. do return (a * math.sin((1 - t) * r) + b * math.sin(t * r)) / math.sin(r) end
  152. end
  153. end
  154.  
  155. matrixInterpolate = function(a, b, t)
  156.  
  157. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  158. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  159. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx, by, bz), t)
  160. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t)
  161. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t)
  162. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t)
  163. local t = v1:Dot(v2)
  164. if t >= 0 and t ~= 0 and t <= 0 then
  165. return CFrame.new()
  166. end
  167. return CFrame.new(v0.x, v0.y, v0.z, v1.x, v1.y, v1.z, v2.x, v2.y, v2.z, v3.x, v3.y, v3.z)
  168. end
  169.  
  170. genWeld = function(a, b)
  171.  
  172. local w = Instance.new("Weld", a)
  173. w.Part0 = a
  174. w.Part1 = b
  175. return w
  176. end
  177.  
  178. weld = function(a, b)
  179.  
  180. local weld = Instance.new("Weld")
  181. weld.Name = "W"
  182. weld.Part0 = a
  183. weld.Part1 = b
  184. weld.C0 = a.CFrame:inverse() * b.CFrame
  185. weld.Parent = a
  186. return weld
  187. end
  188.  
  189. Lerp = function(c1, c2, al)
  190.  
  191. local com1 = {c1.X, c1.Y, c1.Z, c1:toEulerAnglesXYZ()}
  192. local com2 = {c2.X, c2.Y, c2.Z, c2:toEulerAnglesXYZ()}
  193. for i,v in pairs(com1) do
  194. com1[i] = v + (com2[i] - v) * al
  195. end
  196. return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1)))
  197. end
  198.  
  199. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  200.  
  201. local wld = Instance.new("Weld", wp1)
  202. wld.Part0 = wp0
  203. wld.Part1 = wp1
  204. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  205. end
  206.  
  207. newWeld(torso, larm, -1.5, 0.5, 0)
  208. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  209. newWeld(torso, rarm, 1.5, 0.5, 0)
  210. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  211. newWeld(torso, hed, 0, 1.5, 0)
  212. newWeld(torso, lleg, -0.5, -1, 0)
  213. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  214. newWeld(torso, rleg, 0.5, -1, 0)
  215. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  216. newWeld(root, torso, 0, -1, 0)
  217. torso.Weld.C1 = CFrame.new(0, -1, 0)
  218. z = Instance.new("Sound", char)
  219. z.SoundId = "rbxassetid://511394713"
  220. z.Looped = true
  221. z.Pitch = 0.98
  222. z.Volume = 1
  223. wait(0.1)
  224. z:Play()
  225. New = function(Object, Parent, Name, Data)
  226.  
  227. local Object = Instance.new(Object)
  228. if not Data then
  229. for Index,Value in pairs({}) do
  230. Object[Index] = Value
  231. end
  232. Object.Parent = Parent
  233. Object.Name = Name
  234. return Object
  235. end
  236. end
  237.  
  238. part1 = Instance.new("Part", rarm)
  239. part1.Name = "Arbiter"
  240. part1.BrickColor = BrickColor.new("Really black")
  241. part1.CFrame = rarm.CFrame
  242. part1.Material = "Metal"
  243. part1.Anchored = false
  244. part1.CanCollide = false
  245. part1.Locked = true
  246. part1.Size = Vector3.new(0.25, 1.05, 5.9)
  247. mesh1 = Instance.new("SpecialMesh", part1)
  248. mesh1.MeshType = Enum.MeshType.FileMesh
  249. mesh1.MeshId = "rbxassetid://489918296"
  250. mesh1.Scale = Vector3.new(0.015, 0.015, 0.015)
  251. local cor = Instance.new("Part", rarm)
  252. cor.Name = "Thingy"
  253. cor.Locked = true
  254. cor.TopSurface = 0
  255. cor.BottomSurface = 0
  256. cor.CanCollide = false
  257. cor.Size = Vector3.new(0.2, 0.2, 0.2)
  258. cor.Transparency = 1
  259. corw = Instance.new("Weld", cor)
  260. corw.Part0 = rarm
  261. corw.Part1 = cor
  262. corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  263. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  264. weld1 = Instance.new("Weld", cor)
  265. weld1.Part0 = cor
  266. weld1.Part1 = part1
  267. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  268. weld1.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(90))
  269. hitb = Instance.new("Part", cor)
  270. hitb.Name = "Thingy2"
  271. hitb.Locked = true
  272. hitb.TopSurface = 0
  273. hitb.BottomSurface = 0
  274. hitb.CanCollide = false
  275. hitb.Size = Vector3.new(4, 1, 3.5)
  276. hitb.Transparency = 1
  277. weld4 = Instance.new("Weld", cor)
  278. weld4.Part0 = hitb
  279. weld4.Part1 = cor
  280. weld4.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  281. weld4.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  282. local animpose = "Idle1"
  283. local lastanimpose = "Idle1"
  284. local grab = false
  285. local Smooth = 1
  286. local sine = 0
  287. local change = 1
  288. local val = 0
  289. local ffing = false
  290. mod4 = Instance.new("Model", char)
  291. ptez = {0.7, 0.8, 0.9, 1}
  292. FindNearestTorso = function(Position, Distance, SinglePlayer)
  293.  
  294. if SinglePlayer.Torso.CFrame.p - Position.magnitude >= Distance then
  295. do return not SinglePlayer end
  296. do
  297. local List = {}
  298. for i,v in pairs(workspace:GetChildren()) do
  299. if v:IsA("Model") and v:findFirstChild("Torso") and v ~= char and v.Torso.Position - Position.magnitude <= Distance then
  300. table.insert(List, v)
  301. end
  302. end
  303. do return List end
  304. -- DECOMPILER ERROR: 3 unprocessed JMP targets
  305. end
  306. end
  307. end
  308.  
  309. Slam = function()
  310.  
  311. local part = Instance.new("Part", mod4)
  312. part.Anchored = true
  313. part.CanCollide = false
  314. part.FormFactor = "Custom"
  315. part.Size = Vector3.new(0.2, 0.2, 0.2)
  316. part.CFrame = root.CFrame * CFrame.new(0, -2.8, -1.4) * CFrame.Angles(math.rad(90), 0, 0)
  317. part.Transparency = 0.7
  318. part.BrickColor = BrickColor.new("Really black")
  319. mesh = Instance.new("SpecialMesh", part)
  320. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  321. mesh.Scale = Vector3.new(3, 3, 3)
  322. local part2 = Instance.new("Part", mod4)
  323. part2.Anchored = true
  324. part2.CanCollide = false
  325. part2.FormFactor = "Custom"
  326. part2.Size = Vector3.new(0.2, 0.2, 0.2)
  327. part2.CFrame = root.CFrame * CFrame.new(0, -2.4, -1.6)
  328. part2.Transparency = 0.7
  329. part2.BrickColor = BrickColor.new("Lime green")
  330. mesh2 = Instance.new("SpecialMesh", part2)
  331. mesh2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  332. mesh2.Scale = Vector3.new(3, 1.5, 3)
  333. x = Instance.new("Sound", larm)
  334. x.SoundId = "http://www.roblox.com/asset/?id=142070127"
  335. x.Pitch = ptez[math.random(1, #ptez)]
  336. x.Volume = 1
  337. x1 = Instance.new("Sound", larm)
  338. x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
  339. x1.Pitch = ptez[math.random(1, #ptez)]
  340. x1.Volume = 1
  341. x:Play()
  342. x1:Play()
  343. for i,v in pairs(FindNearestTorso(torso.CFrame.p, 4)) do
  344. if v:FindFirstChild("Humanoid") then
  345. v.Humanoid:TakeDamage(math.random(30, 45))
  346. end
  347. end
  348. coroutine.resume(coroutine.create(function()
  349.  
  350. for i = 0, 0.62, 0.13 do
  351. fat.Event:wait()
  352. part.CFrame = part.CFrame
  353. part.Transparency = i
  354. mesh.Scale = mesh.Scale + Vector3.new(0.4, 0.4, 0.4)
  355. part2.CFrame = part2.CFrame
  356. part2.Transparency = i
  357. mesh2.Scale = mesh2.Scale + Vector3.new(0.4, 0.2, 0.4)
  358. end
  359. part.Parent = nil
  360. part2.Parent = nil
  361. x:Destroy()
  362. end
  363. ))
  364. end
  365.  
  366. wPart = function(x, y, z, color, tr, cc, an, parent)
  367.  
  368. local wp = Instance.new("WedgePart", parent or Weapon)
  369. wp.formFactor = "Custom"
  370. wp.Size = Vector3.new(x, y, z)
  371. wp.BrickColor = BrickColor.new(color)
  372. wp.CanCollide = cc
  373. wp.Transparency = tr
  374. wp.Anchored = an
  375. wp.TopSurface = 0
  376. return wp
  377. end
  378.  
  379. Mesh = function(par, num, x, y, z)
  380.  
  381. local msh = _
  382. if num == 1 then
  383. msh = Instance.new("CylinderMesh", par)
  384. else
  385. if num == 2 then
  386. msh = Instance.new("SpecialMesh", par)
  387. msh.MeshType = 3
  388. else
  389. if num == 3 then
  390. msh = Instance.new("BlockMesh", par)
  391. else
  392. if num == 4 then
  393. msh = Instance.new("SpecialMesh", par)
  394. msh.MeshType = "Torso"
  395. else
  396. if type(num) == "string" then
  397. msh = Instance.new("SpecialMesh", par)
  398. msh.MeshId = num
  399. end
  400. end
  401. end
  402. end
  403. end
  404. msh.Scale = Vector3.new(x, y, z)
  405. return msh
  406. end
  407.  
  408. local CFrameFromTopBack = function(at, top, back)
  409.  
  410. local right = top:Cross(back)
  411. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  412. end
  413.  
  414. Triangle = function(a, b, c)
  415.  
  416. local edg1 = c - a:Dot(b - a.unit)
  417. local edg2 = a - b:Dot(c - b.unit)
  418. local edg3 = b - c:Dot(a - c.unit)
  419. if edg1 <= b - a.magnitude and edg1 >= 0 then
  420. a = a
  421. else
  422. -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  423.  
  424. if edg2 <= c - b.magnitude and edg2 >= 0 then
  425. a = b
  426. else
  427. -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  428.  
  429. -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  430.  
  431. if edg3 <= a - c.magnitude and edg3 >= 0 then
  432. a = c
  433. else
  434. print("unreachable")
  435. end
  436. end
  437. end
  438. local len1 = c - a:Dot(b - a.unit)
  439. local len2 = b - a.magnitude - len1
  440. local width = a + b - a.unit * len1 - c.magnitude
  441. local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  442. local list = {}
  443. if len1 > 0.01 then
  444. local w1 = wPart(0, 0, 0, "Lime green", 0.5, false, true, char)
  445. do
  446. local sz = Vector3.new(0.2, width, len1)
  447. w1.Size = sz
  448. local sp = Mesh(w1, 2, 0, 0, 0)
  449. sp.MeshType = "Wedge"
  450. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  451. w1:BreakJoints()
  452. w1.Anchored = true
  453. w1.Transparency = 0.7
  454. Spawn(function()
  455.  
  456. for i = 0, 1, 0.1 do
  457. fat.Event:wait()
  458. w1.Transparency = w1.Transparency + 0.03
  459. end
  460. end
  461. )
  462. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  463. table.insert(list, w1)
  464. end
  465. end
  466. do
  467. if len2 > 0.01 then
  468. local w2 = wPart(0, 0, 0, "Lime green", 0.5, false, true, char)
  469. local sz = Vector3.new(0.2, width, len2)
  470. w2.Size = sz
  471. local sp = Mesh(w2, 2, 0, 0, 0)
  472. sp.MeshType = "Wedge"
  473. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  474. w2:BreakJoints()
  475. w2.Anchored = true
  476. w2.Transparency = 0.7
  477. Spawn(function()
  478.  
  479. for i = 0, 1, 0.1 do
  480. fat.Event:wait()
  481. w2.Transparency = w2.Transparency + 0.03
  482. end
  483. end
  484. )
  485. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  486. table.insert(list, w2)
  487. end
  488. do
  489. return unpack(list)
  490. end
  491. end
  492. end
  493.  
  494. trail = function(p, t, h)
  495.  
  496. Spawn(function()
  497.  
  498. local blcf = p.CFrame
  499. local scfr = blcf
  500. for i = 1, t do
  501. local blcf = p.CFrame
  502. if scfr and p.Position - scfr.p.magnitude > 0.1 then
  503. local a, b = Triangle(scfr * CFrame.new(0, h / 2, 0).p, scfr * CFrame.new(0, -h / 2, 0).p, blcf * CFrame.new(0, h / 2, 0).p)
  504. if a then
  505. game.Debris:AddItem(a, 1)
  506. end
  507. if b then
  508. game.Debris:AddItem(b, 1)
  509. end
  510. local a, b = Triangle(blcf * CFrame.new(0, h / 2, 0).p, blcf * CFrame.new(0, -h / 2, 0).p, scfr * CFrame.new(0, -h / 2, 0).p)
  511. if a then
  512. game.Debris:AddItem(a, 1)
  513. end
  514. if b then
  515. game.Debris:AddItem(b, 1)
  516. end
  517. scfr = blcf
  518. else
  519. do
  520. do
  521. if not scfr then
  522. scfr = blcf
  523. end
  524. fat.Event:wait()
  525. -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out DO_STMT
  526.  
  527. -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  528.  
  529. -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out IF_STMT
  530.  
  531. end
  532. end
  533. end
  534. end
  535. scfr = nil
  536. end
  537. )
  538. end
  539.  
  540. rarm.Touched:connect(function(ht)
  541.  
  542. hit = ht.Parent
  543. if ht and hit:IsA("Model") and hit:FindFirstChild("Humanoid") and hit.Name ~= p.Name and Debounces.RPunch == true and Debounces.RPunched == false then
  544. Debounces.RPunched = true
  545. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5, 8))
  546. if Debounces.ks == true then
  547. z = Instance.new("Sound", hed)
  548. z.SoundId = "rbxassetid://169380525"
  549. z.Pitch = ptz[math.random(1, #ptz)]
  550. z.Volume = 1
  551. z:Play()
  552. end
  553. wait(0.4)
  554. Debounces.RPunched = false
  555. end
  556. if ht and hit:IsA("Hat") and hit.Parent.Name ~= p.Name and hit.Parent:FindFirstChild("Humanoid") and Debounces.RPunch == true and Debounces.RPunched == false then
  557. Debounces.RPunched = true
  558. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5, 8))
  559. if Debounces.ks == true then
  560. z = Instance.new("Sound", hed)
  561. z.SoundId = "rbxassetid://169380525"
  562. z.Pitch = ptz[math.random(1, #ptz)]
  563. z.Volume = 1
  564. z:Play()
  565. end
  566. wait(0.4)
  567. Debounces.RPunched = false
  568. end
  569. end
  570. )
  571. larm.Touched:connect(function(ht)
  572.  
  573. hit = ht.Parent
  574. if ht and hit:IsA("Model") and hit:FindFirstChild("Humanoid") and hit.Name ~= p.Name and Debounces.LPunch == true and Debounces.LPunched == false then
  575. Debounces.LPunched = true
  576. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4, 8))
  577. hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -160
  578. if Debounces.ks2 == true then
  579. z = Instance.new("Sound", hed)
  580. z.SoundId = "rbxassetid://169380525"
  581. z.Pitch = ptz[math.random(1, #ptz)]
  582. z.Volume = 1
  583. z:Play()
  584. end
  585. wait(0.4)
  586. Debounces.LPunched = false
  587. end
  588. if ht and hit:IsA("Hat") and hit.Parent.Name ~= p.Name and hit.Parent:FindFirstChild("Humanoid") and Debounces.LPunch == true and Debounces.LPunched == false then
  589. Debounces.LPunched = true
  590. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4, 8))
  591. if Debounces.ks2 == true then
  592. z = Instance.new("Sound", hed)
  593. z.SoundId = "rbxassetid://169380525"
  594. z.Pitch = ptz[math.random(1, #ptz)]
  595. z.Volume = 1
  596. z:Play()
  597. end
  598. wait(0.4)
  599. Debounces.LPunched = false
  600. end
  601. end
  602. )
  603. local acos = math.acos
  604. local sqrt = math.sqrt
  605. local Vec3 = Vector3.new
  606. local fromAxisAngle = CFrame.fromAxisAngle
  607. local toAxisAngle = function(CFr)
  608.  
  609. local X, Y, Z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = CFr:components()
  610. local Angle = math.acos((R00 + R11 + R22 - 1) / 2)
  611. local A = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2
  612. if A ~= 0 or not 1e-05 then
  613. local B = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2
  614. if B ~= 0 or not 1e-05 then
  615. local C = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2
  616. if C ~= 0 or not 1e-05 then
  617. local x = (R21 - R12) / sqrt(A)
  618. local y = (R02 - R20) / sqrt(B)
  619. local z = (R10 - R01) / sqrt(C)
  620. return Vec3(x, y, z), Angle
  621. end
  622. end
  623. end
  624. end
  625.  
  626. ApplyTrig = function(Num, Func)
  627.  
  628. local Min, Max = Func(0), Func(1)
  629. local i = Func(Num)
  630. return (i - Min) / (Max - Min)
  631. end
  632.  
  633. LerpCFrame = function(CFrame1, CFrame2, Num)
  634.  
  635. local Vec, Ang = toAxisAngle(CFrame1:inverse() * CFrame2)
  636. return CFrame1 * fromAxisAngle(Vec, Ang * Num) + (CFrame2.p - CFrame1.p) * Num
  637. end
  638.  
  639. Crater = function(Torso, Radius)
  640.  
  641. Spawn(function()
  642.  
  643. local Ray = Ray.new(Torso.Position, Vector3.new(0, -1, 0) * 10)
  644. local Ignore = {}
  645. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  646. if v.Character ~= nil then
  647. Ignore[#Ignore + 1] = v.Character
  648. end
  649. end
  650. local Hit, Pos, SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray, Ignore)
  651. if Hit == nil then
  652. return
  653. end
  654. local Parts = {}
  655. for i = 1, 360, 10 do
  656. local P = Instance.new("Part", Torso.Parent)
  657. P.Anchored = true
  658. P.FormFactor = "Custom"
  659. P.BrickColor = Hit.BrickColor
  660. P.Material = Hit.Material
  661. P.TopSurface = "Smooth"
  662. P.BottomSurface = "Smooth"
  663. P.Size = Vector3.new(5, 10, 10) * (math.random(80, 100) / 100)
  664. P.CFrame = (CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) - Vector3.new(0, 7, 0)) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  665. Parts[#Parts + 1] = {P, P.CFrame, (CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) - Vector3.new(0, 1, 0)) * CFrame.Angles(0, math.rad(i), 0) * CFrame.new(0, 0, -Radius) * CFrame.Angles(math.rad(math.random(-50, -20)), math.rad(math.random(-15, 15)), math.rad(math.random(-15, 15))), P.Size}
  666. if math.random(0, 5) == 0 then
  667. local P = Instance.new("Part", Torso.Parent)
  668. P.Anchored = true
  669. P.FormFactor = "Custom"
  670. P.BrickColor = Hit.BrickColor
  671. P.Material = Hit.Material
  672. P.TopSurface = "Smooth"
  673. P.BottomSurface = "Smooth"
  674. P.Size = Vector3.new(2, 2, 2) * (math.random(80, 100) / 100)
  675. P.CFrame = (CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) - Vector3.new(0, 2.5, 0)) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  676. Parts[#Parts + 1] = {P, P.CFrame, CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) * CFrame.Angles(0, math.rad(i), 0) * CFrame.new(0, 0, -Radius - 8) * CFrame.Angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90))), P.Size}
  677. end
  678. end
  679. for i = 0, 1, 0.05 do
  680. for i2,v in pairs(Parts) do
  681. v[1].CFrame = LerpCFrame(v[2], v[3], ApplyTrig(i, math.cos))
  682. end
  683. wait(0.02)
  684. end
  685. for i,v in pairs(Parts) do
  686. if v[1].Size.X > 2.1 then
  687. v[1].CFrame = v[1].CFrame + Vector3.new(0, 2, 0)
  688. end
  689. v[1].Anchored = false
  690. end
  691. for i = 0, 1, 0.05 do
  692. for i2,v in pairs(Parts) do
  693. v[1].Transparency = i
  694. if i == 1 then
  695. v[1]:Destroy()
  696. else
  697. if i >= 0.25 then
  698. v[1].CanCollide = false
  699. end
  700. end
  701. end
  702. wait(0.02)
  703. end
  704. Parts = nil
  705. end
  706. )
  707. end
  708.  
  709. function Dmg()
  710. local partofdeath = hitb
  711. local function CreateRegion3FromLocAndSize(Position, Size)
  712. local SizeOffset = Size/2
  713. local Point1 = Position - SizeOffset
  714. local Point2 = Position + SizeOffset
  715. return Region3.new(Point1, Point2)
  716. end
  717. local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size)
  718. for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
  719. Spawn(function()
  720. if Debounces.Slashing == true and Debounces.Slashed == false then
  721. Debounces.Slashed = true
  722. ypcall(function()
  723. local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
  724. humanoid:TakeDamage(math.random(10,18))
  725. end)
  726. wait(.4)
  727. Debounces.Slashed = false
  728. end
  729. end)
  730. end
  731. end
  732.  
  733. pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  734. ptz = {0.7, 0.8, 0.9, 1, 1.1}
  735. attackone = function()
  736.  
  737. for i = 1, 10 do
  738. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  739. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-24)), 0.4)
  740. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(70), math.rad(0), math.rad(-10)), 0.5)
  741. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-80), math.rad(0)), 0.5)
  742. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-24), math.rad(0), math.rad(-20)), 0.3)
  743. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  744. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(-30), 0), 0.7)
  745. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7)
  746. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.7)
  747. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.7)
  748. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0.2) * CFrame.Angles(math.rad(-11), math.rad(0), math.rad(-14)), 0.5)
  749. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  750. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -1, -0.3) * CFrame.Angles(math.rad(20), math.rad(-30), math.rad(16)), 0.5)
  751. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  752. if Debounces.on == false then
  753. break
  754. end
  755. fat.Event:wait()
  756. end
  757. end
  758.  
  759. attacktwo = function()
  760.  
  761. Debounces.Slashing = true
  762. z = Instance.new("Sound", hed)
  763. z.SoundId = "rbxassetid://227194094"
  764. z.Pitch = ptz[math.random(1, #ptz)]
  765. z.Volume = 0.4
  766. wait(0.01)
  767. z:Play()
  768. for i = 1, 14 do
  769. Dmg()
  770. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  771. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(28)), 0.4)
  772. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4) * CFrame.Angles(math.rad(70), math.rad(0), math.rad(100)), 0.4)
  773. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  774. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(36), math.rad(0), math.rad(-20)), 0.3)
  775. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  776. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.36)
  777. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(-40), math.rad(0)), 0.36)
  778. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(0), math.rad(-40), 0), 0.4)
  779. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  780. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.72, -1, -0.3) * CFrame.Angles(math.rad(14), math.rad(50), math.rad(-15)), 0.5)
  781. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  782. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0.2) * CFrame.Angles(math.rad(-12), math.rad(-30), math.rad(16)), 0.5)
  783. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  784. if Debounces.on == false then
  785. break
  786. end
  787. fat.Event:wait()
  788. end
  789. do
  790. Debounces.Slashing = false
  791. end
  792. end
  793.  
  794. attackthree = function()
  795.  
  796. for i = 1, 10 do
  797. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  798. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-24)), 0.4)
  799. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4) * CFrame.Angles(math.rad(70), math.rad(0), math.rad(100)), 0.4)
  800. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  801. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(48), math.rad(0), math.rad(-20)), 0.4)
  802. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.4)
  803. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.5)
  804. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.5)
  805. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1.3) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.5)
  806. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  807. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.72, -1, -0.4) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(-10)), 0.5)
  808. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  809. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(-30), math.rad(16)), 0.5)
  810. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  811. if Debounces.on == false then
  812. break
  813. end
  814. fat.Event:wait()
  815. end
  816. end
  817.  
  818. attackfour = function()
  819.  
  820. Debounces.Slashing = true
  821. z = Instance.new("Sound", hed)
  822. z.SoundId = "rbxassetid://227194094"
  823. z.Pitch = ptz[math.random(1, #ptz)]
  824. z.Volume = 0.4
  825. wait(0.01)
  826. z:Play()
  827. for i = 1, 14 do
  828. Dmg()
  829. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  830. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(28)), 0.4)
  831. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -0.4) * CFrame.Angles(math.rad(70), math.rad(0), math.rad(-60)), 0.4)
  832. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(0)), 0.4)
  833. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20), math.rad(10), math.rad(-10)), 0.3)
  834. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  835. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.36)
  836. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(0)), 0.36)
  837. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1.6) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.36)
  838. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36)
  839. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0.2) * CFrame.Angles(math.rad(-10), math.rad(-20), math.rad(-16)), 0.5)
  840. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  841. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.72, -1, -0.4) * CFrame.Angles(math.rad(14), math.rad(-50), math.rad(14)), 0.5)
  842. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  843. if Debounces.on == false then
  844. break
  845. end
  846. fat.Event:wait()
  847. end
  848. do
  849. Debounces.Slashing = false
  850. end
  851. end
  852.  
  853. attackfive = function()
  854.  
  855. z = Instance.new("Sound", hed)
  856. z.SoundId = "rbxassetid://"
  857. z.Pitch = 1
  858. z.Volume = 0.8
  859. wait(0.01)
  860. z:Play()
  861. for i = 1, 18 do
  862. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5)
  863. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.5)
  864. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.7, 0) * CFrame.Angles(math.rad(140), math.rad(0), math.rad(-40)), 0.4)
  865. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  866. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.7, 0) * CFrame.Angles(math.rad(140), math.rad(0), math.rad(40)), 0.4)
  867. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  868. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.4, 0.15) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.5)
  869. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.25)
  870. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, -1.6) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.5)
  871. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.5)
  872. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-15), math.rad(20), math.rad(-15)), 0.5)
  873. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  874. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-15), math.rad(-20), math.rad(15)), 0.5)
  875. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  876. if Debounces.on == false then
  877. break
  878. end
  879. fat.Event:wait()
  880. end
  881. do
  882. z = Instance.new("Sound", hed)
  883. z.SoundId = "rbxassetid://227194094"
  884. z.Pitch = 0.6
  885. z.Volume = 1
  886. wait(0.01)
  887. z:Play()
  888. Debounces.Slashing = true
  889. for i = 1, 18 do
  890. Dmg()
  891. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-40)), 0.5)
  892. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-20), math.rad(-50), math.rad(0)), 0.5)
  893. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.4, -0.4) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(-40)), 0.5)
  894. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  895. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.4, -0.4) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(40)), 0.5)
  896. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  897. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.4, -0.15) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.5)
  898. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.5)
  899. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, -2) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.3)
  900. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  901. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -0.2, -0.48) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-10)), 0.3)
  902. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  903. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -0.9, 0.2) * CFrame.Angles(math.rad(-70), math.rad(0), math.rad(10)), 0.3)
  904. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  905. if Debounces.on == false then
  906. break
  907. end
  908. fat.Event:wait()
  909. end
  910. do
  911. Debounces.Slashing = false
  912. end
  913. end
  914. end
  915.  
  916. ComboNum = 0
  917. mouse.Button1Down:connect(function()
  918.  
  919. if Debounces.CanAttack == true then
  920. Debounces.CanAttack = false
  921. Debounces.NoIdl = true
  922. Debounces.on = true
  923. if ComboNum == 0 then
  924. attackone()
  925. else
  926. if ComboNum == 1 then
  927. attacktwo()
  928. else
  929. if ComboNum == 2 then
  930. attackthree()
  931. else
  932. if ComboNum == 3 then
  933. attackfour()
  934. else
  935. if ComboNum == 4 then
  936. attackfive()
  937. end
  938. end
  939. end
  940. end
  941. end
  942. ComboNum = ComboNum + 1
  943. Debounces.CanAttack = true
  944. Debounces.on = false
  945. wait(0.2)
  946. if Debounces.CanAttack == true then
  947. ComboNum = 0
  948. Debounces.NoIdl = false
  949. end
  950. end
  951. end
  952. )
  953. mouse.KeyDown:connect(function(key)
  954.  
  955. if string.byte(key) == 52 then
  956. Swing = 2
  957. char.Humanoid.WalkSpeed = 28
  958. end
  959. end
  960. )
  961. mouse.KeyUp:connect(function(key)
  962.  
  963. if string.byte(key) == 52 then
  964. Swing = 1
  965. char.Humanoid.WalkSpeed = 16
  966. end
  967. end
  968. )
  969. jump = false
  970. rs:connect(function()
  971.  
  972. if char.Humanoid.Jump == true then
  973. jump = true
  974. else
  975. jump = false
  976. end
  977. char.Humanoid.FreeFalling:connect(function(f)
  978.  
  979. if f then
  980. ffing = true
  981. else
  982. ffing = false
  983. end
  984. end
  985. )
  986. sine = sine + change
  987. if jump == true then
  988. animpose = "Jumping"
  989. else
  990. if ffing == true then
  991. animpose = "Freefalling"
  992. else
  993. if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then
  994. animpose = "Idle"
  995. else
  996. if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 20 then
  997. animpose = "Walking"
  998. else
  999. if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude > 20 then
  1000. animpose = "Running"
  1001. end
  1002. end
  1003. end
  1004. end
  1005. end
  1006. RightLeg = CFrame.new(0.5, -1, 0)
  1007. LeftLeg = CFrame.new(-0.5, -1, 0)
  1008. lefth = (torso.CFrame*LeftLeg)
  1009. righth = (torso.CFrame*RightLeg)
  1010.  
  1011. speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
  1012.  
  1013. TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
  1014.  
  1015. local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
  1016. local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
  1017. if animpose ~= lastanimpose then
  1018. sine = 0
  1019. if Debounces.NoIdl == false then
  1020. if stanceToggle == "Idle1" then
  1021. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0.2) * CFrame.Angles(math.rad(-12 - 4 * math.cos(sine / 22)), math.rad(-12 - 2 * math.cos(sine / 22)), math.rad(12 + 2 * math.cos(sine / 22))), 0.3)
  1022. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, -0.2) * CFrame.Angles(math.rad(20 + 4 * math.cos(sine / 22)), math.rad(-22 - 2 * math.cos(sine / 22)), math.rad(-15 - 2 * math.cos(sine / 22))), 0.3)
  1023. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-12 + 2.5 * math.cos(sine / 22)), math.rad(0), math.rad(0)), 0.2)
  1024. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2 + 2 * math.cos(sine / 22)), math.rad(0), 0), 0.2)
  1025. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0 - 2 * math.cos(sine / 22)), math.rad(5), math.rad(-5)), 0.2)
  1026. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0 - 2 * math.cos(sine / 22)), math.rad(-5), math.rad(5)), 0.2)
  1027. else
  1028. if stanceToggle == "Idle2" then
  1029. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0.2) * CFrame.Angles(math.rad(-22 - 4 * math.cos(sine / 12)), math.rad(-40 - 2 * math.cos(sine / 12)), math.rad(24 + 2 * math.cos(sine / 12))), 0.3)
  1030. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.6, -0.6) * CFrame.Angles(math.rad(90 + 4 * math.cos(sine / 12)), math.rad(0), math.rad(50 - 2 * math.cos(sine / 12))), 0.3)
  1031. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-6 + 2.5 * math.cos(sine / 12)), math.rad(0), math.rad(0)), 0.2)
  1032. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20 + 2 * math.cos(sine / 12)), math.rad(0), 0), 0.2)
  1033. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7 - 2 * math.cos(sine / 12)), math.rad(7), math.rad(-5)), 0.2)
  1034. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30 - 2 * math.cos(sine / 12)), math.rad(-9), math.rad(5)), 0.2)
  1035. end
  1036. end
  1037. fat.Event:wait()
  1038. end
  1039. end
  1040. lastanimpose = animpose
  1041. if Debounces.NoIdl == false then
  1042. if animpose == "Idle" then
  1043. change = 0.8
  1044. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1045. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-26)), 0.4)
  1046. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5 + 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(30 + 2 * math.sin(sine / 10)), math.rad(-40 - 10 * math.cos(sine / 10)), math.rad(60)), 0.1)
  1047. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.1)
  1048. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5 + 0.05 * math.sin(sine / 10), 0.15) * CFrame.Angles(math.rad(70 - 2 * math.sin(sine / 10)), math.rad(0 + 10 * math.cos(sine / 10)), math.rad(-40)), 0.1)
  1049. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.1)
  1050. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.1)
  1051. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0.15 - 0.05 * math.sin(sine / 10)) * CFrame.Angles(math.rad(15 - 3 * math.sin(sine / 10)), math.rad(0), math.rad(0)), 0.1)
  1052. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-3 + 3 * math.cos(sine / 10)), math.rad(-40), 0), 0.1)
  1053. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1054. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1 - 0.01 * math.cos(sine / 10), 0) * CFrame.Angles(math.rad(10 - 5 * math.cos(sine / 10)), math.rad(40), math.rad(-10 + 1.9 * math.cos(sine / 10))), 0.1)
  1055. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0.3) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1056. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1 + 0.01 * math.cos(sine / 10), 0) * CFrame.Angles(math.rad(-10 - 3 * math.cos(sine / 10)), math.rad(-10), math.rad(12 + 1.9 * math.cos(sine / 10))), 0.1)
  1057. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1058. else
  1059. if animpose == "Walking" then
  1060. change = 0.8
  1061. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.62, 0) * CFrame.Angles(math.rad(70), math.rad(90), math.rad(-10)), 0.4)
  1062. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)), 0.4)
  1063. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90 + 2 * math.cos(sine / 7)), math.rad(0), math.rad(30)), 0.4)
  1064. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7)
  1065. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5 + 0.05 * math.cos(sine / 2), -math.sin(sine / 4) / 4) * CFrame.Angles(math.sin(sine / 4) / 2.8, -math.sin(sine / 4) / 3, math.rad(-10 - 7 * math.cos(sine / 2)) + root.RotVelocity.Y / 30), 0.4)
  1066. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7)
  1067. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1 + 0.1 * math.cos(sine / 2)) * CFrame.Angles(math.rad(-10 + 4 * math.cos(sine / 2)), math.rad(0 - 8 * math.cos(sine / 4) / 2.3), math.rad(0)), 0.4)
  1068. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0) - root.RotVelocity.Y / 10, math.rad(0)), 0.7)
  1069. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 + 0.12 * math.cos(sine / 2), 0) * CFrame.Angles(math.rad(-4 + 2 * math.cos(sine / 2)), math.rad(0 + 10 * math.cos(sine / 4) / 2.3) + root.RotVelocity.Y / 30, math.rad(0) + root.RotVelocity.Y / 30), 0.4)
  1070. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  1071. lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5, -1 - math.cos(sine / 4) * 0.2, 0 + math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3 * AngleThetaL.Z, AngleThetaL.X, math.sin(sine / 4) * 3 * -AngleThetaL.X - root.RotVelocity.Y / 20), 0.8)
  1072. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1073. rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5, -1 + math.cos(sine / 4) * 0.2, 0 - math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3 * -AngleThetaR.Z, AngleThetaR.X, math.sin(sine / 4) * 3 * AngleThetaR.X - root.RotVelocity.Y / 20), 0.8)
  1074. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1075. else
  1076. if animpose == "Running" then
  1077. change = 1.1
  1078. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1079. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-35)), 0.4)
  1080. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4, 0.54, 0) * CFrame.Angles(math.rad(-34), math.rad(-15), math.rad(26)), 0.2)
  1081. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36)
  1082. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24 + 0.6 * math.cos(sine / 4) / 1.4, 0.54, 0 - 0.8 * math.cos(sine / 4)) * CFrame.Angles(math.rad(6 + 140 * math.cos(sine / 4) / 1.2), math.rad(0), math.rad(20 + 70 * math.cos(sine / 4))), 0.2)
  1083. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1084. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-8 + 12 * math.cos(sine / 2) / 1.5), math.rad(0 + 12 * math.cos(sine / 4)), math.rad(0)), 0.2)
  1085. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0) - root.RotVelocity.Y / 10, math.rad(0)), 0.5)
  1086. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 + 0.2 * math.cos(sine / 2) / 1.7, 0) * CFrame.Angles(math.rad(-14 + 10 * math.cos(sine / 2) / 1.5), math.rad(0 - 12 * math.cos(sine / 4)) - root.RotVelocity.Y / 10, math.rad(0) + root.RotVelocity.Y / 20), 0.2)
  1087. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1088. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.8 - 0.4 * math.cos(sine / 4) / 2, math.sin(sine / 4) / 2) * CFrame.Angles(math.rad(-10) + -math.sin(sine / 4) / 1.2, math.rad(0 + 12 * math.cos(sine / 4)) + root.RotVelocity.Y / 10, 0), 0.8)
  1089. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1090. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8 + 0.4 * math.cos(sine / 4) / 2, -math.sin(sine / 4) / 2) * CFrame.Angles(math.rad(-10) + math.sin(sine / 4) / 1.2, math.rad(0 + 12 * math.cos(sine / 4)) + root.RotVelocity.Y / 10, 0), 0.8)
  1091. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1092. else
  1093. if animpose == "Jumping" then
  1094. change = 1
  1095. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.2)
  1096. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36)
  1097. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.2)
  1098. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1099. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.2)
  1100. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  1101. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1102. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1103. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1104. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1105. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1106. else
  1107. if animpose == "Freefalling" then
  1108. change = 1
  1109. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(math.rad(-40), math.rad(20), math.rad(50)), 0.2)
  1110. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36)
  1111. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(110), math.rad(-20), math.rad(-30)), 0.2)
  1112. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1113. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), 0), 0.2)
  1114. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
  1115. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1116. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, -0.5) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  1117. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1118. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, 0, 0.5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2)
  1119. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1120. end
  1121. end
  1122. end
  1123. end
  1124. end
  1125. end
  1126. end
  1127. )
  1128. -----------------------------
  1129. mouse.KeyDown:connect(function(key)
  1130. if key == "1" then
  1131. if Debounces.CanAttack == true then
  1132. Debounces.CanAttack = false
  1133. Debounces.on = true
  1134. Debounces.NoIdl = true
  1135. for i = 1, 20 do
  1136. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4)
  1137. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2)
  1138. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2)
  1139. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  1140. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2)
  1141. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2)
  1142. if Debounces.on == false then break end
  1143. rs:wait(2.6)
  1144. end
  1145. Spawn(function()
  1146. local Parts = {}
  1147. for Y = -5,5 do
  1148. local P = Instance.new("Part",char)
  1149. P.Anchored = true
  1150. P.FormFactor = "Custom"
  1151. P.CanCollide = false
  1152. P.Size = Vector3.new(2,4,2)
  1153. P.TopSurface = "SmoothNoOutlines"
  1154. P.BottomSurface = "SmoothNoOutlines"
  1155. P.Material = "Neon"
  1156. P.BrickColor = BrickColor.new("Really black")
  1157. P.Name = tostring(Y)
  1158. local i = (Y+5)/(10)
  1159. i = 1-math.cos(math.pi*i-(math.pi/2))
  1160. P.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,Y,-15+(i*1.5))*CFrame.Angles(math.rad(Y*5),0,0)
  1161. --[[P.Touched:connect(function(ht)
  1162. local hit = ht.Parent
  1163. if hit:FindFirstChild("Humanoid") then
  1164. hit.Humanoid:TakeDamage(math.random(20,50))
  1165. end
  1166. end)]]--
  1167. s = Instance.new("Sound",P)
  1168. s.SoundId = "rbxassetid://228343271"
  1169. s.Volume = 1
  1170. s.Pitch = 0.9
  1171. s:Play()
  1172. sa = Instance.new("Sound",P)
  1173. sa.SoundId = "rbxassetid://419447292"
  1174. sa.Volume = 1
  1175. sa.Pitch = 1
  1176. sa:Play()
  1177. P.Touched:connect(function(ht)
  1178. hit = ht.Parent
  1179. if ht and hit:IsA("Model") then
  1180. if hit:FindFirstChild("Humanoid") then
  1181. if hit.Name ~= p.Name then
  1182. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  1183. Debounces.Slashed = true]]--
  1184. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(1,3))
  1185. hit:FindFirstChild("Humanoid").PlatformStand = true
  1186. wait(1)
  1187. --Debounces.Slashed = false
  1188. --end
  1189. end
  1190. end
  1191. elseif ht and hit:IsA("Hat") then
  1192. if hit.Parent.Name ~= p.Name then
  1193. if hit.Parent:FindFirstChild("Humanoid") then
  1194. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  1195. Debounces.Slashed = true]]--
  1196. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random (1,3))
  1197. hit:FindFirstChild("Humanoid").PlatformStand = true
  1198. wait(1)
  1199. --Debounces.Slashed = false
  1200. --end
  1201. end
  1202. end
  1203. end
  1204. end)
  1205. Parts[#Parts+1] = P
  1206. end
  1207. local BREAKIT = false
  1208. local CParts = {}
  1209. local Rocks = {}
  1210. local LastPos = nil
  1211. for i = 1,70 do
  1212. for i2,v in pairs(Parts) do
  1213. v.CFrame = v.CFrame*CFrame.new(0,0,-4)
  1214. local cf = v.CFrame
  1215. v.Size = v.Size+Vector3.new(0.4,0.35,0)
  1216. v.CFrame = cf
  1217. v.Transparency = v.Transparency+0.02
  1218. if v.Transparency >= 0.975 then BREAKIT = true end
  1219. if v.Name == "0" then
  1220. local Ignore = {}
  1221. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1222. if v.Character ~= nil then
  1223. Ignore[#Ignore+1] = v.Character
  1224. end
  1225. end
  1226. local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-200,0))
  1227. local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore)
  1228. if Hit ~= nil then
  1229. if #Rocks == 0 then
  1230. for i = 1,5 do
  1231. local P = Instance.new("Part",char)
  1232. Rocks[#Rocks+1] = P
  1233. P.Anchored = true
  1234. P.FormFactor = "Custom"
  1235. P.BrickColor = Hit.BrickColor
  1236. P.Material = Hit.Material
  1237. P.TopSurface = "Smooth"
  1238. P.BottomSurface = "Smooth"
  1239. P.Size = Vector3.new(2,2,2)*(math.random(500,900)/100)
  1240. end
  1241. end
  1242. for i,P in pairs(Rocks) do
  1243. P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50)))
  1244. end
  1245. local P = Instance.new("Part",char)
  1246. CParts[#CParts+1] = {P,tick()}
  1247. P.Anchored = true
  1248. P.FormFactor = "Custom"
  1249. P.BrickColor = Hit.BrickColor
  1250. P.Material = Hit.Material
  1251. P.TopSurface = "Smooth"
  1252. P.BottomSurface = "Smooth"
  1253. P.Size = Vector3.new(2,2,2)*(math.random(100,300)/100)
  1254. Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0)
  1255. Pos = Pos.p
  1256. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50)))
  1257. local P = P:Clone()
  1258. CParts[#CParts+1] = {P,tick()}
  1259. P.Parent = char
  1260. Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0)
  1261. Pos = Pos.p
  1262. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20)))
  1263. if LastPos ~= nil then
  1264. local P = P:Clone()
  1265. CParts[#CParts+1] = {P,tick()}
  1266. P.Parent = char
  1267. P.BrickColor = BrickColor.new("Black")
  1268. P.Material = "Neon"
  1269. Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0)
  1270. Pos = Pos.p
  1271. local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0)
  1272. P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25)
  1273. --P.Velocity = Vector3.new(0,-1000,0)
  1274. P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2)
  1275. end
  1276. LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0)
  1277. end
  1278. end
  1279. end
  1280. if BREAKIT then break end
  1281. wait(0.002)
  1282. end
  1283. for i,v in pairs(Rocks) do
  1284. CParts[#CParts+1] = {v,tick()}
  1285. end
  1286. for i,v in pairs(Parts) do
  1287. v:Destroy()
  1288. end
  1289. Parts = nil
  1290. while true do
  1291. local t = tick()
  1292. local p = nil
  1293. for i,v in pairs(CParts) do
  1294. if t-v[2] > 4 then
  1295. v[1].Transparency = v[1].Transparency+0.05
  1296. if v[1].Transparency >= 1 then
  1297. v[1]:Destroy()
  1298. CParts[i] = nil
  1299. end
  1300. end
  1301. p = v
  1302. end
  1303. if p == nil then break end
  1304. wait(0.002)
  1305. end
  1306. for i,v in pairs(CParts) do
  1307. v:Destroy()
  1308. end
  1309. CParts = {}
  1310. end)
  1311. for i = 1, 20 do
  1312. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2)
  1313. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2)
  1314. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2)
  1315. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4)
  1316. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2)
  1317. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2)
  1318. cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -3.5, -7) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 1)
  1319. if Debounces.on == false then break end
  1320. rs:wait(2)
  1321. end
  1322. if Debounces.CanAttack == false then
  1323. Debounces.CanAttack = true
  1324. Debounces.on = false
  1325. Debounces.NoIdl = false
  1326. end
  1327. end
  1328. end
  1329. end)
  1330. -----------------------------
  1331. Charging = false
  1332. mouse.KeyDown:connect(function(key)
  1333. if key == "2" then
  1334. if Charging == false then
  1335. Charging = true
  1336. if Debounces.CanAttack == true then
  1337. Debounces.CanAttack = false
  1338. Debounces.NoIdl = true
  1339. Debounces.on = true
  1340. for i = 1,20 do
  1341. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-40)), 0.2)
  1342. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(40)), 0.2)
  1343. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2)
  1344. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  1345. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2)
  1346. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2)
  1347. if Debounces.on == false then break end
  1348. rs:wait()
  1349. end
  1350. --[[for i = 1,20 do
  1351. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(-20),math.rad(50)), 0.4)
  1352. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(20),math.rad(-50)), 0.4)
  1353. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4)
  1354. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.4)
  1355. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4)
  1356. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4)
  1357. if Debounces.on == false then break end
  1358. rs:wait()
  1359. end]]--
  1360. xay = Instance.new("Sound",char)
  1361. xay.SoundId = "rbxassetid://632366760"
  1362. xay.Pitch = 1
  1363. xay.Volume = 2.5
  1364. xay:Play()
  1365. pt=Instance.new('Part',torso)
  1366. pt.Anchored=true
  1367. pt.CanCollide=false
  1368. pt.Locked = true
  1369. pt.FormFactor='Custom'
  1370. pt.Size=Vector3.new(1,1,1)
  1371. pt.CFrame=root.CFrame*CFrame.new(0,-1,0)
  1372. pt.Transparency=.6
  1373. pt.BrickColor=BrickColor.new('Really black')
  1374. msh=Instance.new('SpecialMesh',pt)
  1375. msh.MeshId='http://www.roblox.com/asset/?id=20329976'
  1376. msh.Scale=Vector3.new(8,4,8)
  1377. pt2=pt:clone()
  1378. pt2.Parent = torso
  1379. pt2.CFrame=root.CFrame*CFrame.new(0,-1,0)
  1380. pt2.BrickColor=BrickColor.new("Really black")
  1381. msh2=msh:clone()
  1382. msh2.Parent=pt2
  1383. msh2.Scale=Vector3.new(10,5,10)
  1384.  
  1385. custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100}
  1386.  
  1387. bl = Instance.new("Part", char)
  1388. bl.Locked = true
  1389. bl.Name = "Shell"
  1390. bl.BrickColor = BrickColor.new("Really black")
  1391. bl.Anchored = true
  1392. bl.CanCollide = false
  1393. bl.Transparency = 0
  1394. bl.Reflectance = 0
  1395. bl.BottomSurface = 0
  1396. bl.TopSurface = 0
  1397. bl.Shape = 0
  1398. blm = Instance.new("SpecialMesh",bl)
  1399. blm.MeshType = "Sphere"
  1400. blm.Scale = Vector3.new(1,1,1)
  1401. blm.MeshId = "rbxassetid://9982590"
  1402.  
  1403. bl2 = Instance.new("Part", char)
  1404. bl2.Locked = true
  1405. bl2.Name = "Shella"
  1406. bl2.BrickColor = BrickColor.new("Really black")
  1407. bl2.Anchored = true
  1408. bl2.CanCollide = false
  1409. bl2.Transparency = 0
  1410. bl2.Reflectance = 0
  1411. bl2.BottomSurface = 0
  1412. bl2.TopSurface = 0
  1413. bl2.Shape = 0
  1414. blm2 = Instance.new("SpecialMesh",bl2)
  1415. blm2.MeshType = "Sphere"
  1416. blm2.Scale = Vector3.new(1,1,1)
  1417. blm2.MeshId = "rbxassetid://9982590"
  1418.  
  1419. coroutine.resume(coroutine.create(function()
  1420. for i=1, math.huge, 4 do
  1421. if Charging == true then
  1422. rs:wait()
  1423. bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10))
  1424. blm.Scale = blm.Scale + Vector3.new(15, 15, 15)
  1425. bl.Transparency = bl.Transparency + 0.075
  1426. bl2.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10))
  1427. blm2.Scale = blm2.Scale + Vector3.new(5, 5, 5)
  1428. bl2.Transparency = bl2.Transparency + 0.025
  1429. pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0)
  1430. pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0)
  1431. msh.Scale = msh.Scale + Vector3.new(5,2.5,5)
  1432. msh2.Scale = msh2.Scale + Vector3.new(10,5,10)
  1433. elseif Charging == false then break
  1434. end
  1435. end
  1436. end))
  1437.  
  1438. repeat
  1439. local p = Instance.new('Part',torso)
  1440. p.formFactor = 'Custom'
  1441. p.Size = Vector3.new(1,1,1)
  1442. p.BrickColor = workspace.Base.BrickColor
  1443. p.CanCollide = false
  1444. p.Transparency = 0
  1445. p.Anchored = true
  1446. p.Locked=true
  1447. p.Material = workspace.Base.Material
  1448. s = math.random(1,40)/10
  1449. local m = Instance.new("BlockMesh",p)
  1450. m.Scale = Vector3.new(s,s,s)
  1451. p.CFrame = torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random())
  1452. --[[coroutine.wrap(function()
  1453. wait(2)
  1454. while Charging == true do
  1455. wait(2)
  1456. GroundWave1()
  1457. wait(2)
  1458. end
  1459. end)()]]--
  1460. Spawn(function()
  1461. while rs:wait() do
  1462. if Charging == true then
  1463. rarm.Weld.C0 = CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(-30,-20)),math.rad(math.random(30,50)))
  1464. larm.Weld.C0 = CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(20,30)),math.rad(math.random(-50,-30)))
  1465. hed.Weld.C0 = CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(math.random(26,34)),math.rad(math.random(-5,5)),math.rad(0))
  1466. torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0))
  1467. lleg.Weld.C0 = CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(10,20)), math.rad(math.random(-20,-10)))
  1468. rleg.Weld.C0 = CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(-20,-10)), math.rad(math.random(10,20)))
  1469. elseif Charging == false then break
  1470. end
  1471. end
  1472. end)
  1473. Spawn(function()
  1474. while rs:wait() do
  1475. if p.Transparency >= 1 then p:Destroy() break end
  1476. p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0)
  1477. p.Transparency = p.Transparency+0.01
  1478. end
  1479. end)
  1480. wait(.3)
  1481. until Charging == false
  1482. end
  1483. end
  1484. end
  1485. end)
  1486. ----------------------------------------------------
  1487. mouse.KeyUp:connect(function(key)
  1488. if key == "2" then
  1489. if Charging == true then
  1490. Charging = false
  1491. pt:Destroy()
  1492. pt2:Destroy()
  1493. bl:Destroy()
  1494. if Debounces.CanAttack == false then
  1495. Debounces.CanAttack = true
  1496. Debounces.NoIdl = false
  1497. Debounces.on = false
  1498. end
  1499. end
  1500. end
  1501. end)
  1502. -----------------------------
  1503.  
  1504. -----------------------------
  1505. hum.MaxHealth = 50000000
  1506. wait(3)
  1507. hum.Health = 50000000
Add Comment
Please, Sign In to add comment