View difference between Paste ID: vF7pUQx9 and Exb6BWEt
SHOW: | | - or go back to the newest paste.
1
-- Double Inverted Flare, which is basicly Inverted Flare...
2
-- but when F is pressed it prints controls.
3
-- Oh, and it has diffrent colors and stuff.
4
5
wait(1)
6
7
Character = game.Players.LocalPlayer.Character
8
Head = Character.Head
9
10
CV="Toothpaste"
11
	p = game.Players.LocalPlayer
12
	char = p.Character
13
	local txt = Instance.new("BillboardGui", char)
14
	txt.Adornee = char .Head
15
	txt.Name = "_status"
16
	txt.Size = UDim2.new(2, 0, 1.2, 0)
17
	txt.StudsOffset = Vector3.new(-9, 8, 0)
18
	local text = Instance.new("TextLabel", txt)
19
	text.Size = UDim2.new(10, 0, 7, 0)
20
	text.FontSize = "Size24"
21
	text.TextScaled = true
22
	text.TextTransparency = 0
23
	text.BackgroundTransparency = 1 
24
	text.TextTransparency = 0
25
	text.TextStrokeTransparency = 0
26
	text.Font = "Cartoon"
27-
	text.TextStrokeColor3 = Color3.new(0,191,255)
27+
	text.TextStrokeColor3 = Color3.new(255,255,0)
28
29
	v=Instance.new("Part")
30
	v.Name = "ColorBrick"
31
	v.Parent=p.Character
32
	v.FormFactor="Symmetric"
33
	v.Anchored=true
34
	v.CanCollide=false
35
	v.BottomSurface="Smooth"
36
	v.TopSurface="Smooth"
37
	v.Size=Vector3.new(10,5,3)
38
	v.Transparency=1
39
	v.CFrame=char.Torso.CFrame
40
	v.BrickColor=BrickColor.new(CV)
41
	v.Transparency=1
42-
	text.TextColor3 = Color3.new(0,191,255)
42+
	text.TextColor3 = Color3.new(255,0,0)
43
	v.Shape="Block"
44-
	text.Text = "Why so delirious?"
44+
	text.Text = "COMMUNISM!"
45
46
	local s = Instance.new("Sound",char)
47
	s.Name = "BGMusic"
48-
	s.SoundId = "rbxassetid://893883065"
48+
	s.SoundId = "rbxassetid://190259262"
49
	s.Pitch = 1
50
	s.Volume = 1000000
51
	s.Looped = true
52
	s.archivable = false
53
	s.Parent = char.Head
54
	wait(0.1)
55
	s:play()
56
57
58
--[[Nocturna_A._Alteriano_Night.Owl.Inc]]--
59
--[[Edited by whenyoudiev3]]--
60
wait(1 / 60)
61
Effects = { }
62
local Player = game.Players.localPlayer
63
local Character = Player.Character
64
local Humanoid = Character.Humanoid
65
local mouse = Player:GetMouse()
66
local m = Instance.new('Model', Character)
67
m.Name = "WeaponModel"
68
local LeftArm = Character["Left Arm"]
69
local RightArm = Character["Right Arm"]
70
local LeftLeg = Character["Left Leg"]
71
local RightLeg = Character["Right Leg"]
72
local Head = Character.Head
73
local Torso = Character.Torso
74
local cam = game.Workspace.CurrentCamera
75
local RootPart = Character.HumanoidRootPart
76
local RootJoint = RootPart.RootJoint
77
local equipped = false
78
local attack = false
79
local Anim = 'Idle'
80
local idle = 0
81
local attacktype = 1
82
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
83
local velocity = RootPart.Velocity.y
84
local sine = 0
85
local change = 1
86
local grabbed = false
87
local cn = CFrame.new
88
local mr = math.rad
89
local angles = CFrame.Angles
90
local ud = UDim2.new
91
local c3 = Color3.new
92
Instance.new("ForceField", game.Players.LocalPlayer.Character).Visible = false
93
94
Humanoid.Animator.Parent = nil
95
Character.Animate.Parent = nil
96
97
local newMotor = function(part0, part1, c0, c1)
98
	local w = Instance.new('Motor', part0)
99
	w.Part0 = part0
100
	w.Part1 = part1
101
	w.C0 = c0
102
	w.C1 = c1
103
	return w
104
end
105
106
function clerp(a, b, t)
107
	return a:lerp(b, t)
108
end
109
110
RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
111
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
112
113
local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) 
114
local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
115
local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
116
local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
117
RootJoint.C1 = CFrame.new(0, 0, 0)
118
RootJoint.C0 = CFrame.new(0, 0, 0)
119
Torso.Neck.C1 = CFrame.new(0, 0, 0)
120
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
121
122
local rarmc1 = RW.C1
123
local larmc1 = LW.C1
124
local rlegc1 = RH.C1
125
local llegc1 = LH.C1
126
127
local resetc1 = false
128
129
function PlayAnimationFromTable(table, speed, bool)
130
	RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) 
131
	Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) 
132
	RW.C0 = clerp(RW.C0, table[3], speed) 
133
	LW.C0 = clerp(LW.C0, table[4], speed) 
134
	RH.C0 = clerp(RH.C0, table[5], speed) 
135
	LH.C0 = clerp(LH.C0, table[6], speed) 
136
	if bool == true then
137
		if resetc1 == false then
