Advertisement
gilward

Shedletsky Rage

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