View difference between Paste ID: 2gYNtgPb and sjChjHRp
SHOW: | | - or go back to the newest paste.
1-
Character = game.Players.LocalPlayer.Character
1+
-- This script has been converted to FE by iPxter
2
3
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5-
	p = game.Players.LocalPlayer
5+
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44-
	s.Volume = 999
44+
			m.Hit = io.Hit
45
		else
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54-
wait(1 / 60)
54+
55
				end
56-
local Player = game.Players.localPlayer
56+
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59-
local mouse = Player:GetMouse()
59+
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local Mouse = Player:GetMouse()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/500000000000000) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86-
Instance.new("ForceField", game.Players.LocalPlayer.Character)
86+
--script.Parent = game:getService("Players").plytalent.PlayerGui
87
Character = owner.Character
88
Head = Character.Head
89
90
CV="Blue"
91
	p = owner
92
	char = p.Character
93
	local txt = Instance.new("BillboardGui", char)
94
	txt.Adornee = char .Head
95
	txt.Name = "_status"
96
	txt.Size = UDim2.new(2, 0, 1.2, 0)
97
	txt.StudsOffset = Vector3.new(-9, 8, 0)
98
	local text = Instance.new("TextLabel", txt)
99
	text.Size = UDim2.new(10, 0, 7, 0)
100
	text.FontSize = "Size24"
101
	text.TextScaled = true
102
	text.TextTransparency = 0
103
	text.BackgroundTransparency = 1 
104
	text.TextTransparency = 0
105
	text.TextStrokeTransparency = 0
106
	text.Font = "Cartoon"
107
	text.TextStrokeColor3 = Color3.new(10,0,0)
108
109
	v=Instance.new("Part")
110
	v.Name = "ColorBrick"
111
	v.Parent=p.Character
112
	v.FormFactor="Symmetric"
113
	v.Anchored=true
114
	v.CanCollide=false
115
	v.BottomSurface="Smooth"
116
	v.TopSurface="Smooth"
117
	v.Size=Vector3.new(10,5,3)
118
	v.Transparency=1
119
	v.CFrame=char.Torso.CFrame
120
	v.BrickColor=BrickColor.new(CV)
121
	v.Transparency=1
122
	text.TextColor3 = Color3.new(10,0,0)
123
	v.Shape="Block"
124
	text.Text = "Drunk guy with a inverted flare "
125
126
	local s = Instance.new("Sound",char)
127
	s.Name = "BGMusic"
128
	s.SoundId = "rbxassetid://916843842"
129
	s.Pitch = 3
130
	s.Volume = 10
131
	s.Looped = true
132
	s.archivable = false
133
	s.Parent = char.Head
134
	wait(0.1)
135
	s:play()
136
	s:stop()
137
138
139
--[[Nocturna_A._Alteriano_Night.Owl.Inc]]--
140
--[[Edited by whenyoudiev3]]--
141
wait(1 / 500)
142
Effects = { }
143
local Player = owner
144
local Character = Player.Character
145
local Humanoid = Character.Humanoid
146
local m = Instance.new('Model', Character)
147
m.Name = "WeaponModel"
148
local LeftArm = Character["Left Arm"]
149
local RightArm = Character["Right Arm"]
150
local LeftLeg = Character["Left Leg"]
151
local RightLeg = Character["Right Leg"]
152-
frame = 1 / 500
152+
153
local Torso = Character.Torso
154
local cam = game.Workspace.CurrentCamera
155
local RootPart = Character.HumanoidRootPart
156
local RootJoint = RootPart.RootJoint
157
local equipped = false
158
local attack = false
159
local Anim = 'Idle'
160
local idle = 0
161
local attacktype = 1
162
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
163
local velocity = RootPart.Velocity.y
164
local sine = 0
165
local change = 1
166
local grabbed = false
167
local cn = CFrame.new
168
local mr = math.rad
169
local angles = CFrame.Angles
170
local ud = UDim2.new
171
local c3 = Color3.new
172
Instance.new("ForceField", owner.Character)
173
174
Humanoid.Animator.Parent = nil
175
Character.Animate.Parent = nil
176
177
local newMotor = function(part0, part1, c0, c1)
178
	local w = Instance.new('Motor', part0)
