Advertisement
ItzInfern

nuclear hulk

Jan 26th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 95.54 KB | None | 0 0
  1.  
  2.  
  3. --https://github.com/Mokiros/roblox-FE-compatibility
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. local RealPlayer = Player
  7. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  8.  
  9.  
  10.  
  11. -------Nuclear Hulk-------
  12. local p = game.Players.LocalPlayer
  13. local char = p.Character
  14. local mouse = p:GetMouse()
  15. local larm = char["Left Arm"]
  16. local rarm = char["Right Arm"]
  17. local lleg = char["Left Leg"]
  18. local rleg = char["Right Leg"]
  19. local hed = char.Head
  20. local torso = char.Torso
  21. local hum = char.Humanoid
  22. local cam = game.Workspace.CurrentCamera
  23. local root = char.HumanoidRootPart
  24. local deb = false
  25. local shot = 0
  26. local l = game:GetService("Lighting")
  27. local rs = game:GetService("RunService").RenderStepped
  28. local stanceToggle = "Normal"
  29. local rad = math.rad
  30. local GroundShake = false
  31. local GroundShake2 = false
  32. math.randomseed(os.time())
  33. hum.WalkSpeed = 5
  34. char.Health:Destroy()
  35. hum.MaxHealth = math.huge
  36. wait(0.1)
  37. hum.Health = math.huge
  38. ----------------------------------------------------
  39. Debounces = {
  40. on = false;
  41. ks = false;
  42. CanAttack = true;
  43. CanJoke = true;
  44. NoIdl = false;
  45. Slashing = false;
  46. Slashed = false;
  47. Grabbing = false;
  48. Grabbed = false;
  49. }
  50. local Touche = {char.Name, }
  51. ----------------------------------------------------
  52. function lerp(a, b, t) -- Linear interpolation
  53. return a + (b - a)*t
  54. end
  55.  
  56. function slerp(a, b, t) --Spherical interpolation
  57. dot = a:Dot(b)
  58. if dot > 0.99999 or dot < -0.99999 then
  59. return t <= 0.5 and a or b
  60. else
  61. r = math.acos(dot)
  62. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  63. end
  64. end
  65.  
  66. function matrixInterpolate(a, b, t)
  67. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  68. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  69. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  70. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  71. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  72. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  73. local t = v1:Dot(v2)
  74. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  75. return CFrame.new()
  76. end
  77. return CFrame.new(
  78. v0.x, v0.y, v0.z,
  79. v1.x, v1.y, v1.z,
  80. v2.x, v2.y, v2.z,
  81. v3.x, v3.y, v3.z)
  82. end
  83. ----------------------------------------------------
  84. function genWeld(a,b)
  85. local w = Instance.new("Weld",a)
  86. w.Part0 = a
  87. w.Part1 = b
  88. return w
  89. end
  90. function weld(a, b)
  91. local weld = Instance.new("Weld")
  92. weld.Name = "W"
  93. weld.Part0 = a
  94. weld.Part1 = b
  95. weld.C0 = a.CFrame:inverse() * b.CFrame
  96. weld.Parent = a
  97. return weld;
  98. end
  99. ----------------------------------------------------
  100. function Lerp(c1,c2,al)
  101. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  102. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  103. for i,v in pairs(com1) do
  104. com1[i] = v+(com2[i]-v)*al
  105. end
  106. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  107. end
  108. ----------------------------------------------------
  109. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  110. local wld = Instance.new("Weld", wp1)
  111. wld.Part0 = wp0
  112. wld.Part1 = wp1
  113. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  114. end
  115. ----------------------------------------------------
  116. for i,v in pairs(char:children()) do
  117. if v:IsA("Hat") then
  118. v:Destroy()
  119. end
  120. end
  121. for i,v in pairs(hed:children()) do
  122. if v:IsA("Sound") then
  123. v:Destroy()
  124. end
  125. end
  126. ----------------------------------------------------
  127. function HasntTouched(plrname)
  128. local ret = true
  129. for _, v in pairs(Touche) do
  130. if v == plrname then
  131. ret = false
  132. end
  133. end
  134. return ret
  135. end
  136. ----------------------------------------------------
  137. larm.Size = larm.Size * 2
  138. rarm.Size = rarm.Size * 2
  139. lleg.Size = lleg.Size * 2
  140. rleg.Size = rleg.Size * 2
  141. torso.Size = torso.Size * 2
  142. hed.Size = hed.Size * 2
  143. root.Size = root.Size * 2
  144. ----------------------------------------------------
  145. newWeld(torso, larm, -1.5, 0.5, 0)
  146. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  147. newWeld(torso, rarm, 1.5, 0.5, 0)
  148. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  149. newWeld(torso, hed, 0, 1.5, 0)
  150. newWeld(torso, lleg, -0.5, -1, 0)
  151. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  152. newWeld(torso, rleg, 0.5, -1, 0)
  153. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  154. newWeld(root, torso, 0, -1, 0)
  155. torso.Weld.C1 = CFrame.new(0, -1, 0)
  156. ----------------------------------------------------
  157. z = Instance.new("Sound", char)
  158. z.SoundId = "rbxassetid://449048980"--209113706
  159. z.Looped = true
  160. z.Pitch = 1
  161. z.Volume = 1
  162. wait(.01)
  163. z:Play()
  164. ----------------------------------------------------
  165.  
  166.  
  167. p:ClearCharacterAppearance()
  168. wait(0.1)
  169. p.Character.Head.BrickColor = BrickColor.new("Really black")
  170. p.Character.Torso.BrickColor = BrickColor.new("Really black")
  171. p.Character["Right Arm"].BrickColor = BrickColor.new("Really black")
  172. p.Character["Right Leg"].BrickColor = BrickColor.new("Really black")
  173. p.Character["Left Leg"].BrickColor = BrickColor.new("Really black")
  174. p.Character["Left Arm"].BrickColor = BrickColor.new("Really black")
  175.  
  176.  
  177. p.Character.Head.Material = "Granite"
  178. p.Character.Torso.Material = "Granite"
  179. p.Character["Right Arm"].Material = "Granite"
  180. p.Character["Right Leg"].Material = "Granite"
  181. p.Character["Left Leg"].Material = "Granite"
  182. p.Character["Left Arm"].Material = "Granite"
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190. larm1 = Instance.new("Part",char)
  191. larm1.Transparency = 0.5
  192. larm1.BrickColor = BrickColor.new("Lime green")
  193. larm1.Size = Vector3.new(2.1,4.1,2.1)
  194. larm1.Position = Vector3.new(999,999,999)
  195. larm1.Material = "SmoothPlastic"
  196. larmhold = Instance.new("Weld",char)
  197. larmhold.Part0 = larm
  198. larmhold.Part1 = larm1
  199. larmhold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  200. rarm1 = Instance.new("Part",char)
  201. rarm1.Transparency = 0.5
  202. rarm1.BrickColor = BrickColor.new("Lime green")
  203. rarm1.Size = Vector3.new(2.1,4.1,2.1)
  204. rarm1.Position = Vector3.new(999,999,999)
  205. rarm1.Material = "SmoothPlastic"
  206. rarmhold = Instance.new("Weld",char)
  207. rarmhold.Part0 = rarm
  208. rarmhold.Part1 = rarm1
  209. rarmhold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  210. torso1 = Instance.new("Part",char)
  211. torso1.Transparency = 0.5
  212. torso1.BrickColor = BrickColor.new("Lime green")
  213. torso1.Size = Vector3.new(4.1,4.1,2.1)
  214. torso1.Position = Vector3.new(999,999,999)
  215. torso1.Material = "SmoothPlastic"
  216. torsohold = Instance.new("Weld",char)
  217. torsohold.Part0 = torso
  218. torsohold.Part1 = torso1
  219. torsohold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  220. lleg1 = Instance.new("Part",char)
  221. lleg1.Transparency = 0.5
  222. lleg1.BrickColor = BrickColor.new("Lime green")
  223. lleg1.Size = Vector3.new(2.1,4.1,2.1)
  224. lleg1.Position = Vector3.new(999,999,999)
  225. lleg1.Material = "SmoothPlastic"
  226. lleghold = Instance.new("Weld",char)
  227. lleghold.Part0 = lleg
  228. lleghold.Part1 = lleg1
  229. lleghold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  230. rleg1 = Instance.new("Part",char)
  231. rleg1.Transparency = 0.5
  232. rleg1.BrickColor = BrickColor.new("Lime green")
  233. rleg1.Size = Vector3.new(2.1,4.1,2.1)
  234. rleg1.Position = Vector3.new(999,999,999)
  235. rleg1.Material = "SmoothPlastic"
  236. rleghold = Instance.new("Weld",char)
  237. rleghold.Part0 = rleg
  238. rleghold.Part1 = rleg1
  239. rleghold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  240. rhed1 = Instance.new("Part",char)
  241. rhed1.Transparency = 0.5
  242. rhed1.BrickColor = BrickColor.new("Lime green")
  243. rhed1.Size = Vector3.new(4.3,2.6,2.6)
  244. rhed1.Position = Vector3.new(999,999,999)
  245. rhed1.Material = "SmoothPlastic"
  246. rhedhold = Instance.new("Weld",char)
  247. rhedhold.Part0 = hed
  248. rhedhold.Part1 = rhed1
  249. rhedhold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  250. rhedmesh1 = Instance.new("SpecialMesh",rhed1)
  251. rhedmesh1.MeshType = "Head"
  252. rhedmesh1.Scale = Vector3.new(1,1,1)
  253.  
  254.  
  255.  
  256.  
  257. function BurningEff(part)
  258. local eff1 = Instance.new("ParticleEmitter",part)
  259. eff1.Size = NumberSequence.new(.1)
  260. eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
  261. eff1.LightEmission = 1
  262. eff1.Lifetime = NumberRange.new(1)
  263. eff1.Speed = NumberRange.new(0)
  264. eff1.Rate = 100
  265. eff1.Texture = "rbxassetid://284205403"
  266. eff1.Acceleration = Vector3.new(0,10,0)
  267. eff1.Color = ColorSequence.new(Color3.new(0,255,0))
  268. local eff2 = Instance.new("ParticleEmitter",part)
  269. eff2.Size = NumberSequence.new(.1)
  270. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
  271. eff2.LightEmission = 1
  272. eff2.Lifetime = NumberRange.new(1)
  273. eff2.Speed = NumberRange.new(0)
  274. eff2.Rate = 100
  275. eff2.Texture = "rbxassetid://347504259"
  276. eff2.Acceleration = Vector3.new(0,10,0)
  277. eff2.Color = ColorSequence.new(Color3.new(0,255,0))
  278. local eff3 = Instance.new("ParticleEmitter",part)
  279. eff3.Size = NumberSequence.new(1)
  280. eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  281. eff3.LightEmission = 1
  282. eff3.Lifetime = NumberRange.new(1)
  283. eff3.Speed = NumberRange.new(0)
  284. eff3.Rate = 100
  285. eff3.Texture = "rbxassetid://284205403"
  286. eff3.Acceleration = Vector3.new(0,10,0)
  287. eff3.Color = ColorSequence.new(Color3.new(0,255,0))
  288. end
  289.  
  290. Face = 'rbxassetid://513836869'
  291. local face=hed:FindFirstChild'face'
  292. face.Texture = Face
  293.  
  294. face=Instance.new("Decal",hed)
  295. face.Face="Front"
  296. face.Texture="rbxassetid://513836869"
  297.  
  298. BurningEff(hed)
  299. BurningEff(rarm)
  300. BurningEff(larm)
  301. BurningEff(torso)
  302.  
  303. LightOnBody = Instance.new("PointLight", hed)
  304. LightOnBody.Brightness = 0.8
  305. LightOnBody.Range = 20
  306. LightOnBody.Color = Color3.new(0, 255, 0)
  307.  
  308.  
  309. CV="Pastel blue"
  310.  
  311. local txt = Instance.new("BillboardGui", char)
  312. txt.Adornee = hed
  313. txt.Name = "_status"
  314. txt.Size = UDim2.new(2, 0, 1.2, 0)
  315. txt.StudsOffset = Vector3.new(-9, 8, 0)
  316. local text = Instance.new("TextLabel", txt)
  317. text.Size = UDim2.new(10, 0, 7, 0)
  318. text.FontSize = "Size24"
  319. text.TextScaled = true
  320. text.TextTransparency = 0
  321. text.BackgroundTransparency = 1
  322. text.TextTransparency = 0
  323. text.TextStrokeTransparency = 0
  324. text.Font = "Antique"
  325. text.TextStrokeColor3 = Color3.new(0,255,0)
  326.  
  327. v=Instance.new("Part")
  328. v.Name = "ColorBrick"
  329. v.Parent=p.Character
  330. v.FormFactor="Symmetric"
  331. v.Anchored=true
  332. v.CanCollide=false
  333. v.BottomSurface="Smooth"
  334. v.TopSurface="Smooth"
  335. v.Size=Vector3.new(10,5,3)
  336. v.Transparency=1
  337. v.CFrame=char.Torso.CFrame
  338. v.BrickColor=BrickColor.new(CV)
  339. v.Transparency=1
  340. text.TextColor3 = Color3.new(0,0,0)
  341. v.Shape="Block"
  342. text.Text = "Critical Mass"
  343.  
  344.  
  345.  
  346.  
  347. if GroundShake == true then
  348. for i,v in pairs(workspace:GetChildren()) do
  349. if v:IsA("Part") then
  350. if v.Size.x > 150 then
  351. v.CFrame = CFrame.new(v.Position) * CFrame.Angles(rad(math.random(-1,1)),rad(math.random(-1,1)),rad(math.random(-1,1)))
  352. end
  353. end
  354. end
  355.  
  356.  
  357.  
  358.  
  359. end
  360. if GroundShake2 == true then
  361.  
  362. for i,v in pairs(workspace:GetChildren()) do
  363. if v:IsA("Part") then
  364. if v.Size.x > 150 then
  365. v.CFrame = CFrame.new(v.Position) * CFrame.Angles(rad(math.random(-2,2)),rad(math.random(-2,2)),rad(math.random(-2,2)))
  366. end
  367. end
  368. end
  369.  
  370. end
  371.  
  372.  
  373.  
  374. local num = 0
  375.  
  376.  
  377.  
  378. GroundWave2 = function()
  379. local HandCF = char["Beam"..num].CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  380. Colors = {"White", "White"}
  381. local wave3 = Instance.new("Part", char)
  382. wave3.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  383. wave3.Anchored = true
  384. wave3.Name = "Wave"
  385. wave3.CanCollide = false
  386. wave3.Locked = true
  387. wave3.Size = Vector3.new(1, 1, 1)
  388. wave3.TopSurface = "Smooth"
  389. wave3.BottomSurface = "Smooth"
  390. wave3.Transparency = 0.35
  391. wave3.CFrame = HandCF
  392. wm1 = Instance.new("SpecialMesh", wave3)
  393. wm1.MeshId = "rbxassetid://3270017"
  394. coroutine.wrap(function()
  395. for i = 1, 30, 1 do
  396. wm1.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
  397. wave3.Size = wm1.Scale
  398. wave3.CFrame = HandCF
  399. wave3.Transparency = i/30
  400. wait()
  401. end
  402. wait()
  403. wave3:Destroy()
  404. end)()
  405. end
  406. GroundWave3 = function()
  407. local HandCF = char["Beam"..num].CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  408. Colors = {"White", "White"}
  409. local wave2 = Instance.new("Part", char)
  410. wave2.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  411. wave2.Anchored = true
  412. wave2.Name = "Wave"
  413. wave2.CanCollide = false
  414. wave2.Locked = true
  415. wave2.Size = Vector3.new(1, 1, 1)
  416. wave2.TopSurface = "Smooth"
  417. wave2.BottomSurface = "Smooth"
  418. wave2.Transparency = 0.35
  419. wave2.CFrame = HandCF
  420. wm2 = Instance.new("SpecialMesh", wave2)
  421. wm2.MeshId = "rbxassetid://3270017"
  422. coroutine.wrap(function()
  423. for i = 1, 30, 1 do
  424. wm2.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
  425. wave2.Size = wm2.Scale
  426. wave2.CFrame = HandCF
  427. wave2.Transparency = i/30
  428. wait()
  429. end
  430. wait()
  431. wave2:Destroy()
  432. end)()
  433. end
  434. GroundWave4 = function()
  435. local HandCF = char["Beam"..num].CFrame * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
  436. Colors = {"White", "White"}
  437. local wave1 = Instance.new("Part", char)
  438. wave1.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  439. wave1.Anchored = true
  440. wave1.Name = "Wave"
  441. wave1.CanCollide = false
  442. wave1.Locked = true
  443. wave1.Size = Vector3.new(1, 1, 1)
  444. wave1.TopSurface = "Smooth"
  445. wave1.BottomSurface = "Smooth"
  446. wave1.Transparency = 0.35
  447. wave1.CFrame = HandCF
  448. wm3 = Instance.new("SpecialMesh", wave1)
  449. wm3.MeshId = "rbxassetid://3270017"
  450. coroutine.wrap(function()
  451. for i = 1, 30, 1 do
  452. wm3.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
  453. wave1.Size = wm3.Scale
  454. wave1.CFrame = HandCF
  455. wave1.Transparency = i/30
  456. wait()
  457. end
  458. wait()
  459. wave1:Destroy()
  460. end)()
  461. end
  462. --------------------------------------------------------------------------
  463. --transform
  464. GroundWave5 = function()
  465. local HandCF = root.CFrame * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
  466.  
  467. Colors = {"Lime green", "Lime green"}
  468.  
  469.  
  470. local wave11 = Instance.new("Part", char)
  471. wave11.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  472. wave11.Anchored = true
  473. wave11.Name = "Wave"
  474. wave11.CanCollide = false
  475. wave11.Locked = true
  476. wave11.Size = Vector3.new(1, 1, 1)
  477. wave11.TopSurface = "Smooth"
  478. wave11.BottomSurface = "Smooth"
  479. wave11.Transparency = 0.35
  480. wave11.CFrame = HandCF
  481. wm31 = Instance.new("SpecialMesh", wave11)
  482. wm31.MeshId = "rbxassetid://3270017"
  483. coroutine.wrap(function()
  484. for i = 1, 30, 1 do
  485. wm31.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
  486. wave11.Size = wm31.Scale
  487. wave11.CFrame = HandCF
  488. wave11.Transparency = i/30
  489. wait()
  490. end
  491. wait()
  492. wave11:Destroy()
  493. end)()
  494. end
  495. GroundWave6 = function()
  496. local HandCF = root.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  497.  
  498. Colors = {"Lime green", "Lime green"}
  499.  
  500. local wave111 = Instance.new("Part", char)
  501. wave111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  502. wave111.Anchored = true
  503. wave111.Name = "Wave"
  504. wave111.CanCollide = false
  505. wave111.Locked = true
  506. wave111.Size = Vector3.new(1, 1, 1)
  507. wave111.TopSurface = "Smooth"
  508. wave111.BottomSurface = "Smooth"
  509. wave111.Transparency = 0.35
  510. wave111.CFrame = HandCF
  511. wm311 = Instance.new("SpecialMesh", wave111)
  512. wm311.MeshId = "rbxassetid://3270017"
  513. coroutine.wrap(function()
  514. for i = 1, 30, 1 do
  515. wm311.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
  516. wave111.Size = wm311.Scale
  517. wave111.CFrame = HandCF
  518. wave111.Transparency = i/30
  519. wait()
  520. end
  521. wait()
  522. wave111:Destroy()
  523. end)()
  524. end
  525. GroundWave7 = function()
  526. local HandCF = root.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  527.  
  528. Colors = {"Lime green", "Lime green"}
  529. local wave1111 = Instance.new("Part", char)
  530. wave1111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  531. wave1111.Anchored = true
  532. wave1111.Name = "Wave"
  533. wave1111.CanCollide = false
  534. wave1111.Locked = true
  535. wave1111.Size = Vector3.new(1, 1, 1)
  536. wave1111.TopSurface = "Smooth"
  537. wave1111.BottomSurface = "Smooth"
  538. wave1111.Transparency = 0.35
  539. wave1111.CFrame = HandCF
  540. wm3111 = Instance.new("SpecialMesh", wave1111)
  541. wm3111.MeshId = "rbxassetid://3270017"
  542. coroutine.wrap(function()
  543. for i = 1, 30, 1 do
  544. wm3111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
  545. wave1111.Size = wm3111.Scale
  546. wave1111.CFrame = HandCF
  547. wave1111.Transparency = i/30
  548. wait()
  549. end
  550. wait()
  551. wave1111:Destroy()
  552. end)()
  553. end
  554. GroundWave8 = function()
  555. local HandCF = root.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  556.  
  557. Colors = {"Lime green", "Lime green"}
  558. local wave11111 = Instance.new("Part", char)
  559. wave11111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  560. wave11111.Anchored = true
  561. wave11111.Name = "Wave"
  562. wave11111.CanCollide = false
  563. wave11111.Locked = true
  564. wave11111.Size = Vector3.new(1, 1, 1)
  565. wave11111.TopSurface = "Smooth"
  566. wave11111.BottomSurface = "Smooth"
  567. wave11111.Transparency = 0.35
  568. wave11111.CFrame = HandCF
  569. wm31111 = Instance.new("SpecialMesh", wave11111)
  570. wm31111.MeshId = "rbxassetid://3270017"
  571. coroutine.wrap(function()
  572. for i = 1, 30, 1 do
  573. wm31111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
  574. wave11111.Size = wm31111.Scale
  575. wave11111.CFrame = HandCF
  576. wave11111.Transparency = i/30
  577. wait()
  578. end
  579. wait()
  580. wave11111:Destroy()
  581. end)()
  582. end
  583. GroundWave9 = function()
  584. local HandCF = root.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  585.  
  586. Colors = {"Lime green", "Lime green"}
  587. local wave111111 = Instance.new("Part", char)
  588. wave111111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  589. wave111111.Anchored = true
  590. wave111111.Name = "Wave"
  591. wave111111.CanCollide = false
  592. wave111111.Locked = true
  593. wave111111.Size = Vector3.new(1, 1, 1)
  594. wave111111.TopSurface = "Smooth"
  595. wave111111.BottomSurface = "Smooth"
  596. wave111111.Transparency = 0.35
  597. wave111111.CFrame = HandCF
  598. wm311111 = Instance.new("SpecialMesh", wave111111)
  599. wm311111.MeshId = "rbxassetid://3270017"
  600. coroutine.wrap(function()
  601. for i = 1, 30, 1 do
  602. wm311111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
  603. wave111111.Size = wm311111.Scale
  604. wave111111.CFrame = HandCF
  605. wave111111.Transparency = i/30
  606. wait()
  607. end
  608. wait()
  609. wave111111:Destroy()
  610. end)()
  611. end
  612. GroundWave10 = function()
  613. local HandCF = root.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  614.  
  615. Colors = {"Lime green", "Lime green"}
  616. local wave1111111 = Instance.new("Part", char)
  617. wave1111111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  618. wave1111111.Anchored = true
  619. wave1111111.Name = "Wave"
  620. wave1111111.CanCollide = false
  621. wave1111111.Locked = true
  622. wave1111111.Size = Vector3.new(1, 1, 1)
  623. wave1111111.TopSurface = "Smooth"
  624. wave1111111.BottomSurface = "Smooth"
  625. wave1111111.Transparency = 0.35
  626. wave1111111.CFrame = HandCF
  627. wm3111111 = Instance.new("SpecialMesh", wave1111111)
  628. wm3111111.MeshId = "rbxassetid://3270017"
  629. coroutine.wrap(function()
  630. for i = 1, 30, 1 do
  631. wm3111111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
  632. wave1111111.Size = wm3111111.Scale
  633. wave1111111.CFrame = HandCF
  634. wave1111111.Transparency = i/30
  635. wait()
  636. end
  637. wait()
  638. wave1111111:Destroy()
  639. end)()
  640. end
  641.  
  642.  
  643. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  644.  
  645. function nooutline(part)
  646. part.TopSurface, part.BottomSurface, part.RightSurface, part.LeftSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  647. end
  648.  
  649. function debris(cfremz, thepart, amt)
  650. for j = 1, amt do
  651. do
  652. local pr = Instance.new("Part")
  653. nooutline(pr)
  654. pr.Name = "debrisobeb"
  655. pr.Anchored = true
  656. pr.BrickColor = thepart.BrickColor
  657. pr.CanCollide = true
  658. pr.Material = thepart.Material
  659. pr.Transparency = thepart.Transparency
  660. pr.Size = Vector3.new(math.random(16, 24), math.random(12, 16), math.random(16, 24))
  661. pr.CFrame = cfremz * CFrame.Angles(0, math.rad(amt * j), 0) * CFrame.new(0, -5, math.random(18, 22)) * CFrame.Angles(math.rad(math.random(-30, -15)), math.rad(math.random(0, 1)), math.rad(math.random(0, 1)))
  662. pr.Parent = workspace
  663. game.Debris:AddItem(pr, 25)
  664. delay(15, function()
  665. if pr then
  666. pr.CanCollide = false
  667. pr.Anchored = false
  668. end
  669. end)
  670. end
  671. end
  672. for c = 1, amt do
  673. do
  674. local pr2 = Instance.new("Part")
  675. nooutline(pr2)
  676. pr2.Name = "moredebr"
  677. pr2.Anchored = false
  678. pr2.BrickColor = thepart.BrickColor
  679. pr2.CanCollide = false
  680. pr2.Material = thepart.Material
  681. pr2.Transparency = thepart.Transparency
  682. pr2.Size = Vector3.new(math.random(8, 18), math.random(6, 18), math.random(8, 18))
  683. pr2.CFrame = cfremz * CFrame.Angles(0, math.rad(30 * c), 0) * CFrame.new(0, -5, math.random(18, 22)) * CFrame.Angles(math.rad(math.random(-30, -15)), math.rad(math.random(0, 1)), math.rad(math.random(0, 1)))
  684. pr2.Parent = workspace
  685. pr2.Velocity = Vector3.new(math.random(-75, 75), math.random(120, 240), math.random(-75, 75))
  686. pr2.RotVelocity = Vector3.new(math.random(-35, 35), math.random(-35, 35), math.random(-35, 35))
  687. game.Debris:AddItem(pr2, 45)
  688. delay(2, function()
  689. pr2.CanCollide = true
  690. wait(10)
  691. if pr2 then
  692. pr2.CanCollide = false
  693. end
  694. end)
  695. end
  696. end
  697. end
  698.  
  699.  
  700. function weld5(part0, part1, c0, c1)
  701. weeld=Instance.new("Weld", part0)
  702. weeld.Part0=part0
  703. weeld.Part1=part1
  704. weeld.C0=c0
  705. weeld.C1=c1
  706. return weeld
  707. end
  708.  
  709.  
  710. par,loc=workspace:FindPartOnRay(Ray.new(root.Position,(root.Position-(root.Position-Vector3.new(0,2,0))).unit*-500),root)
  711.  
  712.  
  713. local acos = math.acos
  714. local sqrt = math.sqrt
  715. local Vec3 = Vector3.new
  716. local fromAxisAngle = CFrame.fromAxisAngle
  717.  
  718. local function toAxisAngle(CFr)
  719. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  720. local Angle = math.acos((R00+R11+R22-1)/2)
  721. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  722. A = A == 0 and 0.00001 or A
  723. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  724. B = B == 0 and 0.00001 or B
  725. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  726. C = C == 0 and 0.00001 or C
  727. local x = (R21-R12)/sqrt(A)
  728. local y = (R02-R20)/sqrt(B)
  729. local z = (R10-R01)/sqrt(C)
  730. return Vec3(x,y,z),Angle
  731. end
  732.  
  733. function ApplyTrig(Num,Func)
  734. local Min,Max = Func(0),Func(1)
  735. local i = Func(Num)
  736. return (i-Min)/(Max-Min)
  737. end
  738.  
  739. function LerpCFrame(CFrame1,CFrame2,Num)
  740. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  741. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  742. end
  743.  
  744. function Crater(Torso,Radius)
  745. Spawn(function()
  746. local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
  747. local Ignore = {}
  748. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  749. if v.Character ~= nil then
  750. Ignore[#Ignore+1] = v.Character
  751. end
  752. end
  753. local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  754. if Hit == nil then return end
  755. local Parts = {}
  756. for i = 1,360,10 do
  757. local P = Instance.new("Part",Torso.Parent)
  758. P.Anchored = true
  759. P.FormFactor = "Custom"
  760. P.BrickColor = Hit.BrickColor
  761. P.Material = Hit.Material
  762. P.TopSurface = "Smooth"
  763. P.BottomSurface = "Smooth"
  764. P.CanCollide = false
  765. P.Size = Vector3.new(10,20,20)*(math.random(80,100)/100)
  766. 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)))
  767. 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}
  768. if math.random(0,5) == 0 then -- rubble
  769. local P = Instance.new("Part",Torso.Parent)
  770. P.Anchored = true
  771. P.FormFactor = "Custom"
  772. P.BrickColor = Hit.BrickColor
  773. P.Material = Hit.Material
  774. P.TopSurface = "Smooth"
  775. P.CanCollide = false
  776. P.BottomSurface = "Smooth"
  777. P.Size = Vector3.new(4,4,4)*(math.random(80,100)/100)
  778. 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)))
  779. 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}
  780. end
  781. end
  782. for i = 0,1,0.05 do
  783. for i2,v in pairs(Parts) do
  784. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  785. end
  786. wait(0.02)
  787. end
  788. for i,v in pairs(Parts) do
  789. if v[1].Size.X > 2.1 then
  790. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  791. end
  792. v[1].Anchored = false
  793. end
  794. for i = 0,1,0.05 do
  795. for i2,v in pairs(Parts) do
  796. v[1].Transparency = i
  797. if i == 1 then
  798. v[1]:Destroy()
  799. elseif i >= 0.25 then
  800. v[1].CanCollide = false
  801. end
  802. end
  803. wait(0.02)
  804. end
  805. Parts = nil
  806. end)
  807. end
  808.  
  809.  
  810.  
  811.  
  812.  
  813. function FindNearestTorso(Position,Distance,SinglePlayer)
  814. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  815. local List = {}
  816. for i,v in pairs(workspace:GetChildren())do
  817. if v:IsA("Model")then
  818. if v:findFirstChild("Torso")then
  819. if v ~= char then
  820. if(v.Torso.Position -Position).magnitude <= Distance then
  821. table.insert(List,v)
  822. end
  823. end
  824. end
  825. end
  826. end
  827. return List
  828. end
  829.  
  830.  
  831.  
  832. function FindNearestHead(Position,Distance,SinglePlayer)
  833. if SinglePlayer then return(SinglePlayer.Head.CFrame.p -Position).magnitude < Distance end
  834. local List = {}
  835. for i,v in pairs(workspace:GetChildren())do
  836. if v:IsA("Model")then
  837. if v:findFirstChild("Head")then
  838. if v ~= char then
  839. if(v.Head.Position -Position).magnitude <= Distance then
  840. table.insert(List,v)
  841. end
  842. end
  843. end
  844. end
  845. end
  846. return List
  847. end
  848.  
  849.  
  850.  
  851. function FindNearestRightArm(Position,Distance,SinglePlayer)
  852. if SinglePlayer then return(SinglePlayer.RightArm.CFrame.p -Position).magnitude < Distance end
  853. local List = {}
  854. for i,v in pairs(workspace:GetChildren())do
  855. if v:IsA("Model")then
  856. if v:findFirstChild("Right Arm")then
  857. if v ~= char then
  858. if(v.RightArm.Position -Position).magnitude <= Distance then
  859. table.insert(List,v)
  860. end
  861. end
  862. end
  863. end
  864. end
  865. return List
  866. end
  867.  
  868.  
  869. function FindNearestLeftArm(Position,Distance,SinglePlayer)
  870. if SinglePlayer then return(SinglePlayer.LeftArm.CFrame.p -Position).magnitude < Distance end
  871. local List = {}
  872. for i,v in pairs(workspace:GetChildren())do
  873. if v:IsA("Model")then
  874. if v:findFirstChild("Left Arm")then
  875. if v ~= char then
  876. if(v.LeftArm.Position -Position).magnitude <= Distance then
  877. table.insert(List,v)
  878. end
  879. end
  880. end
  881. end
  882. end
  883. return List
  884. end
  885.  
  886.  
  887.  
  888. function FindNearestRightLeg(Position,Distance,SinglePlayer)
  889. if SinglePlayer then return(SinglePlayer.RightLeg.CFrame.p -Position).magnitude < Distance end
  890. local List = {}
  891. for i,v in pairs(workspace:GetChildren())do
  892. if v:IsA("Model")then
  893. if v:findFirstChild("Right Leg")then
  894. if v ~= char then
  895. if(v.RightLeg.Position -Position).magnitude <= Distance then
  896. table.insert(List,v)
  897. end
  898. end
  899. end
  900. end
  901. end
  902. return List
  903. end
  904.  
  905.  
  906. function FindNearestLeftLeg(Position,Distance,SinglePlayer)
  907. if SinglePlayer then return(SinglePlayer.LeftLeg.CFrame.p -Position).magnitude < Distance end
  908. local List = {}
  909. for i,v in pairs(workspace:GetChildren())do
  910. if v:IsA("Model")then
  911. if v:findFirstChild("Left Leg")then
  912. if v ~= char then
  913. if(v.LeftLeg.Position -Position).magnitude <= Distance then
  914. table.insert(List,v)
  915. end
  916. end
  917. end
  918. end
  919. end
  920. return List
  921. end
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928. mouse.KeyDown:connect(function(key)--------------------------------------------Roar
  929. if key == "q" then
  930. hum.WalkSpeed = 0
  931. if Debounces.CanAttack == true then
  932. Debounces.CanAttack = false
  933. Debounces.NoIdl = true
  934. Debounces.on = true
  935. for i = 1, 30 do
  936. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-34)), 0.2)
  937. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(34)), 0.2)
  938. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.2)
  939. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.2)
  940. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  941. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  942. if Debounces.on == false then break end
  943. rs:wait(6)
  944. end
  945. v = Instance.new("Sound")
  946. v.SoundId = "rbxassetid://862467390"
  947. v.Parent = char
  948. v.Looped = false
  949. v.Pitch = .94
  950. v.Volume = 50
  951. wait(.01)
  952. v:Play()
  953.  
  954.  
  955. local Shockwave = function()
  956. local rng1 = Instance.new("Part", char)
  957. rng1.Anchored = true
  958. rng1.BrickColor = BrickColor.new("Lime green")
  959. rng1.CanCollide = false
  960. rng1.FormFactor = 3
  961. rng1.Name = "Ring"
  962. rng1.Size = Vector3.new(1, 1, 1)
  963. rng1.Transparency = 0.35
  964. rng1.TopSurface = 0
  965. rng1.BottomSurface = 0
  966. local rngm1 = Instance.new("SpecialMesh", rng1)
  967. rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017"
  968. rngm1.Scale = Vector3.new(10, 10, 1)
  969. rng1.CFrame = CFrame.new(0, -2, 0) * CFrame.Angles(0, 0, 0)
  970. local Wave = Instance.new("Part", game.Workspace--[[?]])
  971. Wave.Name = "Shockwave"
  972. Wave.BrickColor = BrickColor.new("Lime green")
  973. Wave.Size = Vector3.new(1, 1, 1)
  974. Wave.Shape = "Ball"
  975. Wave.CanCollide = false
  976. Wave.Anchored = true
  977. Wave.TopSurface = 0
  978. Wave.BottomSurface = 0
  979. Wave.Touched:connect(function(hit)
  980. if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then
  981. local Occlude = true
  982. local NotOccludes = {
  983. char.Name;
  984. "Wings";
  985. "Scythe";
  986. "Thingy";
  987. "Thingy2"; -- put all of the names in a table pls
  988. }
  989. for i,v in pairs(NotOccludes) do
  990. if hit.Parent.Name == v then
  991. Occlude = false
  992. end
  993. end
  994. --if hit.Parent.Name ~= char.Name and hit.Name ~= "Wings" and hit.Name ~= "Scythe" and hit.Name ~= "Thingy" and hit.Name ~= "Thingy2" and hit.Parent.Name ~= "Wings" and hit.Parent.Name ~= "Scythe" and hit.Parent.Name ~= "Thingy" and hit.Parent.Name ~= "Thingy2" then
  995. if Occlude then
  996. hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1
  997. hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120
  998. end
  999. end
  1000. end)
  1001.  
  1002. Instance.new("SpecialMesh", Wave).MeshType = "Sphere"
  1003.  
  1004. coroutine.wrap(function()
  1005. for i = 1, 20, 0.2 do
  1006. rngm1.Scale = Vector3.new(10 + i*2, 10 + i*2, 1)
  1007. rng1.Transparency = i/20
  1008. rng1.CFrame = Wave.CFrame
  1009. wait()
  1010. end
  1011. wait()
  1012. rng1:Destroy()
  1013. end)()
  1014.  
  1015. Delay(0, function()
  1016.  
  1017.  
  1018. for i = 1, 50, 1 do
  1019. Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i)
  1020. Wave.CFrame = char.Torso.CFrame
  1021. local t = i / 50
  1022. Wave.Transparency = t
  1023. wait()
  1024. end
  1025.  
  1026. Wave:Destroy()
  1027. end)
  1028. Delay(0, function()
  1029. while wait() do
  1030. if Wave ~= nil then
  1031. Wave.CFrame = char.Torso.CFrame
  1032. else
  1033. break
  1034. end
  1035. end
  1036. end)
  1037. end
  1038.  
  1039.  
  1040. new = Instance.new
  1041.  
  1042. v3 = Vector3.new
  1043.  
  1044.  
  1045. a21e = new("Part",char)
  1046. a21e.Name = "Beam"..num
  1047. a21e.Locked = true
  1048. a21e.Size = v3(1,1,1)
  1049. a21e.CanCollide = false
  1050. a21e.Position = v3(999,999,999)
  1051. a21e.BrickColor = BrickColor.new("Lime green")
  1052. a21e.Material = "Neon"
  1053. a21e.Transparency = 0
  1054. aa21e = new("SpecialMesh",a21e)
  1055. a21e.Anchored = true
  1056. a21e.Position = root.Position
  1057. aa21e.MeshType = "Sphere"
  1058. aa21e.Scale = v3(1,1,1)
  1059.  
  1060.  
  1061. coroutine.resume(coroutine.create(function()
  1062. BurningEff(FindNearestTorso(root.CFrame.p,35))
  1063. BurningEff(FindNearestHead(root.CFrame.p,35))
  1064. BurningEff(FindNearestRightArm(root.CFrame.p,35))
  1065. BurningEff(FindNearestLeftArm(root.CFrame.p,35))
  1066. BurningEff(FindNearestRightLeg(root.CFrame.p,35))
  1067. BurningEff(FindNearestLeftLeg(root.CFrame.p,35))
  1068.  
  1069. end))
  1070.  
  1071. for i,v in pairs(FindNearestTorso(root.CFrame.p,25))do
  1072. if v:FindFirstChild('Humanoid') then
  1073. v.Humanoid:TakeDamage(math.random(10000020,10000030))
  1074. v.Humanoid.PlatformStand = true
  1075. v:FindFirstChild("Torso").Velocity = torso.CFrame.lookVector * 200
  1076. BurningEff(v:FindFirstChild('Torso'))
  1077.  
  1078. end
  1079. end
  1080.  
  1081.  
  1082. coroutine.resume(coroutine.create(function()
  1083.  
  1084. for i,v in pairs(workspace:children()) do
  1085. charr = v:FindFirstChild('Character')
  1086. for i = 1, 40 do
  1087. charr.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7))
  1088. wait()
  1089. end
  1090.  
  1091. charr.Humanoid.CameraOffset = Vector3.new(0,0,0)
  1092. end
  1093. end))
  1094.  
  1095.  
  1096.  
  1097.  
  1098. coroutine.resume(coroutine.create(function()
  1099. for i = 1, 40 do
  1100. char.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7))
  1101. wait()
  1102. end
  1103. char.Humanoid.CameraOffset = Vector3.new(0,0,0)
  1104. end))
  1105.  
  1106. coroutine.resume(coroutine.create(function()
  1107. par,loc=workspace:FindPartOnRay(Ray.new(char.Torso.Position,(char.Torso.Position-(char.Torso.Position-Vector3.new(0,2,0))).unit*-500),char)
  1108. if par then
  1109. local cfremz = CFrame.new(loc)
  1110. debris(cfremz, par, 50)
  1111. end
  1112. end))
  1113.  
  1114.  
  1115. Crater(root,155)
  1116. GroundWave5()
  1117. GroundWave6()
  1118. GroundWave7()
  1119. GroundWave8()
  1120. GroundWave9()
  1121. GroundWave10()
  1122.  
  1123. coroutine.resume(coroutine.create(function()
  1124. for i = 1,25 do
  1125. wait()
  1126. aa21e.Scale = aa21e.Scale + v3(5,5,5)
  1127. a21e.Transparency = a21e.Transparency + 0.04
  1128. end
  1129. end))
  1130.  
  1131.  
  1132.  
  1133.  
  1134. for i = 1, 30 do
  1135. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.3)
  1136. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3)
  1137. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(28)), 0.3)
  1138. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-28)), 0.3)
  1139. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1140. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3.2, .3) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  1141. if Debounces.on == false then break end
  1142. rs:wait()
  1143. end
  1144. wait(4.4)
  1145. Debounces.NoIdl = false
  1146. hum.WalkSpeed = 5
  1147. Debounces.on = false
  1148. wait()
  1149. if Debounces.CanAttack == false then
  1150. Debounces.CanAttack = true
  1151. v:Destroy()
  1152. end
  1153. end
  1154. end
  1155. end)
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163. ----------------------------------------------------
  1164. function weld5(part0, part1, c0, c1)
  1165. weeld=Instance.new("Weld", part0)
  1166. weeld.Part0=part0
  1167. weeld.Part1=part1
  1168. weeld.C0=c0
  1169. weeld.C1=c1
  1170. return weeld
  1171. end
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177. Grab = false
  1178. mouse.KeyDown:connect(function(key)-----------------------------------------Grab
  1179. if key == "z" then
  1180. Debounces.on = true
  1181. Debounces.NoIdl = true
  1182. if Grab == false then
  1183. gp = nil
  1184. con1=larm.Touched:connect(function(hit) -- this is grab
  1185. ht = hit.Parent
  1186. hum1=ht:FindFirstChild('Humanoid')
  1187. if hum1 ~= nil then
  1188. hum1.PlatformStand=true
  1189. gp = ht
  1190. Grab = true
  1191. asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-3.3,0),CFrame.new(0,0,0))
  1192. asd.Parent = larm
  1193. asd.Name = "asd"
  1194. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0)
  1195. elseif hum1 == nil then
  1196. con1:disconnect()
  1197. wait() return
  1198. end
  1199. end)
  1200.  
  1201.  
  1202. for i = 1, 18 do
  1203. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(36)), 0.2)
  1204. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.65,.9,-.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
  1205. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
  1206. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.8, 0) * CFrame.Angles(math.rad(-60), math.rad(0), 0), 0.2)
  1207. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -.6) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2)
  1208. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, -.6) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2)
  1209. if Debounces.on == false then break end
  1210. wait()
  1211. end
  1212. con1:disconnect()
  1213. Debounces.on = false
  1214. Debounces.NoIdl = false
  1215. wait(0.1)
  1216. ht:FindFirstChild("Torso").CanCollide = false
  1217. ht:FindFirstChild("RightArm").CanCollide = false
  1218. ht:FindFirstChild("LeftArm").CanCollide = false
  1219. ht:FindFirstChild("RightLeg").CanCollide = false
  1220. ht:FindFirstChild("LeftLeg").CanCollide = false
  1221. ht:FindFirstChild("Head").CanCollide = false
  1222. elseif Grab == true then
  1223. Grab = false
  1224. for i = 1, 20 do
  1225. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.2)
  1226. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.4)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-20)), 0.1)
  1227. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
  1228. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  1229. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  1230. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  1231. if Debounces.on == false then end
  1232. wait()
  1233. end
  1234. if gp ~= nil then
  1235. for i,v in pairs(larm:GetChildren()) do
  1236. if v.Name == "asd" and v:IsA("Weld") then
  1237. v:Remove()
  1238. end
  1239. end
  1240. bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
  1241. bv.maxForce = Vector3.new(400000, 400000, 400000)
  1242. bv.P = 125000000000000
  1243. bv.velocity = char.Head.CFrame.lookVector * 1000
  1244. for i = 1, 12 do
  1245. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.75)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(20)), 0.5)
  1246. if Debounces.on == false then end
  1247. wait()
  1248. end
  1249. ht=nil
  1250. Spawn(function()
  1251. wait(0.5)
  1252. bv:Destroy()
  1253. end)
  1254. Debounces.on = false
  1255. Debounces.NoIdl = false
  1256. elseif ht == nil then wait()
  1257. Grab = false
  1258. Debounces.on = false
  1259. Debounces.NoIdl = false
  1260. end
  1261. end
  1262. end
  1263. end)
  1264.  
  1265.  
  1266.  
  1267.  
  1268. mouse.KeyDown:connect(function(key)
  1269. if key == "c" then
  1270. if Debounces.CanAttack == true then
  1271. Debounces.CanAttack = false
  1272. Debounces.NoIdl = true
  1273. Debounces.on = true
  1274.  
  1275.  
  1276.  
  1277.  
  1278. GroundWaves5 = function()
  1279. local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
  1280.  
  1281. Colors = {"Lime green", "Lime green"}
  1282.  
  1283.  
  1284. local wave11 = Instance.new("Part", char)
  1285. wave11.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  1286. wave11.Anchored = true
  1287. wave11.Name = "Wave"
  1288. wave11.CanCollide = false
  1289. wave11.Locked = true
  1290. wave11.Size = Vector3.new(1, 1, 1)
  1291. wave11.TopSurface = "Smooth"
  1292. wave11.BottomSurface = "Smooth"
  1293. wave11.Transparency = 0.35
  1294. wave11.CFrame = HandCF
  1295. wm31 = Instance.new("SpecialMesh", wave11)
  1296. wm31.MeshId = "rbxassetid://3270017"
  1297. coroutine.wrap(function()
  1298. for i = 1, 30, 1 do
  1299. wm31.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
  1300. wave11.Size = wm31.Scale
  1301. wave11.CFrame = HandCF
  1302. wave11.Transparency = i/30
  1303. wait()
  1304. end
  1305. wait()
  1306. wave11:Destroy()
  1307. end)()
  1308. end
  1309. GroundWaves6 = function()
  1310. local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1311.  
  1312. Colors = {"Lime green", "Lime green"}
  1313.  
  1314. local wave111 = Instance.new("Part", char)
  1315. wave111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  1316. wave111.Anchored = true
  1317. wave111.Name = "Wave"
  1318. wave111.CanCollide = false
  1319. wave111.Locked = true
  1320. wave111.Size = Vector3.new(1, 1, 1)
  1321. wave111.TopSurface = "Smooth"
  1322. wave111.BottomSurface = "Smooth"
  1323. wave111.Transparency = 0.35
  1324. wave111.CFrame = HandCF
  1325. wm311 = Instance.new("SpecialMesh", wave111)
  1326. wm311.MeshId = "rbxassetid://3270017"
  1327. coroutine.wrap(function()
  1328. for i = 1, 30, 1 do
  1329. wm311.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
  1330. wave111.Size = wm311.Scale
  1331. wave111.CFrame = HandCF
  1332. wave111.Transparency = i/30
  1333. wait()
  1334. end
  1335. wait()
  1336. wave111:Destroy()
  1337. end)()
  1338. end
  1339. GroundWaves7 = function()
  1340. local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1341.  
  1342. Colors = {"Lime green", "Lime green"}
  1343. local wave1111 = Instance.new("Part", char)
  1344. wave1111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  1345. wave1111.Anchored = true
  1346. wave1111.Name = "Wave"
  1347. wave1111.CanCollide = false
  1348. wave1111.Locked = true
  1349. wave1111.Size = Vector3.new(1, 1, 1)
  1350. wave1111.TopSurface = "Smooth"
  1351. wave1111.BottomSurface = "Smooth"
  1352. wave1111.Transparency = 0.35
  1353. wave1111.CFrame = HandCF
  1354. wm3111 = Instance.new("SpecialMesh", wave1111)
  1355. wm3111.MeshId = "rbxassetid://3270017"
  1356. coroutine.wrap(function()
  1357. for i = 1, 30, 1 do
  1358. wm3111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
  1359. wave1111.Size = wm3111.Scale
  1360. wave1111.CFrame = HandCF
  1361. wave1111.Transparency = i/30
  1362. wait()
  1363. end
  1364. wait()
  1365. wave1111:Destroy()
  1366. end)()
  1367. end
  1368. GroundWaves8 = function()
  1369. local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1370.  
  1371. Colors = {"Lime green", "Lime green"}
  1372. local wave11111 = Instance.new("Part", char)
  1373. wave11111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  1374. wave11111.Anchored = true
  1375. wave11111.Name = "Wave"
  1376. wave11111.CanCollide = false
  1377. wave11111.Locked = true
  1378. wave11111.Size = Vector3.new(1, 1, 1)
  1379. wave11111.TopSurface = "Smooth"
  1380. wave11111.BottomSurface = "Smooth"
  1381. wave11111.Transparency = 0.35
  1382. wave11111.CFrame = HandCF
  1383. wm31111 = Instance.new("SpecialMesh", wave11111)
  1384. wm31111.MeshId = "rbxassetid://3270017"
  1385. coroutine.wrap(function()
  1386. for i = 1, 30, 1 do
  1387. wm31111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
  1388. wave11111.Size = wm31111.Scale
  1389. wave11111.CFrame = HandCF
  1390. wave11111.Transparency = i/30
  1391. wait()
  1392. end
  1393. wait()
  1394. wave11111:Destroy()
  1395. end)()
  1396. end
  1397. GroundWaves9 = function()
  1398. local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1399.  
  1400. Colors = {"Lime green", "Lime green"}
  1401. local wave111111 = Instance.new("Part", char)
  1402. wave111111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  1403. wave111111.Anchored = true
  1404. wave111111.Name = "Wave"
  1405. wave111111.CanCollide = false
  1406. wave111111.Locked = true
  1407. wave111111.Size = Vector3.new(1, 1, 1)
  1408. wave111111.TopSurface = "Smooth"
  1409. wave111111.BottomSurface = "Smooth"
  1410. wave111111.Transparency = 0.35
  1411. wave111111.CFrame = HandCF
  1412. wm311111 = Instance.new("SpecialMesh", wave111111)
  1413. wm311111.MeshId = "rbxassetid://3270017"
  1414. coroutine.wrap(function()
  1415. for i = 1, 30, 1 do
  1416. wm311111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
  1417. wave111111.Size = wm311111.Scale
  1418. wave111111.CFrame = HandCF
  1419. wave111111.Transparency = i/30
  1420. wait()
  1421. end
  1422. wait()
  1423. wave111111:Destroy()
  1424. end)()
  1425. end
  1426. GroundWaves10 = function()
  1427. local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1428.  
  1429. Colors = {"Lime green", "Lime green"}
  1430. local wave1111111 = Instance.new("Part", char)
  1431. wave1111111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  1432. wave1111111.Anchored = true
  1433. wave1111111.Name = "Wave"
  1434. wave1111111.CanCollide = false
  1435. wave1111111.Locked = true
  1436. wave1111111.Size = Vector3.new(1, 1, 1)
  1437. wave1111111.TopSurface = "Smooth"
  1438. wave1111111.BottomSurface = "Smooth"
  1439. wave1111111.Transparency = 0.35
  1440. wave1111111.CFrame = HandCF
  1441. wm3111111 = Instance.new("SpecialMesh", wave1111111)
  1442. wm3111111.MeshId = "rbxassetid://3270017"
  1443. coroutine.wrap(function()
  1444. for i = 1, 30, 1 do
  1445. wm3111111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
  1446. wave1111111.Size = wm3111111.Scale
  1447. wave1111111.CFrame = HandCF
  1448. wave1111111.Transparency = i/30
  1449. wait()
  1450. end
  1451. wait()
  1452. wave1111111:Destroy()
  1453. end)()
  1454. end
  1455.  
  1456.  
  1457.  
  1458. for i = 1, 40 do
  1459. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
  1460. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
  1461. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
  1462. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
  1463. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  1464. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
  1465. if Debounces.on == false then break end
  1466. wait()
  1467. end
  1468.  
  1469.  
  1470.  
  1471.  
  1472. coroutine.resume(coroutine.create(function()
  1473. for i=1, 5 do
  1474. p=Instance.new("Part")
  1475. p.FrontSurface=par.TopSurface
  1476. p.Material=par.Material
  1477. p.BottomSurface=0
  1478. p.Anchored=true p.CanCollide=false
  1479. p.BrickColor=par.BrickColor
  1480. p.Size=Vector3.new(math.random(15,35)/5,math.random(15,35)/5,math.random(4,5))
  1481. p.CFrame=CFrame.new(ht.Position-Vector3.new(math.random(-i,i)/1,3,math.random(-i,i)/1),loc+Vector3.new(0,1000-i*20,0))*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)
  1482. p.Parent=char
  1483. game:GetService("Debris"):AddItem(p,2+i*.1)
  1484. if math.random(1,5)==5 then
  1485. coroutine.resume(coroutine.create(function(p) f=Instance.new("Smoke") f.Parent=p f.Size=30 f.RiseVelocity=0 f.Opacity=.025 Swait(.1) f.Enabled=false Swait(1) f:Remove() end),p)
  1486. end
  1487. end
  1488. for i=1, 5 do
  1489. for i=1, 1 do
  1490. p=Instance.new("Part")
  1491. p.TopSurface=par.TopSurface
  1492. p.BottomSurface=par.BottomSurface
  1493. p.Material=par.Material
  1494. p.BottomSurface=0
  1495. p.Anchored=false p.CanCollide=true
  1496. p.BrickColor=par.BrickColor
  1497. p.formFactor="Custom"
  1498. p.Size=Vector3.new(math.random(15,35)/12,math.random(13,35)/12,math.random(15,35)/12)
  1499. p.CFrame=CFrame.new(ht.Position-Vector3.new(math.random(-4,4),-2,math.random(-4,4)))*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/5,math.random(-10,10)/20)
  1500. p.Parent=char
  1501. game:GetService("Debris"):AddItem(p,3+i*.1)
  1502. p.Velocity=Vector3.new(math.random(-10,10)*4,math.random(40,80),math.random(-10,10)*4)
  1503. p.RotVelocity=p.Velocity
  1504. if math.random(1,5)==5 then
  1505. coroutine.resume(coroutine.create(function(p) f=Instance.new("Smoke") f.Parent=p f.Size=15 f.RiseVelocity=10 f.Opacity=.1 Swait(.1) f.Enabled=false Swait(1) f:Remove() end),p)
  1506. end
  1507. end
  1508. end
  1509. end))
  1510.  
  1511.  
  1512.  
  1513.  
  1514. coroutine.resume(coroutine.create(function()
  1515. wait(0.2)
  1516. for i,v in pairs(FindNearestTorso(torso.CFrame.p,25))do
  1517. if v:FindFirstChild('Humanoid') then
  1518. v.Humanoid:TakeDamage(math.random(10000020,10000030))
  1519. v.Humanoid.PlatformStand = true
  1520. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  1521. end
  1522. end
  1523.  
  1524. GroundWaves5()
  1525. GroundWaves6()
  1526. GroundWaves7()
  1527. GroundWaves8()
  1528. GroundWaves9()
  1529. GroundWaves10()
  1530. end))
  1531. for i = 1, 20 do
  1532. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.6)
  1533. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.6)
  1534. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
  1535. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
  1536. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
  1537. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  1538. if Debounces.on == false then break end
  1539. wait()
  1540. end
  1541.  
  1542.  
  1543.  
  1544.  
  1545. if Debounces.CanAttack == false then
  1546. Debounces.CanAttack = true
  1547. Debounces.on = false
  1548. Debounces.NoIdl = false
  1549.  
  1550. end
  1551. end
  1552. end
  1553. end)
  1554.  
  1555.  
  1556. function newRay(start,face,range,wat)
  1557. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  1558. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  1559. return rey,hit,pos
  1560. end
  1561.  
  1562.  
  1563.  
  1564. fat = Instance.new("BindableEvent",script)
  1565. fat.Name = "Heartbeat"
  1566.  
  1567. script:WaitForChild("Heartbeat")
  1568.  
  1569. frame = 1/30
  1570. tf = 0
  1571. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  1572. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  1573. lastframe = tick()
  1574. script.Heartbeat:Fire() --ayy lmao
  1575.  
  1576. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  1577. tf = tf + s
  1578. if tf >= frame then
  1579. if allowframeloss then
  1580. script.Heartbeat:Fire()
  1581. lastframe=tick()
  1582. else
  1583. --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  1584. for i=1, math.floor(tf/frame) do
  1585. script.Heartbeat:Fire()
  1586. end
  1587. lastframe=tick()
  1588. end
  1589. if tossremainder then
  1590. tf = 0
  1591. else
  1592. tf = tf - frame * math.floor(tf/frame)
  1593. end
  1594. end
  1595. end)
  1596.  
  1597. function Swait(NUMBER)
  1598. if NUMBER == 0 or NUMBER == nil then
  1599. fat.Event:wait()
  1600. else
  1601. for i = 1, NUMBER do
  1602. fat.Event:wait()
  1603. end
  1604. end
  1605. end
  1606.  
  1607. function Landing2()
  1608. local rng = Instance.new("Part", char)
  1609. rng.Anchored = true
  1610. rng.BrickColor = BrickColor.new("Lime green")
  1611. rng.CanCollide = false
  1612. rng.FormFactor = 3
  1613. rng.Name = "Ring"
  1614. rng.Size = Vector3.new(1, 1, 1)
  1615. rng.Transparency = 0
  1616. rng.TopSurface = 0
  1617. rng.BottomSurface = 0
  1618. rng.Position = root.Position
  1619. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1620. local rngm = Instance.new("SpecialMesh", rng)
  1621. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1622. local rng2 = rng:Clone()
  1623. rng2.Parent = char
  1624. local rng2m = rng2.Mesh
  1625. local rng3 = rng:Clone()
  1626. rng3.Parent = char
  1627. local rng3m = rng3.Mesh
  1628. local rng4 = rng:Clone()
  1629. rng4.Parent = char
  1630. local rng4m = rng4.Mesh
  1631. local rng5 = rng:Clone()
  1632. rng5.Parent = char
  1633. local rng5m = rng5.Mesh
  1634. for i,v in pairs(FindNearestTorso(torso.CFrame.p,905))do
  1635. if v:FindFirstChild('Humanoid') then
  1636. v.Humanoid:TakeDamage(math.random(10000020,10000030))
  1637. v.Humanoid.PlatformStand = true
  1638. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  1639. end
  1640. end
  1641. --MagicBlock(BrickColor.new("Lime green"),root.CFrame,15,15,15,5,5,5,0.015)
  1642. -- CFuncs["Sound"].Create("rbxassetid://187137517", rng, 10, 1)
  1643. --CFuncs["Sound"].Create("rbxassetid://597291504", rng, 5, 0.85)
  1644. ---CFuncs["Sound"].Create("rbxassetid://144699494", rng, 10, 1)
  1645. wait()
  1646. local scaler = 10
  1647. local scaler2 = 10
  1648. for i = 0,10,0.1 do
  1649. Swait()
  1650. rng.Transparency = rng.Transparency + 0.01
  1651. rng2.Transparency = rng2.Transparency + 0.01
  1652. rng3.Transparency = rng3.Transparency + 0.01
  1653. rng4.Transparency = rng4.Transparency + 0.01
  1654. rng5.Transparency = rng5.Transparency + 0.01
  1655. scaler = scaler - 0.125
  1656. scaler2 = scaler2 - 0.1
  1657. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 4)
  1658. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 3)
  1659. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 2)
  1660. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 1)
  1661. rng5.Size = rng5m.Scale
  1662. rng5.CFrame = rng.CFrame
  1663. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2, scaler2/2, 5)
  1664. end
  1665. end
  1666. function Landing()
  1667. Grabee = torso
  1668. par,loc=workspace:FindPartOnRay(Ray.new(char.Torso.Position,(char.Torso.Position-(char.Torso.Position-Vector3.new(0,2,0))).unit*-500),char)
  1669. if par then
  1670. local cfremz = CFrame.new(loc)
  1671. debris(cfremz, par, 50)
  1672. end
  1673. for i=1, 50 do
  1674. p=Instance.new("Part")
  1675. p.FrontSurface=par.TopSurface
  1676. p.Material=par.Material
  1677. p.BottomSurface=0
  1678. p.Anchored=true p.CanCollide=false
  1679. p.BrickColor=par.BrickColor
  1680. p.Size=Vector3.new(math.random(15,35)/5,math.random(15,35)/5,math.random(4,5))
  1681. p.CFrame=CFrame.new(Grabee.Position-Vector3.new(math.random(-i,i)/1,3,math.random(-i,i)/1),loc+Vector3.new(0,1000-i*20,0))*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)
  1682. p.Parent=char
  1683. game:GetService("Debris"):AddItem(p,2+i*.1)
  1684. if math.random(1,5)==5 then
  1685. coroutine.resume(coroutine.create(function(p) f=Instance.new("Smoke") f.Parent=p f.Size=30 f.RiseVelocity=0 f.Opacity=.025 Swait(.1) f.Enabled=false Swait(1) f:Remove() end),p)
  1686. end
  1687. end
  1688. for i=1, 50 do
  1689. for i=1, 1 do
  1690. p=Instance.new("Part")
  1691. p.TopSurface=par.TopSurface
  1692. p.BottomSurface=par.BottomSurface
  1693. p.Material=par.Material
  1694. p.BottomSurface=0
  1695. p.Anchored=false p.CanCollide=true
  1696. p.BrickColor=par.BrickColor
  1697. p.formFactor="Custom"
  1698. p.Size=Vector3.new(math.random(15,35)/12,math.random(13,35)/12,math.random(15,35)/12)
  1699. p.CFrame=CFrame.new(Grabee.Position-Vector3.new(math.random(-4,4),-2,math.random(-4,4)))*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/5,math.random(-10,10)/20)
  1700. p.Parent=char
  1701. game:GetService("Debris"):AddItem(p,3+i*.1)
  1702. p.Velocity=Vector3.new(math.random(-10,10)*4,math.random(40,80),math.random(-10,10)*4)
  1703. p.RotVelocity=p.Velocity
  1704. if math.random(1,5)==5 then
  1705. coroutine.resume(coroutine.create(function(p) f=Instance.new("Smoke") f.Parent=p f.Size=15 f.RiseVelocity=10 f.Opacity=.1 Swait(.1) f.Enabled=false Swait(1) f:Remove() end),p)
  1706. end
  1707. end
  1708. Swait(.025)
  1709. end
  1710. end
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721. mouse.KeyDown:connect(function(key)
  1722. if key == "m" then
  1723. hum.WalkSpeed = 0
  1724. if Debounces.CanAttack == true then
  1725. Debounces.CanAttack = false
  1726. Debounces.on = true
  1727. Debounces.NoIdl = true
  1728.  
  1729. for i = 1, 20 do
  1730. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,0.6,-.2) *CFrame.Angles (math.rad (45),math.rad(0),math.rad(32)), 0.2)
  1731. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,1,0)*CFrame.Angles(math.rad (0),math.rad(0),math.rad(-20)), 0.2)
  1732. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.4)*CFrame.Angles(math.rad (- 8),math.rad(-40), math.rad(-8)),0.2)
  1733. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3.2, 0) * CFrame.Angles (math.rad (-50), math.rad(40), math.rad(0)), 0.2)
  1734. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, .4, -1.6) * CFrame.Angles (math.rad (30), 0, math.rad(20)), 0.2)
  1735. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.6, -2, 0) * CFrame.Angles (math.rad(- 10), math.rad(-40), math.rad(0)), 0.2)
  1736. if Debounces.on == false then break end
  1737. wait()
  1738.  
  1739. end
  1740. wait(1)
  1741. local rng = Instance.new("Part", char)
  1742. rng.Anchored = true
  1743. rng.BrickColor = BrickColor.new("Lime green")
  1744. rng.CanCollide = false
  1745. rng.FormFactor = 3
  1746. rng.Name = "Ring"
  1747. rng.Size = Vector3.new(1, 1, 1)
  1748. rng.Transparency = 0.35
  1749. rng.TopSurface = 0
  1750. rng.BottomSurface = 0
  1751. rng.Position = torso.Position - Vector3.new(0,2,0)
  1752. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1753. local rngm = Instance.new("SpecialMesh", rng)
  1754. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1755. rngm.Scale = Vector3.new(1, 1, 2)
  1756. l = Instance.new("Sound",char)
  1757. l.SoundId = "http://www.roblox.com/asset/?id=169445602"
  1758. l.Looped = false
  1759. l.Pitch = .7
  1760. l.Volume = 1
  1761. l:Play()
  1762. coroutine.wrap(function()
  1763. for i = 1, 60, 2 do
  1764. rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
  1765. rng.Transparency = i/60
  1766. wait()
  1767. end
  1768. wait()
  1769. rng:Destroy()
  1770. end)()
  1771. hum.WalkSpeed = 50
  1772. BV = Instance.new("BodyVelocity", torso)
  1773. BV.maxForce = Vector3.new(0,100000,0)
  1774. BV.P = 100000
  1775. BV.velocity = Vector3.new(0,999999,0)
  1776. for i = 1, 145 do
  1777. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.7)
  1778. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7)
  1779. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1, 0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7)
  1780. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7)
  1781. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7)
  1782. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, 0, -2) * CFrame.Angles(math.rad(0), 0, 0), 0.7)
  1783. if Debounces.on == false then break end
  1784. wait()
  1785. end
  1786. l:Destroy()
  1787. BV:Destroy()
  1788. coroutine.resume(coroutine.create(function()
  1789. wait(0.01)
  1790. l = Instance.new("Sound",char)
  1791. l.SoundId = "http://www.roblox.com/asset/?id=849891594"
  1792. l.Looped = false
  1793. l.Pitch = 1
  1794. l.Volume = 80
  1795. l:Play()
  1796. end))
  1797. for i = 1, 60 do
  1798. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-10)), 0.4)
  1799. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(10)), 0.4)
  1800. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.4)
  1801. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.4)
  1802. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
  1803. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
  1804. if Debounces.on == false then break end
  1805. wait()
  1806. end
  1807. if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then
  1808. for i = 1, 30 do
  1809. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(-10)), 0.6)
  1810. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)), 0.6)
  1811. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.6)
  1812. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -5, 0) * CFrame.Angles(math.rad(-90), math.rad(0), 0), 0.6)
  1813. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, .4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6)
  1814. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, .4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6)
  1815. if Debounces.on == false then break end
  1816. wait()
  1817. end
  1818. end
  1819. Debounces.on = false
  1820. Debounces.NoIdl = false
  1821. local ry,ht,ps=nil,nil,nil
  1822. while ht==nil do
  1823. ry,ht,ps=newRay(root.CFrame*CFrame.new(0,-2,0),root.CFrame*CFrame.new(0,-3,0),4.1,{char})
  1824. wait()
  1825. end
  1826.  
  1827.  
  1828. coroutine.resume(coroutine.create(function()
  1829.  
  1830. for i,v in pairs(workspace:children()) do
  1831. charr = v:FindFirstChild('Character')
  1832. for i = 1, 15 do
  1833. charr.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7))
  1834. wait()
  1835. end
  1836.  
  1837. charr.Humanoid.CameraOffset = Vector3.new(0,0,0)
  1838. end
  1839. end))
  1840.  
  1841.  
  1842.  
  1843.  
  1844. coroutine.resume(coroutine.create(function()
  1845. for i = 1, 15 do
  1846. char.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7))
  1847. wait()
  1848. end
  1849. char.Humanoid.CameraOffset = Vector3.new(0,0,0)
  1850. end))
  1851.  
  1852.  
  1853. coroutine.resume(coroutine.create(function()
  1854. Landing2()
  1855. end))
  1856. Landing()
  1857. game:GetService("Debris"):AddItem(rng, 1)
  1858. game:GetService("Debris"):AddItem(rng2, 1)
  1859. game:GetService("Debris"):AddItem(rng3, 1)
  1860. game:GetService("Debris"):AddItem(rng4, 1)
  1861. game:GetService("Debris"):AddItem(rng5, 1)
  1862. hum.WalkSpeed = 5
  1863. if Debounces.CanAttack == false then
  1864. Debounces.CanAttack = true
  1865. end
  1866. end
  1867. end
  1868. end)
  1869.  
  1870.  
  1871.  
  1872. ptez = {0.7, 0.8, 0.9, 1}
  1873.  
  1874. function GroundPound()
  1875. local rng = Instance.new("Part", char)
  1876. rng.Anchored = true
  1877. rng.BrickColor = BrickColor.new("Lime green")
  1878. rng.CanCollide = false
  1879. rng.FormFactor = 3
  1880. rng.Name = "Ring"
  1881. rng.Size = Vector3.new(1, 1, 1)
  1882. rng.Transparency = 0.35
  1883. rng.TopSurface = 0
  1884. rng.BottomSurface = 0
  1885. rng.Position = larm.Position - Vector3.new(0,4,0)
  1886. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1887. local rngm = Instance.new("SpecialMesh", rng)
  1888. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1889. rngm.Scale = Vector3.new(1, 1, 2)
  1890. coroutine.resume(coroutine.create(function()
  1891. t = Instance.new("Sound",char)
  1892. t.SoundId = "http://www.roblox.com/asset/?id=142070127"
  1893. t.Pitch = ptez[math.random(1,#ptez)]
  1894. t.Volume = 1
  1895. wait(.1)
  1896. t:Play()
  1897. end))
  1898. coroutine.wrap(function()
  1899. for i = 1, 60, 2 do
  1900. rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
  1901. rng.Transparency = i/60
  1902. wait()
  1903. end
  1904. wait()
  1905. rng:Destroy()
  1906. end)()
  1907.  
  1908. end
  1909.  
  1910.  
  1911. function GroundPound2()
  1912. local rng = Instance.new("Part", char)
  1913. rng.Anchored = true
  1914. rng.BrickColor = BrickColor.new("Lime green")
  1915. rng.CanCollide = false
  1916. rng.FormFactor = 3
  1917. rng.Name = "Ring"
  1918. rng.Size = Vector3.new(1, 1, 1)
  1919. rng.Transparency = 0.35
  1920. rng.TopSurface = 0
  1921. rng.BottomSurface = 0
  1922. rng.Position = rarm.Position - Vector3.new(0,4,0)
  1923. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1924. local rngm = Instance.new("SpecialMesh", rng)
  1925. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1926. rngm.Scale = Vector3.new(1, 1, 2)
  1927. coroutine.resume(coroutine.create(function()
  1928. t = Instance.new("Sound",char)
  1929. t.SoundId = "http://www.roblox.com/asset/?id=142070127"
  1930. t.Pitch = ptez[math.random(1,#ptez)]
  1931. t.Volume = 1
  1932. wait(.1)
  1933. t:Play()
  1934. end))
  1935. coroutine.wrap(function()
  1936. for i = 1, 60, 2 do
  1937. rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
  1938. rng.Transparency = i/60
  1939. wait()
  1940. end
  1941. wait()
  1942. rng:Destroy()
  1943. end)()
  1944. end
  1945.  
  1946.  
  1947.  
  1948.  
  1949. mouse.KeyDown:connect(function(key)
  1950. if key == "h" then
  1951. if Debounces.CanAttack == true then
  1952. Debounces.CanAttack = false
  1953. Debounces.NoIdl = true
  1954. Debounces.on = true
  1955.  
  1956.  
  1957.  
  1958.  
  1959. coroutine.resume(coroutine.create(function()
  1960.  
  1961. for i,v in pairs(workspace:children()) do
  1962. charr = v:FindFirstChild('Character')
  1963. for i = 1, 48 do
  1964. charr.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7))
  1965. wait()
  1966. end
  1967.  
  1968. charr.Humanoid.CameraOffset = Vector3.new(0,0,0)
  1969. end
  1970. end))
  1971.  
  1972.  
  1973.  
  1974.  
  1975. coroutine.resume(coroutine.create(function()
  1976. for i = 1, 78 do
  1977. char.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7))
  1978. wait()
  1979. end
  1980. char.Humanoid.CameraOffset = Vector3.new(0,0,0)
  1981. end))
  1982.  
  1983.  
  1984. coroutine.resume(coroutine.create(function()
  1985. wait(0.1)
  1986. for i = 1,78 do
  1987. for i,v in pairs(FindNearestTorso(torso.CFrame.p,25))do
  1988. if v:FindFirstChild('Humanoid') then
  1989. v.Humanoid:TakeDamage(math.random(10000020,10000030))
  1990. v.Humanoid.PlatformStand = true
  1991. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  1992. end
  1993. end
  1994. end
  1995. end))
  1996.  
  1997. GroundPound()
  1998. for i = 1, 5 do
  1999. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
  2000. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
  2001. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
  2002. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
  2003. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
  2004. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2005. if Debounces.on == false then break end
  2006. wait()
  2007. end
  2008. GroundPound2()
  2009. for i = 1, 5 do
  2010. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
  2011. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
  2012. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
  2013. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
  2014. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2015. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
  2016. if Debounces.on == false then break end
  2017. wait()
  2018. end
  2019. GroundPound()
  2020. for i = 1, 5 do
  2021. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
  2022. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
  2023. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
  2024. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
  2025. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
  2026. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2027. if Debounces.on == false then break end
  2028. wait()
  2029. end
  2030. GroundPound2()
  2031. for i = 1, 5 do
  2032. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
  2033. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
  2034. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
  2035. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
  2036. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2037. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
  2038. if Debounces.on == false then break end
  2039. wait()
  2040. end
  2041. GroundPound()
  2042. for i = 1, 5 do
  2043. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
  2044. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
  2045. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
  2046. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
  2047. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
  2048. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2049. if Debounces.on == false then break end
  2050. wait()
  2051. end
  2052. GroundPound2()
  2053. for i = 1, 5 do
  2054. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
  2055. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
  2056. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
  2057. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
  2058. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2059. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
  2060. if Debounces.on == false then break end
  2061. wait()
  2062. end
  2063. GroundPound()
  2064. for i = 1, 5 do
  2065. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
  2066. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
  2067. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
  2068. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
  2069. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
  2070. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2071. if Debounces.on == false then break end
  2072. wait()
  2073. end
  2074. GroundPound2()
  2075. for i = 1, 5 do
  2076. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
  2077. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
  2078. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
  2079. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
  2080. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2081. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
  2082. if Debounces.on == false then break end
  2083. wait()
  2084. end
  2085. GroundPound()
  2086. for i = 1, 5 do
  2087. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
  2088. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
  2089. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
  2090. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
  2091. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
  2092. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2093. if Debounces.on == false then break end
  2094. wait()
  2095. end
  2096. GroundPound2()
  2097. for i = 1, 5 do
  2098. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
  2099. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
  2100. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
  2101. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
  2102. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2103. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
  2104. if Debounces.on == false then break end
  2105. wait()
  2106. end
  2107. GroundPound()
  2108. for i = 1, 5 do
  2109. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
  2110. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
  2111. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
  2112. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
  2113. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
  2114. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2115. if Debounces.on == false then break end
  2116. wait()
  2117. end
  2118. GroundPound2()
  2119. for i = 1, 5 do
  2120. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
  2121. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
  2122. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
  2123. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
  2124. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2125. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
  2126. if Debounces.on == false then break end
  2127. wait()
  2128. end
  2129. GroundPound()
  2130. for i = 1, 5 do
  2131. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
  2132. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
  2133. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
  2134. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
  2135. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
  2136. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2137. if Debounces.on == false then break end
  2138. wait()
  2139. end
  2140. GroundPound2()
  2141. for i = 1, 5 do
  2142. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
  2143. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
  2144. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
  2145. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
  2146. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2147. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
  2148. if Debounces.on == false then break end
  2149. wait()
  2150. end
  2151. GroundPound()
  2152. for i = 1, 5 do
  2153. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
  2154. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
  2155. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
  2156. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
  2157. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
  2158. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2159. if Debounces.on == false then break end
  2160. wait()
  2161. end
  2162. GroundPound2()
  2163. for i = 1, 5 do
  2164. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
  2165. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
  2166. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
  2167. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
  2168. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
  2169. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
  2170. if Debounces.on == false then break end
  2171. wait()
  2172. end
  2173.  
  2174.  
  2175.  
  2176. if Debounces.CanAttack == false then
  2177. Debounces.CanAttack = true
  2178. Debounces.on = false
  2179. Debounces.NoIdl = false
  2180.  
  2181. end
  2182. end
  2183. end
  2184. end)
  2185.  
  2186.  
  2187.  
  2188.  
  2189. local animpose = "Idle"
  2190. local lastanimpose = "Idle"
  2191. local sine = 0
  2192. local change = 1
  2193. local val = 0
  2194. local ffing = false
  2195. ----------------------------------------------------
  2196. x = Instance.new("Sound", char)
  2197. x.SoundId = "http://www.roblox.com/asset/?id=187922823"
  2198. x.Looped = true
  2199. x.Volume = 30
  2200. x.Pitch = 1
  2201. local footsteps = false
  2202. -------------------------------
  2203. game:GetService("RunService").RenderStepped:connect(function()
  2204. if char.Humanoid.Jump == true then
  2205. jump = true
  2206. else
  2207. jump = false
  2208. end
  2209. char.Humanoid.FreeFalling:connect(function(f)
  2210. if f then
  2211. ffing = true
  2212. else
  2213. ffing = false
  2214. end
  2215. end)
  2216. sine = sine + change
  2217. if jumpn == true then
  2218. animpose = "Jumping"
  2219. elseif ffing == true then
  2220. animpose = "Freefalling"
  2221. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  2222. animpose = "Idle"
  2223. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  2224. animpose = "Walking"
  2225. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  2226. animpose = "Running"
  2227. end
  2228. if animpose ~= lastanimpose then
  2229. sine = 0
  2230. if Debounces.NoIdl == false then
  2231. if animpose == "Idle" then
  2232. for i = 1, 2 do
  2233. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  2234. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  2235. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
  2236. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  2237. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  2238. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  2239. end
  2240. elseif animpose == "Walking" then
  2241. for i = 1, 2 do
  2242. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(0)), 0.2)
  2243. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2)
  2244. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2)
  2245. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2)
  2246. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  2247. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  2248. end
  2249. elseif animpose == "Running" then
  2250. for i = 1, 2 do
  2251. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .5) * CFrame.Angles(math.rad(-0), math.rad(-40), math.rad(0)), 0.2)
  2252. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2)
  2253. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  2254. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  2255. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
  2256. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
  2257. end
  2258. wait()
  2259. end
  2260. else
  2261. end
  2262. end
  2263. lastanimpose = animpose
  2264. if Debounces.NoIdl == false then
  2265. if animpose == "Idle" then
  2266. if stanceToggle == "Normal" then
  2267. change = 0.5
  2268. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(88+2*math.cos(sine/14)),math.rad(50),math.rad(0)), 0.2)
  2269. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(50),math.rad(-30),math.rad(-40-2*math.cos(sine/14))), 0.2)
  2270. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(40),0), 0.2)
  2271. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-40), 0), 0.2)
  2272. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.15, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2273. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.15, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  2274. elseif stanceToggle == "Sitting" then
  2275. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2)
  2276. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2)
  2277. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2)
  2278. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2)
  2279. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2)
  2280. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2)
  2281. end
  2282. elseif animpose == "Walking" then
  2283. if stanceToggle == "Normal" then
  2284. change = 1
  2285. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9+.1*math.cos(sine/7), -math.sin(sine/14)/2)*CFrame.Angles(math.sin(sine/14)/-4, math.rad(1) + -math.sin(sine/14)/2, math.rad(30)), 0.1)
  2286. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9+.1*math.cos(sine/7), -math.sin(sine/14)/2)*CFrame.Angles(math.sin(sine/14)/4, math.rad(1) + -math.sin(sine/14)/2, math.rad(-30)), 0.1)
  2287. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/7)), math.rad(0), math.rad(0)),0.2)
  2288. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/7)), 0, math.rad(0)), 0.2)
  2289. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.3*math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .1)
  2290. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .1)
  2291. end
  2292. elseif animpose == "Running" then
  2293. change = 1
  2294. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .5) * CFrame.Angles(math.rad(-10-20*math.cos(sine/4)/2), math.rad(-40+10*math.cos(sine/4)/2), math.rad(50-10*math.cos(sine/4)/2)), 0.2)
  2295. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, .5)*CFrame.Angles(math.rad(10+20*math.cos(sine/4)/2), math.rad(40-10*math.cos(sine/4)/2), math.rad(-50+10*math.cos(sine/4)/2)), 0.2)
  2296. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  2297. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  2298. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
  2299. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
  2300. end
  2301. end
  2302. if animpose == "Walking" then
  2303. if footsteps == false then
  2304. x:Play()
  2305. footsteps = true
  2306. end
  2307. x.Pitch = 0.9
  2308. elseif animpose == "Idle" then
  2309. x:Stop()
  2310. footsteps = false
  2311. elseif animpose == "Running" then
  2312. x.Pitch = 1.2
  2313. if footsteps == false then
  2314. x:Play()
  2315. footsteps = true
  2316. end
  2317. end
  2318. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement