Hugo1234cool

Untitled

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