179
	w.Part0 = part0
180
	w.Part1 = part1
181
	w.C0 = c0
182
	w.C1 = c1
183
	return w
184
end
185
186
function clerp(a, b, t)
187
	return a:lerp(b, t)
188
end
189
190
RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
191
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
192
193
local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) 
194
local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
195
local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
196
local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
197
RootJoint.C1 = CFrame.new(0, 0, 0)
198
RootJoint.C0 = CFrame.new(0, 0, 0)
199
Torso.Neck.C1 = CFrame.new(0, 0, 0)
200
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
201
202
local rarmc1 = RW.C1
203
local larmc1 = LW.C1
204
local rlegc1 = RH.C1
205
local llegc1 = LH.C1
206
207
local resetc1 = false
208
209
function PlayAnimationFromTable(table, speed, bool)
210
	RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) 
211
	Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) 
212
	RW.C0 = clerp(RW.C0, table[3], speed) 
213
	LW.C0 = clerp(LW.C0, table[4], speed) 
214
	RH.C0 = clerp(RH.C0, table[5], speed) 
215
	LH.C0 = clerp(LH.C0, table[6], speed) 
216
	if bool == true then
217
		if resetc1 == false then
218
			resetc1 = true
219
			RootJoint.C1 = RootJoint.C1
220
			Torso.Neck.C1 = Torso.Neck.C1
221
			RW.C1 = rarmc1
222
			LW.C1 = larmc1
223
			RH.C1 = rlegc1
224
			LH.C1 = llegc1
225
		end
226
	end
227
end
228
229
Char = char
230
231
--[[Credits to SazErenos for his Artificial Heartbeat]]--
232
233
ArtificialHB = Instance.new("BindableEvent", script)
234
ArtificialHB.Name = "Heartbeat"
235
236
script:WaitForChild("Heartbeat")
237
238
frame = 1 / 250
239
tf = 0
240
allowframeloss = false
241
tossremainder = false
242
lastframe = tick()
243
script.Heartbeat:Fire()
244
245
game:GetService("RunService").Heartbeat:connect(function(s, p)
246
	tf = tf + s
247
	if tf >= frame then
248
		if allowframeloss then
249
			script.Heartbeat:Fire()
250
			lastframe = tick()
251
		else
252
			for i = 1, math.floor(tf / frame) do
253
				script.Heartbeat:Fire()
254
			end
255
			lastframe = tick()
256
		end
257
		if tossremainder then
258
			tf = 0
259
		else
260
			tf = tf - frame * math.floor(tf / frame)
261
		end
262
	end
263
end)
264
265
function swait(num)
266
	if num == 0 or num == nil then
267
		ArtificialHB.Event:wait()
268
	else
269
		for i = 0, num do
270
			ArtificialHB.Event:wait()
271
		end
272
	end
273
end
274
275
local RbxUtility = LoadLibrary("RbxUtility")
276
local Create = RbxUtility.Create
277
278
function RemoveOutlines(part)
279
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
280
end
281
	
