Dark_EccentricYT

Untitled

Jun 30th, 2017
1,337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.37 KB | None | 0 0
  1. -- get rekt kingabsalt
  2. local p = game.Players.LocalPlayer
  3. local char = p.Character
  4. local mouse = p:GetMouse()
  5. local larm = char["Left Arm"]
  6. local rarm = char["Right Arm"]
  7. local lleg = char["Left Leg"]
  8. local rleg = char["Right Leg"]
  9. local hed = char.Head
  10. local torso = char.Torso
  11. local hum = char.Humanoid
  12. local cam = game.Workspace.CurrentCamera
  13. local root = char.HumanoidRootPart
  14. local rj = root.RootJoint
  15. local deb = false
  16. local shot = 0
  17. local stanceToggle = "Idle1"
  18. local l = game:GetService("Lighting")
  19. local rs = game:GetService("RunService").RenderStepped
  20. local hb = game:GetService("RunService").Heartbeat
  21. local Stepped = game:GetService("RunService").Stepped
  22. hum.JumpPower = 100
  23. hed.face:Remove()
  24. char["Body Colors"].HeadColor = BrickColor.new("Really black")
  25. fat = Instance.new("BindableEvent", script)
  26. fat.Name = "Heartbeat"
  27. script:WaitForChild("Heartbeat")
  28. frame = 0.033333333333333
  29. tf = 0
  30. allowframeloss = false
  31. tossremainder = false
  32. lastframe = tick()
  33. script.Heartbeat:Fire()
  34. game:GetService("RunService").Heartbeat:connect(function(s, p)
  35.  
  36. tf = tf + s
  37. if frame <= tf then
  38. if allowframeloss then
  39. script.Heartbeat:Fire()
  40. lastframe = tick()
  41. else
  42. for i = 1, math.floor(tf / frame) do
  43. script.Heartbeat:Fire()
  44. end
  45. lastframe = tick()
  46. end
  47. if tossremainder then
  48. tf = 0
  49. else
  50. tf = tf - frame * math.floor(tf / frame)
  51. end
  52. end
  53. end
  54. )
  55. for i,v in pairs(hed:GetChildren()) do
  56. if v:IsA("Sound") then
  57. v:Destroy()
  58. end
  59. end
  60. Debounces = {CanAttack = true, CanJoke = true, NoIdl = false, RPunch = false, RPunched = false, LPunch = false, LPunched = false, Slashing = false, Slashed = false, ks = false, ks2 = false}
  61. weld5 = function(part0, part1, c0, c1)
  62.  
  63. weeld = Instance.new("Weld", part0)
  64. weeld.Part0 = part0
  65. weeld.Part1 = part1
  66. weeld.C0 = c0
  67. weeld.C1 = c1
  68. return weeld
  69. end
  70.  
  71. NewPart = function(prnt, siz, cf, trans, anc, mat, col)
  72.  
  73. local prt = Instance.new("Part")
  74. prt.Parent = prnt
  75. prt.Name = "Part"
  76. prt.Size = siz
  77. prt.CanCollide = false
  78. prt.Anchored = anc
  79. prt.Locked = true
  80. prt.Transparency = trans
  81. prt.TopSurface = 10
  82. prt.BottomSurface = 10
  83. prt.FrontSurface = 10
  84. prt.BackSurface = 10
  85. prt.LeftSurface = 10
  86. prt.RightSurface = 10
  87. prt:BreakJoints()
  88. if not cf then
  89. prt.CFrame = CFrame.new(30, 10, 30)
  90. prt.Material = mat
  91. prt.BrickColor = BrickColor.new(col)
  92. m = Instance.new("SpecialMesh", prt)
  93. m.MeshType = 6
  94. return prt
  95. end
  96. end
  97.  
  98. lerp = function(a, b, t)
  99.  
  100. return a + (b - a) * t
  101. end
  102.  
  103. slerp = function(a, b, t)
  104.  
  105. dot = a:Dot(b)
  106. if t > 0.5 or not a then
  107. do return dot <= 0.99999 and dot >= -0.99999 or b end
  108. r = math.acos(dot)
  109. do return (a * math.sin((1 - t) * r) + b * math.sin(t * r)) / math.sin(r) end
  110. end
  111. end
  112.  
  113. matrixInterpolate = function(a, b, t)
  114.  
  115. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  116. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  117. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx, by, bz), t)
  118. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t)
  119. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t)
  120. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t)
  121. local t = v1:Dot(v2)
  122. if t >= 0 and t ~= 0 and t <= 0 then
  123. return CFrame.new()
  124. end
  125. 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)
  126. end
  127.  
  128. genWeld = function(a, b)
  129.  
  130. local w = Instance.new("Weld", a)
  131. w.Part0 = a
  132. w.Part1 = b
  133. return w
  134. end
  135.  
  136. weld = function(a, b)
  137.  
  138. local weld = Instance.new("Weld")
  139. weld.Name = "W"
  140. weld.Part0 = a
  141. weld.Part1 = b
  142. weld.C0 = a.CFrame:inverse() * b.CFrame
  143. weld.Parent = a
  144. return weld
  145. end
  146.  
  147. Lerp = function(c1, c2, al)
  148.  
  149. local com1 = {c1.X, c1.Y, c1.Z, c1:toEulerAnglesXYZ()}
  150. local com2 = {c2.X, c2.Y, c2.Z, c2:toEulerAnglesXYZ()}
  151. for i,v in pairs(com1) do
  152. com1[i] = v + (com2[i] - v) * al
  153. end
  154. return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1)))
  155. end
  156.  
  157. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  158.  
  159. local wld = Instance.new("Weld", wp1)
  160. wld.Part0 = wp0
  161. wld.Part1 = wp1
  162. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  163. end
  164.  
  165. newWeld(torso, larm, -1.5, 0.5, 0)
  166. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  167. newWeld(torso, rarm, 1.5, 0.5, 0)
  168. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  169. newWeld(torso, hed, 0, 1.5, 0)
  170. newWeld(torso, lleg, -0.5, -1, 0)
  171. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  172. newWeld(torso, rleg, 0.5, -1, 0)
  173. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  174. newWeld(root, torso, 0, -1, 0)
  175. torso.Weld.C1 = CFrame.new(0, -1, 0)
  176. z = Instance.new("Sound", char)
  177. z.SoundId = "rbxassetid://511394713"
  178. z.Looped = true
  179. z.Pitch = 0.98
  180. z.Volume = 1
  181. wait(0.1)
  182. z:Play()
  183. New = function(Object, Parent, Name, Data)
  184.  
  185. local Object = Instance.new(Object)
  186. if not Data then
  187. for Index,Value in pairs({}) do
  188. Object[Index] = Value
  189. end
  190. Object.Parent = Parent
  191. Object.Name = Name
  192. return Object
  193. end
  194. end
  195.  
  196. part1 = Instance.new("Part", rarm)
  197. part1.Name = "Arbiter"
  198. part1.BrickColor = BrickColor.new("Really black")
  199. part1.CFrame = rarm.CFrame
  200. part1.Material = "Metal"
  201. part1.Anchored = false
  202. part1.CanCollide = false
  203. part1.Locked = true
  204. part1.Size = Vector3.new(0.25, 1.05, 5.9)
  205. mesh1 = Instance.new("SpecialMesh", part1)
  206. mesh1.MeshType = Enum.MeshType.FileMesh
  207. mesh1.MeshId = "rbxassetid://489918296"
  208. mesh1.Scale = Vector3.new(0.015, 0.015, 0.015)
  209. local cor = Instance.new("Part", rarm)
  210. cor.Name = "Thingy"
  211. cor.Locked = true
  212. cor.TopSurface = 0
  213. cor.BottomSurface = 0
  214. cor.CanCollide = false
  215. cor.Size = Vector3.new(0.2, 0.2, 0.2)
  216. cor.Transparency = 1
  217. corw = Instance.new("Weld", cor)
  218. corw.Part0 = rarm
  219. corw.Part1 = cor
  220. corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  221. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  222. weld1 = Instance.new("Weld", cor)
  223. weld1.Part0 = cor
  224. weld1.Part1 = part1
  225. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  226. weld1.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(90))
  227. hitb = Instance.new("Part", cor)
  228. hitb.Name = "Thingy2"
  229. hitb.Locked = true
  230. hitb.TopSurface = 0
  231. hitb.BottomSurface = 0
  232. hitb.CanCollide = false
  233. hitb.Size = Vector3.new(4, 1, 3.5)
  234. hitb.Transparency = 1
  235. weld4 = Instance.new("Weld", cor)
  236. weld4.Part0 = hitb
  237. weld4.Part1 = cor
  238. weld4.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  239. weld4.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  240. local animpose = "Idle1"
  241. local lastanimpose = "Idle1"
  242. local grab = false
  243. local Smooth = 1
  244. local sine = 0
  245. local change = 1
  246. local val = 0
  247. local ffing = false
  248. mod4 = Instance.new("Model", char)
  249. ptez = {0.7, 0.8, 0.9, 1}
  250. FindNearestTorso = function(Position, Distance, SinglePlayer)
  251.  
  252. if SinglePlayer.Torso.CFrame.p - Position.magnitude >= Distance then
  253. do return not SinglePlayer end
  254. do
  255. local List = {}
  256. for i,v in pairs(workspace:GetChildren()) do
  257. if v:IsA("Model") and v:findFirstChild("Torso") and v ~= char and v.Torso.Position - Position.magnitude <= Distance then
  258. table.insert(List, v)
  259. end
  260. end
  261. do return List end
  262. -- DECOMPILER ERROR: 3 unprocessed JMP targets
  263. end
  264. end
  265. end
  266.  
  267. Slam = function()
  268.  
  269. local part = Instance.new("Part", mod4)
  270. part.Anchored = true
  271. part.CanCollide = false
  272. part.FormFactor = "Custom"
  273. part.Size = Vector3.new(0.2, 0.2, 0.2)
  274. part.CFrame = root.CFrame * CFrame.new(0, -2.8, -1.4) * CFrame.Angles(math.rad(90), 0, 0)
  275. part.Transparency = 0.7
  276. part.BrickColor = BrickColor.new("Really black")
  277. mesh = Instance.new("SpecialMesh", part)
  278. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  279. mesh.Scale = Vector3.new(3, 3, 3)
  280. local part2 = Instance.new("Part", mod4)
  281. part2.Anchored = true
  282. part2.CanCollide = false
  283. part2.FormFactor = "Custom"
  284. part2.Size = Vector3.new(0.2, 0.2, 0.2)
  285. part2.CFrame = root.CFrame * CFrame.new(0, -2.4, -1.6)
  286. part2.Transparency = 0.7
  287. part2.BrickColor = BrickColor.new("Lime green")
  288. mesh2 = Instance.new("SpecialMesh", part2)
  289. mesh2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  290. mesh2.Scale = Vector3.new(3, 1.5, 3)
  291. x = Instance.new("Sound", larm)
  292. x.SoundId = "http://www.roblox.com/asset/?id=142070127"
  293. x.Pitch = ptez[math.random(1, #ptez)]
  294. x.Volume = 1
  295. x1 = Instance.new("Sound", larm)
  296. x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
  297. x1.Pitch = ptez[math.random(1, #ptez)]
  298. x1.Volume = 1
  299. x:Play()
  300. x1:Play()
  301. for i,v in pairs(FindNearestTorso(torso.CFrame.p, 4)) do
  302. if v:FindFirstChild("Humanoid") then
  303. v.Humanoid:TakeDamage(math.random(30, 45))
  304. end
  305. end
  306. coroutine.resume(coroutine.create(function()
  307.  
  308. for i = 0, 0.62, 0.13 do
  309. fat.Event:wait()
  310. part.CFrame = part.CFrame
  311. part.Transparency = i
  312. mesh.Scale = mesh.Scale + Vector3.new(0.4, 0.4, 0.4)
  313. part2.CFrame = part2.CFrame
  314. part2.Transparency = i
  315. mesh2.Scale = mesh2.Scale + Vector3.new(0.4, 0.2, 0.4)
  316. end
  317. part.Parent = nil
  318. part2.Parent = nil
  319. x:Destroy()
  320. end
  321. ))
  322. end
  323.  
  324. wPart = function(x, y, z, color, tr, cc, an, parent)
  325.  
  326. local wp = Instance.new("WedgePart", parent or Weapon)
  327. wp.formFactor = "Custom"
  328. wp.Size = Vector3.new(x, y, z)
  329. wp.BrickColor = BrickColor.new(color)
  330. wp.CanCollide = cc
  331. wp.Transparency = tr
  332. wp.Anchored = an
  333. wp.TopSurface = 0
  334. return wp
  335. end
  336.  
  337. Mesh = function(par, num, x, y, z)
  338.  
  339. local msh = _
  340. if num == 1 then
  341. msh = Instance.new("CylinderMesh", par)
  342. else
  343. if num == 2 then
  344. msh = Instance.new("SpecialMesh", par)
  345. msh.MeshType = 3
  346. else
  347. if num == 3 then
  348. msh = Instance.new("BlockMesh", par)
  349. else
  350. if num == 4 then
  351. msh = Instance.new("SpecialMesh", par)
  352. msh.MeshType = "Torso"
  353. else
  354. if type(num) == "string" then
  355. msh = Instance.new("SpecialMesh", par)
  356. msh.MeshId = num
  357. end
  358. end
  359. end
  360. end
  361. end
  362. msh.Scale = Vector3.new(x, y, z)
  363. return msh
  364. end
  365.  
  366. local CFrameFromTopBack = function(at, top, back)
  367.  
  368. local right = top:Cross(back)
  369. 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)
  370. end
  371.  
  372. Triangle = function(a, b, c)
  373.  
  374. local edg1 = c - a:Dot(b - a.unit)
  375. local edg2 = a - b:Dot(c - b.unit)
  376. local edg3 = b - c:Dot(a - c.unit)
  377. if edg1 <= b - a.magnitude and edg1 >= 0 then
  378. a = a
  379. else
  380. -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  381.  
  382. if edg2 <= c - b.magnitude and edg2 >= 0 then
  383. a = b
  384. else
  385. -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  386.  
  387. -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  388.  
  389. if edg3 <= a - c.magnitude and edg3 >= 0 then
  390. a = c
  391. else
  392. print("unreachable")
  393. end
  394. end
  395. end
  396. local len1 = c - a:Dot(b - a.unit)
  397. local len2 = b - a.magnitude - len1
  398. local width = a + b - a.unit * len1 - c.magnitude
  399. local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  400. local list = {}
  401. if len1 > 0.01 then
  402. local w1 = wPart(0, 0, 0, "Lime green", 0.5, false, true, char)
  403. do
  404. local sz = Vector3.new(0.2, width, len1)
  405. w1.Size = sz
  406. local sp = Mesh(w1, 2, 0, 0, 0)
  407. sp.MeshType = "Wedge"
  408. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  409. w1:BreakJoints()
  410. w1.Anchored = true
  411. w1.Transparency = 0.7
  412. Spawn(function()
  413.  
  414. for i = 0, 1, 0.1 do
  415. fat.Event:wait()
  416. w1.Transparency = w1.Transparency + 0.03
  417. end
  418. end
  419. )
  420. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  421. table.insert(list, w1)
  422. end
  423. end
  424. do
  425. if len2 > 0.01 then
  426. local w2 = wPart(0, 0, 0, "Lime green", 0.5, false, true, char)
  427. local sz = Vector3.new(0.2, width, len2)
  428. w2.Size = sz
  429. local sp = Mesh(w2, 2, 0, 0, 0)
  430. sp.MeshType = "Wedge"
  431. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  432. w2:BreakJoints()
  433. w2.Anchored = true
  434. w2.Transparency = 0.7
  435. Spawn(function()
  436.  
  437. for i = 0, 1, 0.1 do
  438. fat.Event:wait()
  439. w2.Transparency = w2.Transparency + 0.03
  440. end
  441. end
  442. )
  443. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  444. table.insert(list, w2)
  445. end
  446. do
  447. return unpack(list)
  448. end
  449. end
  450. end
  451.  
  452. trail = function(p, t, h)
  453.  
  454. Spawn(function()
  455.  
  456. local blcf = p.CFrame
  457. local scfr = blcf
  458. for i = 1, t do
  459. local blcf = p.CFrame
  460. if scfr and p.Position - scfr.p.magnitude > 0.1 then
  461. 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)
  462. if a then
  463. game.Debris:AddItem(a, 1)
  464. end
  465. if b then
  466. game.Debris:AddItem(b, 1)
  467. end
  468. 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)
  469. if a then
  470. game.Debris:AddItem(a, 1)
  471. end
  472. if b then
  473. game.Debris:AddItem(b, 1)
  474. end
  475. scfr = blcf
  476. else
  477. do
  478. do
  479. if not scfr then
  480. scfr = blcf
  481. end
  482. fat.Event:wait()
  483. -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out DO_STMT
  484.  
  485. -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  486.  
  487. -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out IF_STMT
  488.  
  489. end
  490. end
  491. end
  492. end
  493. scfr = nil
  494. end
  495. )
  496. end
  497.  
  498. rarm.Touched:connect(function(ht)
  499.  
  500. hit = ht.Parent
  501. if ht and hit:IsA("Model") and hit:FindFirstChild("Humanoid") and hit.Name ~= p.Name and Debounces.RPunch == true and Debounces.RPunched == false then
  502. Debounces.RPunched = true
  503. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5, 8))
  504. if Debounces.ks == true then
  505. z = Instance.new("Sound", hed)
  506. z.SoundId = "rbxassetid://169380525"
  507. z.Pitch = ptz[math.random(1, #ptz)]
  508. z.Volume = 1
  509. z:Play()
  510. end
  511. wait(0.4)
  512. Debounces.RPunched = false
  513. end
  514. 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
  515. Debounces.RPunched = true
  516. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5, 8))
  517. if Debounces.ks == true then
  518. z = Instance.new("Sound", hed)
  519. z.SoundId = "rbxassetid://169380525"
  520. z.Pitch = ptz[math.random(1, #ptz)]
  521. z.Volume = 1
  522. z:Play()
  523. end
  524. wait(0.4)
  525. Debounces.RPunched = false
  526. end
  527. end
  528. )
  529. larm.Touched:connect(function(ht)
  530.  
  531. hit = ht.Parent
  532. if ht and hit:IsA("Model") and hit:FindFirstChild("Humanoid") and hit.Name ~= p.Name and Debounces.LPunch == true and Debounces.LPunched == false then
  533. Debounces.LPunched = true
  534. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4, 8))
  535. hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -160
  536. if Debounces.ks2 == true then
  537. z = Instance.new("Sound", hed)
  538. z.SoundId = "rbxassetid://169380525"
  539. z.Pitch = ptz[math.random(1, #ptz)]
  540. z.Volume = 1
  541. z:Play()
  542. end
  543. wait(0.4)
  544. Debounces.LPunched = false
  545. end
  546. 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
  547. Debounces.LPunched = true
  548. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4, 8))
  549. if Debounces.ks2 == true then
  550. z = Instance.new("Sound", hed)
  551. z.SoundId = "rbxassetid://169380525"
  552. z.Pitch = ptz[math.random(1, #ptz)]
  553. z.Volume = 1
  554. z:Play()
  555. end
  556. wait(0.4)
  557. Debounces.LPunched = false
  558. end
  559. end
  560. )
  561. local acos = math.acos
  562. local sqrt = math.sqrt
  563. local Vec3 = Vector3.new
  564. local fromAxisAngle = CFrame.fromAxisAngle
  565. local toAxisAngle = function(CFr)
  566.  
  567. local X, Y, Z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = CFr:components()
  568. local Angle = math.acos((R00 + R11 + R22 - 1) / 2)
  569. local A = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2
  570. if A ~= 0 or not 1e-05 then
  571. local B = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2
  572. if B ~= 0 or not 1e-05 then
  573. local C = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2
  574. if C ~= 0 or not 1e-05 then
  575. local x = (R21 - R12) / sqrt(A)
  576. local y = (R02 - R20) / sqrt(B)
  577. local z = (R10 - R01) / sqrt(C)
  578. return Vec3(x, y, z), Angle
  579. end
  580. end
  581. end
  582. end
  583.  
  584. ApplyTrig = function(Num, Func)
  585.  
  586. local Min, Max = Func(0), Func(1)
  587. local i = Func(Num)
  588. return (i - Min) / (Max - Min)
  589. end
  590.  
  591. LerpCFrame = function(CFrame1, CFrame2, Num)
  592.  
  593. local Vec, Ang = toAxisAngle(CFrame1:inverse() * CFrame2)
  594. return CFrame1 * fromAxisAngle(Vec, Ang * Num) + (CFrame2.p - CFrame1.p) * Num
  595. end
  596.  
  597. Crater = function(Torso, Radius)
  598.  
  599. Spawn(function()
  600.  
  601. local Ray = Ray.new(Torso.Position, Vector3.new(0, -1, 0) * 10)
  602. local Ignore = {}
  603. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  604. if v.Character ~= nil then
  605. Ignore[#Ignore + 1] = v.Character
  606. end
  607. end
  608. local Hit, Pos, SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray, Ignore)
  609. if Hit == nil then
  610. return
  611. end
  612. local Parts = {}
  613. for i = 1, 360, 10 do
  614. local P = Instance.new("Part", Torso.Parent)
  615. P.Anchored = true
  616. P.FormFactor = "Custom"
  617. P.BrickColor = Hit.BrickColor
  618. P.Material = Hit.Material
  619. P.TopSurface = "Smooth"
  620. P.BottomSurface = "Smooth"
  621. P.Size = Vector3.new(5, 10, 10) * (math.random(80, 100) / 100)
  622. 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)))
  623. 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}
  624. if math.random(0, 5) == 0 then
  625. local P = Instance.new("Part", Torso.Parent)
  626. P.Anchored = true
  627. P.FormFactor = "Custom"
  628. P.BrickColor = Hit.BrickColor
  629. P.Material = Hit.Material
  630. P.TopSurface = "Smooth"
  631. P.BottomSurface = "Smooth"
  632. P.Size = Vector3.new(2, 2, 2) * (math.random(80, 100) / 100)
  633. 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)))
  634. 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}
  635. end
  636. end
  637. for i = 0, 1, 0.05 do
  638. for i2,v in pairs(Parts) do
  639. v[1].CFrame = LerpCFrame(v[2], v[3], ApplyTrig(i, math.cos))
  640. end
  641. wait(0.02)
  642. end
  643. for i,v in pairs(Parts) do
  644. if v[1].Size.X > 2.1 then
  645. v[1].CFrame = v[1].CFrame + Vector3.new(0, 2, 0)
  646. end
  647. v[1].Anchored = false
  648. end
  649. for i = 0, 1, 0.05 do
  650. for i2,v in pairs(Parts) do
  651. v[1].Transparency = i
  652. if i == 1 then
  653. v[1]:Destroy()
  654. else
  655. if i >= 0.25 then
  656. v[1].CanCollide = false
  657. end
  658. end
  659. end
  660. wait(0.02)
  661. end
  662. Parts = nil
  663. end
  664. )
  665. end
  666.  
  667. function Dmg()
  668. local partofdeath = hitb
  669. local function CreateRegion3FromLocAndSize(Position, Size)
  670. local SizeOffset = Size/2
  671. local Point1 = Position - SizeOffset
  672. local Point2 = Position + SizeOffset
  673. return Region3.new(Point1, Point2)
  674. end
  675. local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size)
  676. for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
  677. Spawn(function()
  678. if Debounces.Slashing == true and Debounces.Slashed == false then
  679. Debounces.Slashed = true
  680. ypcall(function()
  681. local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
  682. humanoid:TakeDamage(math.random(10,18))
  683. end)
  684. wait(.4)
  685. Debounces.Slashed = false
  686. end
  687. end)
  688. end
  689. end
  690.  
  691. pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  692. ptz = {0.7, 0.8, 0.9, 1, 1.1}
  693. attackone = function()
  694.  
  695. for i = 1, 10 do
  696. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  697. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-24)), 0.4)
  698. 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)
  699. 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)
  700. 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)
  701. 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)
  702. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(-30), 0), 0.7)
  703. 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)
  704. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.7)
  705. 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)
  706. 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)
  707. 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)
  708. 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)
  709. 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)
  710. if Debounces.on == false then
  711. break
  712. end
  713. fat.Event:wait()
  714. end
  715. end
  716.  
  717. attacktwo = function()
  718.  
  719. Debounces.Slashing = true
  720. z = Instance.new("Sound", hed)
  721. z.SoundId = "rbxassetid://227194094"
  722. z.Pitch = ptz[math.random(1, #ptz)]
  723. z.Volume = 0.4
  724. wait(0.01)
  725. z:Play()
  726. for i = 1, 14 do
  727. Dmg()
  728. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  729. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(28)), 0.4)
  730. 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)
  731. 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)
  732. 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)
  733. 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)
  734. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.36)
  735. 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)
  736. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(0), math.rad(-40), 0), 0.4)
  737. 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)
  738. 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)
  739. 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)
  740. 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)
  741. 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)
  742. if Debounces.on == false then
  743. break
  744. end
  745. fat.Event:wait()
  746. end
  747. do
  748. Debounces.Slashing = false
  749. end
  750. end
  751.  
  752. attackthree = function()
  753.  
  754. for i = 1, 10 do
  755. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  756. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-24)), 0.4)
  757. 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)
  758. 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)
  759. 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)
  760. 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)
  761. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.5)
  762. 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)
  763. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1.3) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.5)
  764. 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)
  765. 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)
  766. 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)
  767. 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)
  768. 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)
  769. if Debounces.on == false then
  770. break
  771. end
  772. fat.Event:wait()
  773. end
  774. end
  775.  
  776. attackfour = function()
  777.  
  778. Debounces.Slashing = true
  779. z = Instance.new("Sound", hed)
  780. z.SoundId = "rbxassetid://227194094"
  781. z.Pitch = ptz[math.random(1, #ptz)]
  782. z.Volume = 0.4
  783. wait(0.01)
  784. z:Play()
  785. for i = 1, 14 do
  786. Dmg()
  787. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  788. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(28)), 0.4)
  789. 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)
  790. 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)
  791. 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)
  792. 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)
  793. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.36)
  794. 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)
  795. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1.6) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.36)
  796. 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)
  797. 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)
  798. 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)
  799. 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)
  800. 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)
  801. if Debounces.on == false then
  802. break
  803. end
  804. fat.Event:wait()
  805. end
  806. do
  807. Debounces.Slashing = false
  808. end
  809. end
  810.  
  811. attackfive = function()
  812.  
  813. z = Instance.new("Sound", hed)
  814. z.SoundId = "rbxassetid://"
  815. z.Pitch = 1
  816. z.Volume = 0.8
  817. wait(0.01)
  818. z:Play()
  819. for i = 1, 18 do
  820. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5)
  821. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.5)
  822. 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)
  823. 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)
  824. 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)
  825. 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)
  826. 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)
  827. 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)
  828. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, -1.6) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.5)
  829. 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)
  830. 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)
  831. 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)
  832. 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)
  833. 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)
  834. if Debounces.on == false then
  835. break
  836. end
  837. fat.Event:wait()
  838. end
  839. do
  840. z = Instance.new("Sound", hed)
  841. z.SoundId = "rbxassetid://227194094"
  842. z.Pitch = 0.6
  843. z.Volume = 1
  844. wait(0.01)
  845. z:Play()
  846. Debounces.Slashing = true
  847. for i = 1, 18 do
  848. Dmg()
  849. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-40)), 0.5)
  850. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-20), math.rad(-50), math.rad(0)), 0.5)
  851. 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)
  852. 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)
  853. 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)
  854. 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)
  855. 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)
  856. 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)
  857. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, -2) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.3)
  858. 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)
  859. 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)
  860. 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)
  861. 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)
  862. 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)
  863. if Debounces.on == false then
  864. break
  865. end
  866. fat.Event:wait()
  867. end
  868. do
  869. Debounces.Slashing = false
  870. end
  871. end
  872. end
  873.  
  874. ComboNum = 0
  875. mouse.Button1Down:connect(function()
  876.  
  877. if Debounces.CanAttack == true then
  878. Debounces.CanAttack = false
  879. Debounces.NoIdl = true
  880. Debounces.on = true
  881. if ComboNum == 0 then
  882. attackone()
  883. else
  884. if ComboNum == 1 then
  885. attacktwo()
  886. else
  887. if ComboNum == 2 then
  888. attackthree()
  889. else
  890. if ComboNum == 3 then
  891. attackfour()
  892. else
  893. if ComboNum == 4 then
  894. attackfive()
  895. end
  896. end
  897. end
  898. end
  899. end
  900. ComboNum = ComboNum + 1
  901. Debounces.CanAttack = true
  902. Debounces.on = false
  903. wait(0.2)
  904. if Debounces.CanAttack == true then
  905. ComboNum = 0
  906. Debounces.NoIdl = false
  907. end
  908. end
  909. end
  910. )
  911. mouse.KeyDown:connect(function(key)
  912.  
  913. if string.byte(key) == 52 then
  914. Swing = 2
  915. char.Humanoid.WalkSpeed = 28
  916. end
  917. end
  918. )
  919. mouse.KeyUp:connect(function(key)
  920.  
  921. if string.byte(key) == 52 then
  922. Swing = 1
  923. char.Humanoid.WalkSpeed = 16
  924. end
  925. end
  926. )
  927. jump = false
  928. rs:connect(function()
  929.  
  930. if char.Humanoid.Jump == true then
  931. jump = true
  932. else
  933. jump = false
  934. end
  935. char.Humanoid.FreeFalling:connect(function(f)
  936.  
  937. if f then
  938. ffing = true
  939. else
  940. ffing = false
  941. end
  942. end
  943. )
  944. sine = sine + change
  945. if jump == true then
  946. animpose = "Jumping"
  947. else
  948. if ffing == true then
  949. animpose = "Freefalling"
  950. else
  951. if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then
  952. animpose = "Idle"
  953. else
  954. if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 20 then
  955. animpose = "Walking"
  956. else
  957. if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude > 20 then
  958. animpose = "Running"
  959. end
  960. end
  961. end
  962. end
  963. end
  964. RightLeg = CFrame.new(0.5, -1, 0)
  965. LeftLeg = CFrame.new(-0.5, -1, 0)
  966. lefth = (torso.CFrame*LeftLeg)
  967. righth = (torso.CFrame*RightLeg)
  968.  
  969. speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
  970.  
  971. TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
  972.  
  973. local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
  974. local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
  975. if animpose ~= lastanimpose then
  976. sine = 0
  977. if Debounces.NoIdl == false then
  978. if stanceToggle == "Idle1" then
  979. 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)
  980. 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)
  981. 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)
  982. 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)
  983. 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)
  984. 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)
  985. else
  986. if stanceToggle == "Idle2" then
  987. 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)
  988. 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)
  989. 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)
  990. 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)
  991. 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)
  992. 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)
  993. end
  994. end
  995. fat.Event:wait()
  996. end
  997. end
  998. lastanimpose = animpose
  999. if Debounces.NoIdl == false then
  1000. if animpose == "Idle" then
  1001. change = 0.8
  1002. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1003. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-26)), 0.4)
  1004. 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)
  1005. 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)
  1006. 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)
  1007. 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)
  1008. 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)
  1009. 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)
  1010. 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)
  1011. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1012. 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)
  1013. 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)
  1014. 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)
  1015. 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)
  1016. else
  1017. if animpose == "Walking" then
  1018. change = 0.8
  1019. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.62, 0) * CFrame.Angles(math.rad(70), math.rad(90), math.rad(-10)), 0.4)
  1020. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)), 0.4)
  1021. 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)
  1022. 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)
  1023. 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)
  1024. 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)
  1025. 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)
  1026. 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)
  1027. 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)
  1028. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  1029. 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)
  1030. 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)
  1031. 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)
  1032. 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)
  1033. else
  1034. if animpose == "Running" then
  1035. change = 1.1
  1036. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1037. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-35)), 0.4)
  1038. 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)
  1039. 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)
  1040. 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)
  1041. 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)
  1042. 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)
  1043. 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)
  1044. 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)
  1045. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1046. 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)
  1047. 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)
  1048. 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)
  1049. 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)
  1050. else
  1051. if animpose == "Jumping" then
  1052. change = 1
  1053. 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)
  1054. 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)
  1055. 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)
  1056. 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)
  1057. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.2)
  1058. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  1059. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1060. 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)
  1061. 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)
  1062. 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)
  1063. 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)
  1064. else
  1065. if animpose == "Freefalling" then
  1066. change = 1
  1067. 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)
  1068. 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)
  1069. 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)
  1070. 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)
  1071. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), 0), 0.2)
  1072. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
  1073. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1074. 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)
  1075. 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)
  1076. 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)
  1077. 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)
  1078. end
  1079. end
  1080. end
  1081. end
  1082. end
  1083. end
  1084. end
  1085. )
  1086. hum.MaxHealth = 5000
  1087. wait(3)
  1088. hum.Health = 5000
Add Comment
Please, Sign In to add comment