138
			resetc1 = true
139
			RootJoint.C1 = RootJoint.C1
140
			Torso.Neck.C1 = Torso.Neck.C1
141
			RW.C1 = rarmc1
142
			LW.C1 = larmc1
143
			RH.C1 = rlegc1
144
			LH.C1 = llegc1
145
		end
146
	end
147
end
148
149
Char = char
150
151
--[[Credits to SazErenos for his Artificial Heartbeat]]--
152
153
ArtificialHB = Instance.new("BindableEvent", script)
154
ArtificialHB.Name = "Heartbeat"
155
156
script:WaitForChild("Heartbeat")
157
158
frame = 1 / 30
159
tf = 0
160
allowframeloss = false
161
tossremainder = false
162
lastframe = tick()
163
script.Heartbeat:Fire()
164
165
game:GetService("RunService").Heartbeat:connect(function(s, p)
166
	tf = tf + s
167
	if tf >= frame then
168
		if allowframeloss then
169
			script.Heartbeat:Fire()
170
			lastframe = tick()
171
		else
172
			for i = 1, math.floor(tf / frame) do
173
				script.Heartbeat:Fire()
174
			end
175
			lastframe = tick()
176
		end
177
		if tossremainder then
178
			tf = 0
179
		else
180
			tf = tf - frame * math.floor(tf / frame)
181
		end
182
	end
183
end)
184
185
function swait(num)
186
	if num == 0 or num == nil then
187
		ArtificialHB.Event:wait()
188
	else
189
		for i = 0, num do
190
			ArtificialHB.Event:wait()
191
		end
192
	end
193
end
194
195
local RbxUtility = LoadLibrary("RbxUtility")
196
local Create = RbxUtility.Create
197
198
function RemoveOutlines(part)
199
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
200
end
201
	
202
CFuncs = {	
203
	["Part"] = {
204
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
205
			local Part = Create("Part"){
206
				Parent = Parent,
207
				Reflectance = Reflectance,
208
				Transparency = Transparency,
209
				CanCollide = false,
210
				Locked = true,
211
				BrickColor = BrickColor.new(tostring(BColor)),
212
				Name = Name,
213
				Size = Size,
214
				Material = Material,
215
			}
216
			RemoveOutlines(Part)
217
			return Part
218
		end;
219
	};
220
	
221
	["Mesh"] = {
222
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
223
			local Msh = Create(Mesh){
224
				Parent = Part,
225
				Offset = OffSet,
226
				Scale = Scale,
227
			}
228
			if Mesh == "SpecialMesh" then
229
				Msh.MeshType = MeshType
230
				Msh.MeshId = MeshId
231
			end
232
			return Msh
233
		end;
234
	};
235
	
236
	["Mesh"] = {
237
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
238
			local Msh = Create(Mesh){
239
				Parent = Part,
240
				Offset = OffSet,
241
				Scale = Scale,
242
			}
243
			if Mesh == "SpecialMesh" then
244
				Msh.MeshType = MeshType
245
				Msh.MeshId = MeshId
246
			end
247
			return Msh
248
		end;
249
	};
250
	
251
	["Weld"] = {
252
		Create = function(Parent, Part0, Part1, C0, C1)
253
			local Weld = Create("Weld"){
254
				Parent = Parent,
255
				Part0 = Part0,
256
				Part1 = Part1,
257
				C0 = C0,
258
				C1 = C1,
259
			}
260
			return Weld
261
		end;
262
	};
263
264
	["Sound"] = {
265
		Create = function(id, par, vol, pit) 
266
			coroutine.resume(coroutine.create(function()
267
				local S = Create("Sound"){
268
					Volume = vol,
269
					Pitch = pit or 1,
270
					SoundId = id,
271
					Parent = par or workspace,
272
				}
273
				Instance.new("DistortionSoundEffect", S).Level = 1
274
				wait() 
275
				S:play() 
276
				game:GetService("Debris"):AddItem(S, 10)
277
			end))
278
		end;
279
	};
280
	
281
	["ParticleEmitter"] = {
282
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
283
			local fp = Create("ParticleEmitter"){
284
				Parent = Parent,
285
				Color = ColorSequence.new(Color1, Color2),
286
				LightEmission = LightEmission,
287
				Size = Size,
288
				Texture = Texture,
289
				Transparency = Transparency,
290
				ZOffset = ZOffset,
291
				Acceleration = Accel,
292
				Drag = Drag,
293
				LockedToPart = LockedToPart,
294
				VelocityInheritance = VelocityInheritance,
295
				EmissionDirection = EmissionDirection,
296
				Enabled = Enabled,
297
				Lifetime = LifeTime,
298
				Rate = Rate,
299
				Rotation = Rotation,
300
				RotSpeed = RotSpeed,
301
				Speed = Speed,
302
				VelocitySpread = VelocitySpread,
303
			}
304
			return fp
305
		end;
306
	};
307
}
308
309
function rayCast(Position, Direction, Range, Ignore)
310
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
311
end 
312
313
local function GetNearest(obj, distance)
314
	local last, lastx = distance + 1
315
	for i, v in pairs(workspace:GetChildren()) do
316
		if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
317
			local t = v.Torso
318
			local dist = (t.Position - obj.Position).magnitude
319
			if dist <= distance then
320
				if dist < last then
321
					last = dist
322
					lastx = v
323
				end