282
CFuncs = {	
283
	["Part"] = {
284
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
285
			local Part = Create("Part"){
286
				Parent = Parent,
287
				Reflectance = Reflectance,
288
				Transparency = Transparency,
289
				CanCollide = false,
290
				Locked = true,
291
				BrickColor = BrickColor.new(tostring(BColor)),
292
				Name = Name,
293
				Size = Size,
294
				Material = Material,
295
			}
296
			RemoveOutlines(Part)
297
			return Part
298
		end;
299
	};
300
	
301
	["Mesh"] = {
302
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
303
			local Msh = Create(Mesh){
304
				Parent = Part,
305
				Offset = OffSet,
306
				Scale = Scale,
307
			}
308
			if Mesh == "SpecialMesh" then
309
				Msh.MeshType = MeshType
310
				Msh.MeshId = MeshId
311
			end
312
			return Msh
313
		end;
314
	};
315
	
316
	["Mesh"] = {
317
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
318
			local Msh = Create(Mesh){
319
				Parent = Part,
320
				Offset = OffSet,
321
				Scale = Scale,
322
			}
323
			if Mesh == "SpecialMesh" then
324
				Msh.MeshType = MeshType
325
				Msh.MeshId = MeshId
326
			end
327
			return Msh
328-
		if v:IsA("Humanoid") and hit.Name ~= Character.Name then
328+
329
	};
330
	
331
	["Weld"] = {
332
		Create = function(Parent, Part0, Part1, C0, C1)
333
			local Weld = Create("Weld"){
334
				Parent = Parent,
335
				Part0 = Part0,
336
				Part1 = Part1,
337
				C0 = C0,
338
				C1 = C1,
339
			}
340
			return Weld
341
		end;
342
	};
343
344
	["Sound"] = {
345
		Create = function(id, par, vol, pit) 
346
			coroutine.resume(coroutine.create(function()
347
				local S = Create("Sound"){
348
					Volume = vol,
349
					Pitch = pit or 1,
350
					SoundId = id,
351
					Parent = par or workspace,
352
				}
353
				Instance.new("DistortionSoundEffect", S).Level = 1
354
				wait() 
355
				S:play() 
356
				game:GetService("Debris"):AddItem(S, 10)
357
			end))
358
		end;
359
	};
360-
				v.Health = v.Health - damage
360+
361
	["ParticleEmitter"] = {
362
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
363
			local fp = Create("ParticleEmitter"){
364
				Parent = Parent,
365
				Color = ColorSequence.new(Color1, Color2),
366
				LightEmission = LightEmission,
367
				Size = Size,
368
				Texture = Texture,
369
				Transparency = Transparency,
370
				ZOffset = ZOffset,
371
				Acceleration = Accel,
372
				Drag = Drag,
373
				LockedToPart = LockedToPart,
374
				VelocityInheritance = VelocityInheritance,
375
				EmissionDirection = EmissionDirection,
376
				Enabled = Enabled,
377
				Lifetime = LifeTime,
378
				Rate = Rate,
379
				Rotation = Rotation,
380
				RotSpeed = RotSpeed,
381
				Speed = Speed,
382
				VelocitySpread = VelocitySpread,
383
			}
384
			return fp
385
		end;
386
	};
387
}
388
389
function rayCast(Position, Direction, Range, Ignore)
390
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
391
end 
392
393
local function GetNearest(obj, distance)
394
	local last, lastx = distance + 1
395
	for i, v in pairs(workspace:GetChildren()) do
396
		if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
397
			local t = v.Torso
398
			local dist = (t.Position - obj.Position).magnitude
399
			if dist <= distance then
400
				if dist < last then
401
					last = dist
402
					lastx = v
403
				end
404
			end
405
		end
406
	end
407
	return lastx
