Advertisement
sadDSdasdSA

Untitled

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