ericdesouza

The power of rage script

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