408
end
409
410
--[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
411
412
function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
413
	for i, v in pairs(hit:GetChildren()) do 
414
		if v:IsA("Humanoid") and hit.Parent.Name ~= Character.Name and hit.Parent.name ~= "plytalent"  and v:FindFirstChildOfClass("Humanoid")then
415
			local find = v:FindFirstChild("DebounceHit")
416
			if not find then
417
				if v.Parent:findFirstChild("Head") then
418
					local BillG = Create("BillboardGui"){
419
						Parent = v.Parent.Head,
420
						Size = UDim2.new(1, 0, 1, 0),
421
						Adornee = v.Parent.Head,
422
						StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
423
					}
424
					local TL = Create("TextLabel"){
425
						Parent = BillG,
426
						Size = UDim2.new(3, 3, 3, 3),
427
						BackgroundTransparency = 1,
428
						Text = tostring(damage).."-",
429
						TextColor3 = Color1.Color,
430
						TextStrokeColor3 = Color2.Color,
431
						TextStrokeTransparency = 0,
432
						TextXAlignment = Enum.TextXAlignment.Center,
433
						TextYAlignment = Enum.TextYAlignment.Center,
434
						FontSize = Enum.FontSize.Size18,
435
						Font = "ArialBold",
436
					}
437
					coroutine.resume(coroutine.create(function()
438
						swait(1)
439
						for i = 0, 1, .1 do
440
							swait(.1)
441
							BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
442
						end
443
						BillG:Destroy()
444
					end))
445
				end
446
				v.Health = 0
447
				local bool = Create("BoolValue"){
448
					Parent = v,
449
					Name = "DebounceHit",
450
				}
451
				if HSound ~= nil and HPitch ~= nil then
452
					CFuncs["Sound"].Create(HSound, hit, 1, HPitch) 
453
				end
454
				game:GetService("Debris"):AddItem(bool, cooldown)
455
			end
456
		end
457
	end
458
end
459
460
function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
461
	for _, c in pairs(workspace:children()) do
462
		local hum = c:findFirstChild("Humanoid")
463
		if hum ~= nil then
464
			local head = c:findFirstChild("Torso")
465
			if head ~= nil then
466
				local targ = head.Position - Part.Position
467
				local mag = targ.magnitude
468
				if mag <= magni and c.Name ~= Player.Name then 
469
					Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
470
				end
471
			end
472
		end
473
	end
474
end
475
476
Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(-0.399999946, 0.899999976, -0.400000095))
477
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))
478
FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
479
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))
480
Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
481
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))
482
Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Part", Vector3.new(-0.399999946, 0.299999952, -0.400000095))
483
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))
484
CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://443983595", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00700000007, 0.003000010))
485
Part.Mesh.TextureId = "rbxassetid://443983604"
486
Part.Mesh.Scale = Vector3.new(0.017, 0.017, 0.017)
487
488
EffectModel = Instance.new("Model", Character)
489
EffectModel.Name = "Effects"
490
491
Effects = {
492
	["Block"] = {
493
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
494
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
495
			prt.Anchored = true
496
			prt.CFrame = cframe
497
			local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
498
			game:GetService("Debris"):AddItem(prt, 10)
499
			if Type == 1 or Type == nil then
500
				table.insert(Effects, {
501
					prt,
502
					"Block1",
503
					delay,
504
					x3,
505
					y3,
506
					z3,
507
					msh
508
				})
509
			elseif Type == 2 then
510
				table.insert(Effects, {
511
					prt,
512
					"Block2",
513
					delay,
514
					x3,
515
					y3,
516
					z3,
517
					msh
518
				})
519
			end
520
		end;
521
	};
522
	
523
	["Cylinder"] = {
524
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
525
			local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
526
			prt.Anchored = true
527
			prt.CFrame = cframe
528
			local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
529
			game:GetService("Debris"):AddItem(prt, 2)
530
			Effects[#Effects + 1] = {
531
				prt,
532
				"Cylinder",
533
				delay,
534
				x3,
535
				y3,
536
				z3
537
			}
538
		end;
539
	};
540
	
541
	["Sphere"] = {
542
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
543
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
544
			prt.Anchored = true
545
			prt.CFrame = cframe
546
			local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
547
			game:GetService("Debris"):AddItem(prt, 10)
548
			table.insert(Effects, {
549
				prt,
550
				"Cylinder",
551
				delay,
552
				x3,
553
				y3,
554
				z3,
555
				msh
556
			})
557
		end;
558
	};
559
	
560
	["Elec"] = {
561
		Create = function(cff, x, y, z)
562
			local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
563
			prt.Anchored = true
564
			prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
565
			prt.CFrame = CFrame.new(prt.Position)
566
			game:GetService("Debris"):AddItem(prt, 2)
567
			local xval = math.random() / 2
568
			local yval = math.random() / 2
569
			local zval = math.random() / 2
570
			local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
571
			table.insert(Effects, {
572
				prt,
573
				"Elec",
574
				0.1,
575
				x,
576
				y,
577
				z,
578
				xval,
579
				yval,
580
				zval
581
			})
582-
			CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
582+
583-
			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), 
583+
584-
			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), 
584+
585-
			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), 
585+
586-
			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), 
586+
587-
			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), 
587+
588-
		}, .3, false)
588+
589
			prt.Anchored = true
590
			prt.CFrame = cframe
591
			local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
592
			game:GetService("Debris"):AddItem(prt, 10)
593
			table.insert(Effects, {
594
				prt,
595
				"Cylinder",
596
				delay,
597
				x3,
598
				y3,
599
				z3,
600
				msh
601
			})
602
		end;
603
	};
604
605
606
	["Wave"] = {
607
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
608
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
609
			prt.Anchored = true
610
			prt.CFrame = cframe
611
			local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
612
			game:GetService("Debris"):AddItem(prt, 10)
613
			table.insert(Effects, {
614
				prt,
615
				"Cylinder",
616
				delay,
617
				x3,
618
				y3,
619
				z3,
620
				msh
621
			})
622
		end;
623
	};
624
625
	["Break"] = {
626
		Create = function(brickcolor, cframe, x1, y1, z1)
627
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
628
			prt.Anchored = true
629
			prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
630
			local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
631
			local num = math.random(10, 50) / 1000
632
			game:GetService("Debris"):AddItem(prt, 10)
633
			table.insert(Effects, {
634
				prt,
635
				"Shatter",
636
				num,
637
				prt.CFrame,
638
				math.random() - math.random(),
639
				0,
640
				math.random(50, 100) / 100
641
			})
642
		end;
643
	};
644
}
645
--	local s = Instance.new("Sound",char)
646
--	s.Name = "BGMusic"
647
--	s.SoundId = "rbxassetid://916843842"
648
--	s.Pitch = 3
649
--	s.Volume = 10
650
--	s.Looped = true
651-
         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),
651+
--	s.archivable = false
652-
         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),
652+
--	s.Parent = char.Head
653-
         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),
653+
--	wait(0.1)
654-
         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),
654+
--	s:play()
655-
         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),
655+
656-
         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),
656+
657-
		}, .35, false)
657+
658
	table.insert(Effects, {
659
		MouseLook.lookVector,
660
		"Shoot2",
661
		50,
662
		orgpos,
663
		5,
664
		7,
665
		0,
666
		1,
667
		2
668-
			CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
668+
669-
			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), 
669+
670-
			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), 
670+
671-
			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), 
671+
672-
			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), 
672+
673-
			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), 
673+
674-
		}, .3, false)
674+
675
		swait()
676
--		PlayAnimationFromTable({
677
--			CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
678
--			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), 
679
--			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), 
680
--			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), 
681
--			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), 
682
--			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), 
683
--		}, .3, false)
684
		FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
685-
			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), 
685+
686-
			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), 
686+
687-
			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), 
687+
688-
			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), 
688+
689-
			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), 
689+
690-
			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), 
690+
691-
		}, .6, false)
691+
692
	attack = true
693
	CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8)
694
Shoot2(LeftArm.Position)
695
Shoot2(RightArm.Position)
696
Shoot2(RightLeg.Position)
697
Shoot2(LeftLeg.Position)
698-
			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), 
698+
699-
			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), 
699+
700-
			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), 
700+
701-
			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), 
701+
702-
			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), 
702+
703-
			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), 
703+
704-
		}, .2, false)
704+
705
        attack = true
706
        CFuncs["Sound"].Create("rbxassetid://813670691", Torso, .1, 2.8)
707
	for i = 0, 1, 0.15 do
708
		swait()
