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