324
			end
325
		end
326
	end
327
	return lastx
328
end
329
330
--[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
331
332
function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
333
	for i, v in pairs(hit:GetChildren()) do 
334
		if v:IsA("Humanoid") and hit.Name ~= Character.Name then
335
			local find = v:FindFirstChild("DebounceHit")
336
			if not find then
337
				if v.Parent:findFirstChild("Head") then
338
					local BillG = Create("BillboardGui"){
339
						Parent = v.Parent.Head,
340
						Size = UDim2.new(1, 0, 1, 0),
341
						Adornee = v.Parent.Head,
342
						StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
343
					}
344
					local TL = Create("TextLabel"){
345
						Parent = BillG,
346
						Size = UDim2.new(3, 3, 3, 3),
347
						BackgroundTransparency = 1,
348
						Text = tostring(damage).."-",
349
						TextColor3 = Color1.Color,
350
						TextStrokeColor3 = Color2.Color,
351
						TextStrokeTransparency = 0,
352
						TextXAlignment = Enum.TextXAlignment.Center,
353
						TextYAlignment = Enum.TextYAlignment.Center,
354
						FontSize = Enum.FontSize.Size18,
355
						Font = "ArialBold",
356
					}
357
					coroutine.resume(coroutine.create(function()
358
						swait(1)
359
						for i = 0, 1, .1 do
360
							swait(.1)
361
							BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
362
						end
363
						BillG:Destroy()
364
					end))
365
				end
366
				v.Health = v.Health - damage
367
				local bool = Create("BoolValue"){
368
					Parent = v,
369
					Name = "DebounceHit",
370
				}
371
				if HSound ~= nil and HPitch ~= nil then
372
					CFuncs["Sound"].Create(HSound, hit, 1, HPitch) 
373
				end
374
				game:GetService("Debris"):AddItem(bool, cooldown)
375
			end
376
		end
377
	end
378
end
379
380
function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
381
	for _, c in pairs(workspace:children()) do
382
		local hum = c:findFirstChild("Humanoid")
383
		if hum ~= nil then
384
			local head = c:findFirstChild("Torso")
385
			if head ~= nil then
386
				local targ = head.Position - Part.Position
387
				local mag = targ.magnitude
388
				if mag <= magni and c.Name ~= Player.Name then 
389
					Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
390
				end
391
			end
392
		end
393
	end
394
end
395
396
Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(-0.399999946, 0.899999976, -0.400000095))
397
HandleWeld = CFuncs["Weld"].Create(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199958801, -0.0500774384, -1.09998882, -1, 0, 0, 0, 0, -1, -0, -1, -0))
398
FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
399
FakeHandleWeld = CFuncs["Weld"].Create(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199996948, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
400
Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
401
BarrelWeld = CFuncs["Weld"].Create(m, FakeHandle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.749999046, -1.50000024, 1, 0, 0, 0, 1, 0, 0, 0, 1))
402
Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Part", Vector3.new(-0.399999946, 0.299999952, -0.400000095))
403
PartWeld = CFuncs["Weld"].Create(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.38, -0.300000194, 0.400000160, 1, 0, 0, 0, 1, 0, 0, 0, -1))
404
CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://443983595", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00700000007, 0.003000010))
405
Part.Mesh.TextureId = "rbxassetid://443983604"
406
Part.Mesh.Scale = Vector3.new(0.017, 0.017, 0.017)
407
408
EffectModel = Instance.new("Model", Character)
409
EffectModel.Name = "Effects"
410
411
Effects = {
412
	["Block"] = {
413
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
414
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
415
			prt.Anchored = true
416
			prt.CFrame = cframe
417
			local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
418
			game:GetService("Debris"):AddItem(prt, 10)
419
			if Type == 1 or Type == nil then
420
				table.insert(Effects, {
421
					prt,
422
					"Block1",
423
					delay,
424
					x3,
425
					y3,
426
					z3,
427
					msh
428
				})
429
			elseif Type == 2 then
430
				table.insert(Effects, {
431
					prt,
432
					"Block2",
433
					delay,
434
					x3,
435
					y3,
436
					z3,
437
					msh
438
				})
439
			end
440
		end;
441
	};
442
	
443
	["Cylinder"] = {
444
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
445
			local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
446
			prt.Anchored = true
447
			prt.CFrame = cframe
448
			local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
449
			game:GetService("Debris"):AddItem(prt, 2)
450
			Effects[#Effects + 1] = {
451
				prt,
452
				"Cylinder",
453
				delay,
454
				x3,
455
				y3,
456
				z3
457
			}
458
		end;
459
	};
460
	
461
	["Sphere"] = {
462
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
463
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
464
			prt.Anchored = true
465
			prt.CFrame = cframe
466
			local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
467
			game:GetService("Debris"):AddItem(prt, 10)
468
			table.insert(Effects, {
469
				prt,
470
				"Cylinder",
471
				delay,
472
				x3,
473
				y3,
474
				z3,
475
				msh
476
			})
477
		end;
478
	};
479
	
480
	["Elec"] = {
481
		Create = function(cff, x, y, z)
482
			local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
483
			prt.Anchored = true
484
			prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
485
			prt.CFrame = CFrame.new(prt.Position)
486
			game:GetService("Debris"):AddItem(prt, 2)
487
			local xval = math.random() / 2
488
			local yval = math.random() / 2
489
			local zval = math.random() / 2
490
			local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
491
			table.insert(Effects, {
492
				prt,
493
				"Elec",
494
				0.1,
495
				x,
496
				y,
497
				z,
498
				xval,
499
				yval,
500
				zval
501
			})
502
		end;
503
504
	};
505
	
506
	["Ring"] = {
507
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
508
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
509
			prt.Anchored = true
510
			prt.CFrame = cframe
511
			local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
512
			game:GetService("Debris"):AddItem(prt, 10)
513
			table.insert(Effects, {
514
				prt,
515
				"Cylinder",
516
				delay,
517
				x3,
518
				y3,
519
				z3,
520
				msh
521
			})
522
		end;
523
	};
524
525
526
	["Wave"] = {
527
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
528
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
529
			prt.Anchored = true
530
			prt.CFrame = cframe
531
			local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
532
			game:GetService("Debris"):AddItem(prt, 10)
533
			table.insert(Effects, {
534
				prt,
535
				"Cylinder",
536
				delay,
537
				x3,
538
				y3,
539
				z3,
540
				msh
541
			})
542
		end;
543
	};
544
545
	["Break"] = {
546
		Create = function(brickcolor, cframe, x1, y1, z1)
547
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
548
			prt.Anchored = true
549
			prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
550
			local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
551
			local num = math.random(10, 50) / 1000
552
			game:GetService("Debris"):AddItem(prt, 10)
553
			table.insert(Effects, {
554
				prt,
555
				"Shatter",
556
				num,
557
				prt.CFrame,
558
				math.random() - math.random(),
559
				0,
560
				math.random(50, 100) / 100
561
			})
562
		end;
563
	};
564
}
565
566
Shoot2 = function(orgpos)
567
	local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
568
	Effects["Sphere"].Create(BrickColor.new("Really red"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
569
	table.insert(Effects, {
570
		MouseLook.lookVector,
571
		"Shoot2",
572
		50,
573
		orgpos,
574
		5,
575
		7,
576
		0,
577
		1,
578
		2
579
	})
580
end
581
582
function bulletstorm()
583
	attack = true
584
	CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8) 
585
	for i = 0, 1, 0.025 do
586
		swait()
587
		PlayAnimationFromTable({
588
			CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
589
			CFrame.new(0, 1.4999907, 3.42726707e-007, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
590
			CFrame.new(0.431798398, 0.400000006, -0.888215482, 0.939692736, 0.342019886, 0, 0, 0, -1, -0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
591
			CFrame.new(-0.559965074, 0.300000012, -0.828456283, 0.939692736, -0.342019886, 0, 0, 0, -1, 0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
592
			CFrame.new(0.599619746, -1.99127948, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
593
			CFrame.new(-0.599619746, -1.99127901, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
594
		}, .3, false)
595
		FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
596
Shoot2(Barrel.Position)
597
	end
598
599
	attack = false
600
end
601
602
function overload()
603
	attack = true
604
	CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8)
605
Shoot2(LeftArm.Position)
606
Shoot2(RightArm.Position)
607
Shoot2(RightLeg.Position)
608
Shoot2(LeftLeg.Position)
609
Shoot2(Head.Position)
610
Shoot2(Torso.Position)
611
wait(0)
612
	attack = false
613
end
614
615
function overcharge()
616
        attack = true
617
        CFuncs["Sound"].Create("rbxassetid://813670691", Torso, .1, 2.8)
618
	for i = 0, 1, 0.15 do
619
		swait()
620
		PlayAnimationFromTable({
621
			CFrame.new(-0.0325974114, -4.05311584e-006, 0.110728048, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
622
			CFrame.new(0, 1.50000095, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
623
			CFrame.new(1.10100186, 0.535800219, -0.637803555, 0.658456147, 0.673041463, 0.336824596, 0.280167073, 0.196174845, -0.939692438, -0.698528469, 0.713113427, -0.0593915135),
624
			CFrame.new(-1.62758517, 0.073027119, -0.378663093, 0.90510416, 0.321394593, -0.278374165, -0.392632991, 0.883023262, -0.25711751, 0.163174719, 0.342016995, 0.92541796),
625
			CFrame.new(0.644929826, -1.96549833, 0.164695352, 0.962249994, -0.148305506, 0.228211343, 0.0871559754, 0.962249756, 0.257835865, -0.257834762, -0.22821258, 0.938850582),
626
			CFrame.new(-0.750219464, -1.99537396, -0.240616962, 0.862504363, 0.0818999186, 0.499378443, -0.08583197, 0.99619472, -0.0151344473, -0.498717606, -0.0298091136, 0.866251826),
627
		}, .5, false)
628
	end
629
wait(3)
630
Shoot2(Barrel.Position)
631
Shoot2(Barrel.Position)
632
Shoot2(Handle.Position)
633
Shoot2(Handle.Position)
634
Shoot2(FakeHandle.Position)
635
Shoot2(FakeHandle.Position)
636
Shoot2(Barrel.Position)
637
Shoot2(Barrel.Position)
638
Shoot2(Handle.Position)
639
Shoot2(Handle.Position)
640
Shoot2(FakeHandle.Position)
641
Shoot2(FakeHandle.Position)
642
Shoot2(Barrel.Position)
643
Shoot2(Barrel.Position)
644
Shoot2(Handle.Position)
645
Shoot2(Handle.Position)
646
Shoot2(FakeHandle.Position)
647
Shoot2(FakeHandle.Position)
648
Shoot2(Barrel.Position)
649
Shoot2(Barrel.Position)
650
Shoot2(Handle.Position)
651
Shoot2(Handle.Position)
652
Shoot2(FakeHandle.Position)
653
Shoot2(FakeHandle.Position)
654
	for i = 0, 1, 0.15 do
655
		swait()
656
		PlayAnimationFromTable({
657
         CFrame.new(2.70828605e-006, -0.256154776, -0.071654655, 0.499999046, -1.78813579e-007, -0.866026044, 0.150384009, 0.984807789, 0.0868238211, 0.852869093, -0.173648283, 0.492402941),
658
         CFrame.new(4.34633694e-006, 1.49999607, 2.42484384e-006, 0.646143615, 0.0549410731, 0.761235893, -0.0851004422, 0.996372402, 0.000322267413, -0.758456767, -0.0649897307, 0.648474991),
659
         CFrame.new(1.86507177, 0.598104239, 0.183552518, -0.114682339, -0.981059372, -0.156110525, 0.981060445, -0.0871559381, -0.172987223, 0.156104773, -0.172992408, 0.9724738),
660
         CFrame.new(-1.52644157, 0.0874626189, -0.302744657, 0.95125103, 0.20658794, -0.229004204, -0.254887104, 0.944645047, -0.2065873, 0.173649222, 0.254886597, 0.951251268),
661
         CFrame.new(0.623469114, -1.90178788, 0.0298061967, 0.992532074, -0.0928985924, 0.079056859, 0.0757590532, 0.97739321, 0.197391063, -0.0956070125, -0.189927697, 0.977131963),
662
         CFrame.new(-0.786503196, -1.67652178, -0.389780819, 0.631277382, 0.179900557, 0.754403591, -0.0723632798, 0.982144117, -0.173656344, -0.772174001, 0.0550341941, 0.6330235),
663
		}, .35, false)
664
end
665
attack = false
666
end
667
668
function attackone()
669
	attack = true
670
	CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8) 
671
	for i = 0, 1, 0.025 do
672
		swait()
673
		PlayAnimationFromTable({
674
			CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
675
			CFrame.new(0, 1.4999907, 3.42726707e-007, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
676
			CFrame.new(0.431798398, 0.400000006, -0.888215482, 0.939692736, 0.342019886, 0, 0, 0, -1, -0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
677
			CFrame.new(-0.559965074, 0.300000012, -0.828456283, 0.939692736, -0.342019886, 0, 0, 0, -1, 0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
678
			CFrame.new(0.599619746, -1.99127948, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
679
			CFrame.new(-0.599619746, -1.99127901, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
680
		}, .3, false)
681
		FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
682
	end
683
	CFuncs["Sound"].Create("rbxassetid://203691837", Barrel, .01, .3)
684
	CFuncs["Sound"].Create("rbxassetid://203691885", Barrel, .01, .9)
685
	CFuncs["Sound"].Create("rbxassetid://184718741", Barrel, .05, .9)
686
	Shoot2(Barrel.Position)
687
	for i = 0, 1, 0.15 do
688
		swait()
689
		RootPart.Velocity = RootPart.CFrame.lookVector * -50
690
		PlayAnimationFromTable({
691
			CFrame.new(-0, -0.281125277, 0.157014638, 1, 0, -0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
692
			CFrame.new(0, 1.4999938, 1.05202198e-005, 1, 0, -0, 0, 0.965925813, 0.258818924, -0, -0.258818924, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
693
			CFrame.new(0.406597674, 0.817824185, -0.957423151, 0.939692974, 0.280165672, -0.196174338, -5.36441803e-007, -0.573575616, -0.819152534, -0.34201926, 0.769751906, -0.538984895) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
694
			CFrame.new(-0.506752789, 0.775180221, -0.974653006, 0.939692974, -0.280165732, 0.196174279, 5.36441803e-007, -0.573575556, -0.819152713, 0.34201926, 0.769752145, -0.538984716) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
695
			CFrame.new(0.566868722, -1.61683154, -0.13679418, 0.954536259, -0.174988821, -0.241328761, 0.172366679, 0.984509468, -0.0321052969, 0.243208498, -0.0109513998, 0.969912171) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
696
			CFrame.new(-0.545306504, -1.37044179, -0.679420352, 0.996202111, 0.0754783303, 0.0434113704, -0.0434117466, 0.862729907, -0.503797948, -0.0754781216, 0.49999994, 0.862729967) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
697
		}, .6, false)
698
		FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
699
	end
700
	for i = 0, 1, 0.15 do
701
		swait()
702
		RootPart.Velocity = RootPart.CFrame.lookVector * -100
703
		PlayAnimationFromTable({
704
			CFrame.new(-0, -0.795007467, 0.0831707418, 1, 0, -0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
705
			CFrame.new(0, 1.49999774, 1.20103359e-005, 1, 0, -0, 0, 0.965925634, 0.258819878, -0, -0.258819878, 0.965925634) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
706
			CFrame.new(1.70605683, 1.21151328, -0.185158521, 0.893217862, -0.29338178, -0.340718448, -0.340719074, -0.936116338, -0.0871595442, -0.293381065, 0.193941653, -0.936116695) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
707
			CFrame.new(-1.69524968, 1.05172348, -0.252849877, 0.812758088, 0.493294626, 0.309975445, 0.582562625, -0.694268882, -0.422624737, 0.00672781467, 0.524071693, -0.851647615) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
708
			CFrame.new(0.689150453, -1.88461804, -0.0157705098, 0.954536736, -0.174989104, -0.241326213, 0.172367141, 0.984509468, -0.0321044922, 0.243205875, -0.0109517872, 0.969912887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
709
			CFrame.new(-0.536899447, -1.34506011, -0.583059072, 0.99620223, 0.0226762109, 0.0840658173, -0.043412663, 0.966281295, 0.253803402, -0.0754759163, -0.256489068, 0.963595748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
710
		}, .2, false)
711
		FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
712
	end
713
	for i = 0, 1, 0.05 do
714
		swait()
715
		RootPart.Velocity = RootPart.CFrame.lookVector * -50
716
		PlayAnimationFromTable({
717
			CFrame.new(-0, -2.09708667, 0.108620644, 1, 0, -0, 0, 0.573575675, -0.819152594, 0, 0.819152594, 0.573575675) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
718
			CFrame.new(0, 1.53697455, -0.422635257, 1, 0, -0, 0, 0.766043842, 0.64278841, -0, -0.64278841, 0.766043842) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
719
			CFrame.new(1.57810855, 0.650130272, 0.33058399, 0.930655897, -0.284022599, -0.230674848, 0.352510452, 0.527023435, 0.773293555, -0.0980618149, -0.800985396, 0.590598404) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
720
			CFrame.new(-1.38994181, 0.87733829, 0.667137444, 0.963715255, 0.08906921, 0.251633942, -0.25866431, 0.0788001418, 0.962747812, 0.0659223944, -0.992903471, 0.0989798903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
721
			CFrame.new(0.774198592, -1.52057803, -0.607582211, 0.954536974, -0.272207022, -0.121501081, 0.172365844, 0.83655864, -0.520057499, 0.243206039, 0.475471497, 0.845445395) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
722
			CFrame.new(-0.530096769, -1.05517173, -0.660005629, 0.99620223, 0.0226761587, 0.0840661526, -0.0434127897, 0.966280818, 0.253804684, -0.0754762068, -0.256490231, 0.96359539) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
723
		}, .3, false)
724
		FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3)
725
	end
726
	for i = 0, 1, 0.13 do
727
		swait()
728
		PlayAnimationFromTable({
729
			CFrame.new(-0, -1.01349139, -0.251608461, 1, 0, 0, 0, 0.707105339, 0.707108378, 0, -0.707108378, 0.707105339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
730
			CFrame.new(0.0127754211, 1.44207788, 0.0749337673, 1, 0, 0, 0, 0.939691544, -0.342023343, 0, 0.342023343, 0.939691544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
731
			CFrame.new(1.62296665, 0.191783041, -0.192457974, 0.930656254, -0.329096794, 0.159920022, 0.352511466, 0.923570275, -0.150843769, -0.098055169, 0.196757287, 0.975536823) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
732
			CFrame.new(-0.870643735, 0.71258086, -0.942903101, 0.18127799, -0.372358024, -0.910213113, -0.781424284, 0.507405519, -0.363202393, 0.597088516, 0.777103186, -0.19898814) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
733
			CFrame.new(0.214147568, -1.73508716, -0.0895051956, 0.924306214, 0.282332808, -0.256800473, -0.113861978, 0.846218646, 0.520528436, 0.364271581, -0.451887846, 0.814311981) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
734
			CFrame.new(-0.535767198, -0.599929333, -0.996632636, 0.996202111, 0.0754788443, 0.0434101112, -0.0434126705, 0.862728953, -0.503799856, -0.0754773915, 0.500001788, 0.862729192) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
735
		}, .3, false)
736
	end
737
	attack = false
738
end
739
740
--[[Attacks]]--
741
742
mouse.Button1Down:connect(function()
743
	if attack == false and attacktype == 1 then
744
		attackone()
745
	end
746
end)
747
748
mouse.KeyDown:connect(function(k)
749
	k = k:lower()
750
	if attack == false and k == 'q' then
751
		bulletstorm()
752
	elseif attack == false and k == 'e' then
753
		overload()
754
	elseif attack == false and k == 'r' then
755
		overcharge()
756
	elseif k == 'f' then
757
		print("Press MB1 to fire")
758
		print("Press Q for Bulletstorm")
759
		print("Press E for Overload")
760
		print("Press R for Overcharge")
761
		print("Press F to see this again")
762
	end
763
end)
764
765
while true do
766
	swait()
767
	for i, v in pairs(Character:GetChildren()) do
768
		if v:IsA("Part") then
769
			v.Material = "SmoothPlastic"
770
		elseif v:IsA("Accessory") then
771
			v:WaitForChild("Handle").Material = "SmoothPlastic"
772
		end
773
	end
774
	Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
775
	velocity = RootPart.Velocity.y
776
	sine = sine + change
777
	local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
778
	if equipped == true or equipped == false then
779
		if RootPart.Velocity.y > 1 and hit == nil then 
780
			Anim = "Jump"
781
			if attack == false then
782
				PlayAnimationFromTable({
783
					CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
784
					CFrame.new(0, 1.49221826, -0.044082582, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
785
					CFrame.new(1.66304386, 0.182627335, 0.00782334805, 0.883022726, -0.392632574, 0.257119894, 0.321392894, 0.905103981, 0.2783764, -0.342019886, -0.163176134, 0.925416708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
786
					CFrame.new(-1.66570556, 0.224230319, 0.110721856, 0.903736115, 0.408218145, -0.128915116, -0.34750703, 0.875426054, 0.33595863, 0.25000003, -0.258819014, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
787
					CFrame.new(0.499999166, -1.99999452, 4.76837158e-007, 0.984807849, -5.94328526e-007, -0.173648044, 0.0449439958, 0.965925872, 0.254886925, 0.167730987, -0.258819073, 0.951251388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
788
					CFrame.new(-0.499999404, -1.51703107, -0.129407585, 0.965925753, 6.6929374e-007, 0.258819193, -0.0669879839, 0.965925813, 0.24999994, -0.24999994, -0.258819163, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
789
				}, .3, false)
790
			end
791
		elseif RootPart.Velocity.y < -60 and hit == nil then 
792
			Anim = "Fall"
793
			if attack == false then
794
				PlayAnimationFromTable({
795
					CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
796
					CFrame.new(0, 1.49221873, -0.0440826714, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
797
					CFrame.new(1.76076102, 0.406842887, 0.0212866664, 0.695482016, -0.670965135, 0.257119834, 0.611573994, 0.74059701, 0.278376371, -0.377202988, -0.0363579579, 0.925416648) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
798
					CFrame.new(-1.68029141, 0.390803367, 0.155905366, 0.70961535, 0.692695498, -0.128914997, -0.625963271, 0.703777075, 0.335958213, 0.323444158, -0.157705069, 0.933012843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
799
					CFrame.new(0.693307817, -1.96826017, -0.0605875254, 0.986561239, -0.127662987, -0.101976946, 0.137943029, 0.985269904, 0.101069227, 0.0875720233, -0.113777988, 0.989639223) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
800
					CFrame.new(-0.526552737, -1.81498528, -0.152177691, 0.965925574, 0.0449441113, 0.254888207, -0.066988036, 0.994663239, 0.0784704387, -0.250001162, -0.0928710476, 0.963781357) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
801
				}, .3, false)
802
			end
803
		elseif Torsovelocity < 1 and hit ~= nil then
804
			Anim = "Idle"
805
			if attack == false then
806
				change = 1
807
				PlayAnimationFromTable({
808
					CFrame.new(1.22602091e-006, -0.219458103, 1.46111324e-006, 0.76604414, 0, 0.642788053, 0, 1, 0, -0.642788053, 0, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
809
					CFrame.new(0, 1.49999201, 0, 0.707106233, 0, -0.707107306, 0, 1, 0, 0.707107306, 0, 0.707106233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
810
					CFrame.new(0.571566343, -0.0739164352, -0.639066696, 0.939692855, 0.340718329, -0.0298085809, -0.241844058, 0.600305915, -0.762328327, -0.241844922, 0.723563433, 0.646503866) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
811
					CFrame.new(-0.628383756, -0.12163578, -0.696761668, 0.939692736, -0.342020065, -5.06639481e-007, 0.196173996, 0.538984895, -0.819152653, 0.280166954, 0.769751549, 0.573575616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
812
					CFrame.new(0.624118924, -1.79798961, 0.0678238794, 0.995454907, -0.0383867361, -0.0871553123, 0.0385330059, 0.999257326, -4.09960694e-006, 0.0870907605, -0.00335427374, 0.996194839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
813
					CFrame.new(-0.53866595, -1.82180798, 0.00821807235, 0.977763176, 0.0281341001, 0.207816422, -0.0287620034, 0.999586344, -1.4934686e-007, -0.207730502, -0.00597707182, 0.978167892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
814
				}, .3, false)
815
				FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
816
			end
817
		elseif Torsovelocity > 2 and hit ~= nil then
818
			Anim = "Walk"
819
			if attack == false then
820
				change = 3
821
				PlayAnimationFromTable({
822
					CFrame.new(0, -0.0240751095, -0.146390602, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
823
					CFrame.new(0, 1.49999237, -1.81794167e-006, 1, 0, 0, 0, 0.984807789, -0.173647881, 0, 0.173647881, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
824
					CFrame.new(0.172261134, 0.427689523, -1.09730911, 0.644483984, 0.748984814, -0.153825179, 0.413525045, -0.510645986, -0.753815472, -0.643146515, 0.422211438, -0.638827145) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
825
					CFrame.new(-1.1922102, 0.363029838, -0.448653877, 0.935289383, -0.110854559, -0.33607316, -0.341521561, -0.531564534, -0.775114357, -0.0927196145, 0.839732468, -0.535025835) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
826
					CFrame.new(.5, -1.85 - 0.5 * math.cos(sine / 8) / 2, 0 + 1.8 *  math.sin(sine / 8) / 2) * angles(math.rad(-50 *  math.sin(sine / 8)), math.rad(0), math.rad(0)),
827
					CFrame.new(-.5, -1.85 + 0.5 * math.cos(sine / 8) / 2, 0 - 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(50 *  math.sin(sine / 8)), math.rad(0), math.rad(0)),
828
				}, .3, false)
829
				FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
830
			end
831
		end
832
	end
833
	if 0 < #Effects then
834
		for e = 1, #Effects do
835
			if Effects[e] ~= nil then
836
				local Thing = Effects[e]
837
				if Thing ~= nil then
838
					local Part = Thing[1]
839
					local Mode = Thing[2]
840
					local Delay = Thing[3]
841
					local IncX = Thing[4]
842
					local IncY = Thing[5]
843
					local IncZ = Thing[6]
844
					if Thing[2] == "Shoot" then
845
						local Look = Thing[1]
846
						local hit, pos = rayCast(Thing[4], Look, 15, Character)
847
						local mag = (Thing[4] - pos).magnitude
848
						Thing[9] = Thing[9] + 0.5
849
						Thing[5] = Thing[5] + 0.2
850
						Thing[6] = Thing[6] + 0.2
851
						Effects["Cylinder"].Create(BrickColor.new("Toothpaste"), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), Thing[9], mag * 5, Thing[9], -0.2, 0, -0.2, 0.1)
852
						Thing[4] = Thing[4] + Look * 15
853
						Thing[3] = Thing[3] - 1
854
						if hit ~= nil then
855
							Thing[3] = 0
856
							ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
857
							ref.Anchored = true
858
							ref.CFrame = CFrame.new(pos)
859
							Effects["Sphere"].Create(BrickColor.new("Really black"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
860
							CFuncs["Sound"].Create("rbxassetid://315748949", ref, 1, 1.1)
861
							game:GetService("Debris"):AddItem(ref, 1)
862
						end
863
						if Thing[3] <= 0 then
864
							table.remove(Effects, e)
865
						end
866
					end
867
					do
868
						if Thing[2] == "Shoot2" then
869
							local Look = Thing[1]
870
							local hit, pos = rayCast(Thing[4], Look, 3, Character)
871
							local mag = (Thing[4] - pos).magnitude
872
							Thing[9] = Thing[9] + 0.5
873
							Thing[5] = Thing[5] + 0.2
874
							Thing[6] = Thing[6] + 0.2
875
							Effects["Sphere"].Create(BrickColor.new("Cyan"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
876
							Thing[4] = Thing[4] + Look * 3
877
							Thing[3] = Thing[3] + 5
878
							if hit ~= nil then
879
								Thing[3] = 0
880
								ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Blue"), "Reference", Vector3.new())
881
								ref.Anchored = true
882
								ref.CFrame = CFrame.new(pos)
883
								Effects["Sphere"].Create(BrickColor.new("Green"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
884
								Effects["Sphere"].Create(BrickColor.new("Hot pink"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
885
								Effects["Block"].Create(BrickColor.new("White"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
886
								Effects["Wave"].Create(BrickColor.new("Yellow"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
887
								CFuncs["Sound"].Create("rbxassetid://203691837", ref, 1, .3)
888
								CFuncs["Sound"].Create("rbxassetid://203691885", ref, 1, .9)
889
								CFuncs["Sound"].Create("rbxassetid://184718741", ref, 1, .9)
890
								local e = Instance.new("Explosion", ref)
891
								e.Position = ref.Position
892
								e.BlastRadius = 400
893
								e.DestroyJointRadiusPercent = 20
894
								e.Visible = false
895
								e.ExplosionType = "CratersAndDebris"
896
								game:GetService("Debris"):AddItem(ref, 10)
897
							end
898
							if Thing[3] <= 0 then
899
								table.remove(Effects, e)
900
							end
901
						end
902
						do
903
							do
904
								if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
905
									if Thing[1].Transparency <= 1 then
906
										if Thing[2] == "Block1" then
907
											Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
908
											Mesh = Thing[7]
909
											Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
910
											Thing[1].Transparency = Thing[1].Transparency + Thing[3]
911
										else
912
											if Thing[2] == "Block2" then
913
												Thing[1].CFrame = Thing[1].CFrame
914
												Mesh = Thing[7]
915
												Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
916
												Thing[1].Transparency = Thing[1].Transparency + Thing[3]
917
											else
918
												if Thing[2] == "Block3" then
919
													Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
920
													Mesh = Thing[7]
921
													Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
922
													Thing[1].Transparency = Thing[1].Transparency + Thing[3]
923
												else
924
													if Thing[2] == "Cylinder" then
925
														Mesh = Thing[7]
926
														Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
927
														Thing[1].Transparency = Thing[1].Transparency + Thing[3]
928
													else
929
														if Thing[2] == "Cylinder2" then
930
															Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
931
															Mesh = Thing[7]
932
															Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
933
															Thing[1].Transparency = Thing[1].Transparency + Thing[3]
934
														else
935
															if Thing[2] == "Blood" then
936
																Mesh = Thing[7]
937
																Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
938
																Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
939
																Thing[1].Transparency = Thing[1].Transparency + Thing[3]
940
															else
941
																if Thing[2] == "Elec" then
942
																	Mesh = Thing[10]
943
																	Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
944
																	Thing[1].Transparency = Thing[1].Transparency + Thing[3]
945
																else
946
																	if Thing[2] == "Disappear" then
947
																		Thing[1].Transparency = Thing[1].Transparency + Thing[3]
948
																	end
949
																end
950
															end
951
														end
952
													end
953
												end
954
											end
955
										end
956
									else
957
										Part.Parent = nil
958
										table.remove(Effects, e)
959
									end
960
								end
961
							end
962
						end
963
					end
964
				end
965
			end
966
		end
967
	end
968
end