709
		PlayAnimationFromTable({
710
			CFrame.new(-0.0325974114, -4.05311584e-006, 0.110728048, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
711-
			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), 
711+
712-
			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), 
712+
713-
			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), 
713+
714-
			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), 
714+
715-
			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), 
715+
716-
			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), 
716+
717-
		}, .3, false)
717+
718
wait(3)
719
Shoot2(Barrel.Position)
720
Shoot2(Barrel.Position)
721
Shoot2(Handle.Position)
722
Shoot2(Handle.Position)
723-
			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), 
723+
724-
			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), 
724+
725-
			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), 
725+
726-
			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), 
726+
727-
			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), 
727+
728-
			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), 
728+
729-
		}, .3, false)
729+
730
Shoot2(FakeHandle.Position)
731
Shoot2(Barrel.Position)
732
Shoot2(Barrel.Position)
733
Shoot2(Handle.Position)
734
Shoot2(Handle.Position)
735
Shoot2(FakeHandle.Position)
736
Shoot2(FakeHandle.Position)
737
Shoot2(Barrel.Position)
738
Shoot2(Barrel.Position)
739
Shoot2(Handle.Position)
740
Shoot2(Handle.Position)
741
Shoot2(FakeHandle.Position)
742
Shoot2(FakeHandle.Position)
743
	for i = 0, 1, 0.15 do
744
		swait()
745
--		PlayAnimationFromTable({
746
--         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),
747
--         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),
748-
        elseif attack == false and k == 'r' then
748+
--         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),
749
--         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),
750
--         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),
751
--         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),
752
--		}, .35, false)
753
end
754
attack = false
755
end
756
757
function attackone()
758
	attack = true
759
	CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8) 
760
	for i = 0, 1, 0.025 do
761
		swait()
762
--		PlayAnimationFromTable({
763
--			CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
764
--			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), 
765
--			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), 
766
--			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), 
767
--			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), 
768
--			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), 
769
--		}, .3, false)
770-
				PlayAnimationFromTable({
770+
771-
					CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
771+
772-
					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), 
772+
773-
					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), 
773+
774-
					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), 
774+
775-
					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), 
775+
776-
					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), 
776+
777-
				}, .3, false)
777+
778
		RootPart.Velocity = RootPart.CFrame.lookVector * -50
779
--		PlayAnimationFromTable({
780
--			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), 
781
--			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), 
782-
				PlayAnimationFromTable({
782+
--			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), 
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), 
783+
--			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), 
784-
					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), 
784+
--			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), 
785-
					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), 
785+
--			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), 
786-
					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), 
786+
--		}, .6, false)
787-
					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), 
787+
788-
					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), 
788+
789-
				}, .3, false)
789+
790
		swait()
791
		RootPart.Velocity = RootPart.CFrame.lookVector * -100
792
--		PlayAnimationFromTable({
793
--			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), 
794
--			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), 
795-
				PlayAnimationFromTable({
795+
--			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), 
796-
					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), 
796+
--			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), 
797-
					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), 
797+
--			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), 
798-
					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), 
798+
--			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), 
799-
					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), 
799+
--		}, .2, false)
800-
					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), 
800+
801-
					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), 
801+
802-
				}, .3, false)
802+
803
		swait()
804
		RootPart.Velocity = RootPart.CFrame.lookVector * -50
805
--		PlayAnimationFromTable({
806
--			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), 
807
--			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), 
808
--			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), 
809-
				PlayAnimationFromTable({
809+
--			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), 
810-
					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), 
810+
--			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), 
811-
					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), 
811+
--			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), 
812-
					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), 
812+
--		}, .3, false)
813-
					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), 
813+
814-
					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)),
814+
815-
					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)),
815+
816-
				}, .3, false)
816+
817
--		PlayAnimationFromTable({
818
--			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), 
819
--			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), 
820
--			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), 
821
--			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), 
822
--			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), 
823
--			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), 
824
--		}, .3, false)
825
	end
