Joshmaxy1115

Untitled

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