Advertisement
yoyo74456

Abasolm Axe

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