826
	attack = false
827
end
828
829
--[[Attacks]]--
830
831
mouse.Button1Down:connect(function()
832
	if attack == false and attacktype == 1 then
833
		attackone()
834
	end
835
end)
836
837
mouse.KeyDown:connect(function(k)
838
	k = k:lower()
839
	if attack == false and k == 'q' then
840
	  bulletstorm()
841
	elseif attack == false and k == 'e' then
842
          overload()
843
	elseif attack == false and k == 'r' then
844
          overcharge()
845
	elseif attack == false and k == "f" then
846
		s.volume = 10
847
	elseif attack == false and k == "g" then
848
		s.volume = 0
849
      end
850
end)
851
852
while true do
853
	swait()
854
	for i, v in pairs(Character:GetChildren()) do
855
		if v:IsA("Part") then
856
			v.Material = "SmoothPlastic"
857
		elseif v:IsA("Accessory") then
858
			v:WaitForChild("Handle").Material = "SmoothPlastic"
859
		end
860
	end
861
	Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
862
	velocity = RootPart.Velocity.y
863
	sine = sine + change
864
	local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
865
	if equipped == true or equipped == false then
866
		if RootPart.Velocity.y > 1 and hit == nil then 
867
			Anim = "Jump"
868
			if attack == false then
869
--				PlayAnimationFromTable({
870
--					CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
871-
								Effects["Sphere"].Create(BrickColor.new("Really red"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
871+
--					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), 
872-
								Effects["Sphere"].Create(BrickColor.new("Bright red"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
872+
--					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), 
873
--					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), 
874-
								Effects["Wave"].Create(BrickColor.new("Bright red"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
874+
--					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), 
875
--					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), 
876
--				}, .3, false)
877
			end
878
		elseif RootPart.Velocity.y < -60 and hit == nil then 
879
			Anim = "Fall"
880-
								e.BlastRadius = 400
880+
881
--				PlayAnimationFromTable({
882
--					CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
883
--					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), 
884
--					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), 
885
--					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), 
886
--					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), 
887
--					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), 
888
--				}, .3, false)
889
			end
890
		elseif Torsovelocity < 1 and hit ~= nil then
891
			Anim = "Idle"
892
			if attack == false then
893
				change = 1
894
--				PlayAnimationFromTable({
895
--					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), 
896
--					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), 
897
--					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), 
898
--					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), 
899
--					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), 
900
--					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), 
901
--				}, .3, false)
902
				FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
903
			end
904
		elseif Torsovelocity > 2 and hit ~= nil then
905
			Anim = "Walk"
906
			if attack == false then
907
				change = 3
908
--				PlayAnimationFromTable({
909
--					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), 
910
--					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), 
911
--					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), 
912
--					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), 
913
--					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)),
914
--					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)),
915
--				}, .3, false)
916
				FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
917
			end
918
		end
919
	end
920
	if 0 < #Effects then
921
		for e = 1, #Effects do
922
			if Effects[e] ~= nil then
923
				local Thing = Effects[e]
924
				if Thing ~= nil then
925
					local Part = Thing[1]
926
					local Mode = Thing[2]
927
					local Delay = Thing[3]
928
					local IncX = Thing[4]
929
					local IncY = Thing[5]
930
					local IncZ = Thing[6]
931
					if Thing[2] == "Shoot" then
932
						local Look = Thing[1]
933
						local hit, pos = rayCast(Thing[4], Look, 15, Character)
934
						local mag = (Thing[4] - pos).magnitude
935
						Thing[9] = Thing[9] + 0.5
936
						Thing[5] = Thing[5] + 0.2
937
						Thing[6] = Thing[6] + 0.2
938
						Effects["Cylinder"].Create(BrickColor.new("Really red"), 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)
939
						Thing[4] = Thing[4] + Look * 15
940
						Thing[3] = Thing[3] - 1
941
						if hit ~= nil then
942
							Thing[3] = 0
943
							ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
944
							ref.Anchored = true
945
							ref.CFrame = CFrame.new(pos)
946
							Effects["Sphere"].Create(BrickColor.new("Bright red"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
947
							CFuncs["Sound"].Create("rbxassetid://315748949", ref, 1, 1.1)
948
							game:GetService("Debris"):AddItem(ref, 1)
949
						end
950
						if Thing[3] <= 0 then
951
							table.remove(Effects, e)
952
						end
953
					end
954
					do
955
						if Thing[2] == "Shoot2" then
956
							local Look = Thing[1]
957
							local hit, pos = rayCast(Thing[4], Look, 3, Character)
958
							local mag = (Thing[4] - pos).magnitude
959
							Thing[9] = Thing[9] + 0.5
960
							Thing[5] = Thing[5] + 0.2
961
							Thing[6] = Thing[6] + 0.2
962
							Effects["Sphere"].Create(BrickColor.new("Bright red"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
963
							Thing[4] = Thing[4] + Look * 3
964
							Thing[3] = Thing[3] + 5
965
							if hit ~= nil then
966
								Thing[3] = 0
967
								ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
968
								ref.Anchored = true
969
								ref.CFrame = CFrame.new(pos)
970
--								Effects["Sphere"].Create(BrickColor.new("Really red"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
971
--								Effects["Sphere"].Create(BrickColor.new("Bright red"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
972
								Effects["Block"].Create(BrickColor.new("Bright red"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
973
--								Effects["Wave"].Create(BrickColor.new("Bright red"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
974
								CFuncs["Sound"].Create("rbxassetid://203691837", ref, 1, .3)
975
								CFuncs["Sound"].Create("rbxassetid://203691885", ref, 1, .9)
976
								CFuncs["Sound"].Create("rbxassetid://184718741", ref, 1, .9)
977
								local e = Instance.new("Explosion", ref)
978
								e.Position = ref.Position
979
								e.BlastRadius = math.huge
980
								e.DestroyJointRadiusPercent = 20
981
								e.Visible = false
982
								e.ExplosionType = "CratersAndDebris"
983
								game:GetService("Debris"):AddItem(ref, 10)
984
							end
985
							if Thing[3] <= 0 then
986
								table.remove(Effects, e)
987
							end
988
						end
989
						do
990
							do
991
								if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
992
									if Thing[1].Transparency <= 1 then
993
										if Thing[2] == "Block1" then
994
											Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
995
											Mesh = Thing[7]
996
											Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
997
											Thing[1].Transparency = Thing[1].Transparency + Thing[3]
998
										else
999
											if Thing[2] == "Block2" then
1000
												Thing[1].CFrame = Thing[1].CFrame
1001
												Mesh = Thing[7]
1002
												Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1003
												Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1004
											else
1005
												if Thing[2] == "Block3" then
1006
													Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
1007
													Mesh = Thing[7]
1008
													Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1009
													Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1010
												else
1011
													if Thing[2] == "Cylinder" then
1012
														Mesh = Thing[7]
1013
														Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1014
														Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1015
													else
1016
														if Thing[2] == "Cylinder2" then
1017
															Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
1018
															Mesh = Thing[7]
1019
															Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1020
															Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1021
														else
1022
															if Thing[2] == "Blood" then
1023
																Mesh = Thing[7]
1024
																Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
1025
																Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1026
																Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1027
															else
1028
																if Thing[2] == "Elec" then
1029
																	Mesh = Thing[10]
1030
																	Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1031
																	Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1032
																else
1033
																	if Thing[2] == "Disappear" then
1034
																		Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1035
																	end
1036
																end
1037
															end
1038
														end
1039
													end
1040
												end
1041
											end
1042
										end
1043
									else
1044
										Part.Parent = nil
1045
										table.remove(Effects, e)
1046
									end
1047
								end
1048
							end
1049
						end
1050
					end
1051
				end
1052
			end
1053
		end
1054
	end
1055
end