View difference between Paste ID: m0FGpNwB and LsnyNcVQ
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Your fucking script is assholic use h/ dumbass") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
do print("Execute the c00l Kidd stuff")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
6
--[[Nocturna_A._Alteriano_Night.Owl.Inc]]--
7
wait(1 / 60)
8
Effects = { }
9
local Player = game.Players.localPlayer
10
local Character = Player.Character
11
local Humanoid = Character.Humanoid
12
local mouse = Player:GetMouse()
13
local m = Instance.new('Model', Character)
14
m.Name = "WeaponModel"
15
local LeftArm = Character["Left Arm"]
16
local RightArm = Character["Right Arm"]
17
local LeftLeg = Character["Left Leg"]
18
local RightLeg = Character["Right Leg"]
19
local Head = Character.Head
20
local Torso = Character.Torso
21
local cam = game.Workspace.CurrentCamera
22
local RootPart = Character.HumanoidRootPart
23
local RootJoint = RootPart.RootJoint
24
local equipped = false
25
local attack = false
26
local Anim = 'Idle'
27
local idle = 0
28
local attacktype = 1
29
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
30
local velocity = RootPart.Velocity.y
31
local sine = 0
32
local change = 1
33
local grabbed = false
34
local cn = CFrame.new
35
local mr = math.rad
36
local angles = CFrame.Angles
37
local ud = UDim2.new
38
local c3 = Color3.new
39
40
Humanoid.Animator.Parent = nil
41
Character.Animate.Parent = nil
42
43
local newMotor = function(part0, part1, c0, c1)
44
	local w = Instance.new('Motor', part0)
45
	w.Part0 = part0
46
	w.Part1 = part1
47
	w.C0 = c0
48
	w.C1 = c1
49
	return w
50
end
51
52
function clerp(a, b, t)
53
	return a:lerp(b, t)
54
end
55
56
RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
57
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
58
59
local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) 
60
local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
61
local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
62
local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
63
RootJoint.C1 = CFrame.new(0, 0, 0)
64
RootJoint.C0 = CFrame.new(0, 0, 0)
65
Torso.Neck.C1 = CFrame.new(0, 0, 0)
66
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
67
68
local rarmc1 = RW.C1
69
local larmc1 = LW.C1
70
local rlegc1 = RH.C1
71
local llegc1 = LH.C1
72
73
local resetc1 = false
74
75
function PlayAnimationFromTable(table, speed, bool)
76
	RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) 
77
	Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) 
78
	RW.C0 = clerp(RW.C0, table[3], speed) 
79
	LW.C0 = clerp(LW.C0, table[4], speed) 
80
	RH.C0 = clerp(RH.C0, table[5], speed) 
81
	LH.C0 = clerp(LH.C0, table[6], speed) 
82
	if bool == true then
83
		if resetc1 == false then
84
			resetc1 = true
85
			RootJoint.C1 = RootJoint.C1
86
			Torso.Neck.C1 = Torso.Neck.C1
87
			RW.C1 = rarmc1
88
			LW.C1 = larmc1
89
			RH.C1 = rlegc1
90
			LH.C1 = llegc1
91
		end
92
	end
93
end
94
95
--[[Credits to SazErenos for his Artificial Heartbeat]]--
96
97
ArtificialHB = Instance.new("BindableEvent", script)
98
ArtificialHB.Name = "Heartbeat"
99
100
script:WaitForChild("Heartbeat")
101
102
frame = 1 / 30
103
tf = 0
104
allowframeloss = false
105
tossremainder = false
106
lastframe = tick()
107
script.Heartbeat:Fire()
108
109
game:GetService("RunService").Heartbeat:connect(function(s, p)
110
	tf = tf + s
111
	if tf >= frame then
112
		if allowframeloss then
113
			script.Heartbeat:Fire()
114
			lastframe = tick()
115
		else
116
			for i = 1, math.floor(tf / frame) do
117
				script.Heartbeat:Fire()
118
			end
119
			lastframe = tick()
120
		end
121
		if tossremainder then
122
			tf = 0
123
		else
124
			tf = tf - frame * math.floor(tf / frame)
125
		end
126
	end
127
end)
128
129
function swait(num)
130
	if num == 0 or num == nil then
131
		ArtificialHB.Event:wait()
132
	else
133
		for i = 0, num do
134
			ArtificialHB.Event:wait()
135
		end
136
	end
137
end
138
139
local RbxUtility = LoadLibrary("RbxUtility")
140
local Create = RbxUtility.Create
141
142
function RemoveOutlines(part)
143
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
144
end
145
	
146
CFuncs = {	
147
	["Part"] = {
148
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
149
			local Part = Create("Part"){
150
				Parent = Parent,
151
				Reflectance = Reflectance,
152
				Transparency = Transparency,
153
				CanCollide = false,
154
				Locked = true,
155
				BrickColor = BrickColor.new(tostring(BColor)),
156
				Name = Name,
157
				Size = Size,
158
				Material = Material,
159
			}
160
			RemoveOutlines(Part)
161
			return Part
162
		end;
163
	};
164
	
165
	["Mesh"] = {
166
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
167
			local Msh = Create(Mesh){
168
				Parent = Part,
169
				Offset = OffSet,
170
				Scale = Scale,
171
			}
172
			if Mesh == "SpecialMesh" then
173
				Msh.MeshType = MeshType
174
				Msh.MeshId = MeshId
175
			end
176
			return Msh
177
		end;
178
	};
179
	
180
	["Mesh"] = {
181
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
182
			local Msh = Create(Mesh){
183
				Parent = Part,
184
				Offset = OffSet,
185
				Scale = Scale,
186
			}
187
			if Mesh == "SpecialMesh" then
188
				Msh.MeshType = MeshType
189
				Msh.MeshId = MeshId
190
			end
191
			return Msh
192
		end;
193
	};
194
	
195
	["Weld"] = {
196
		Create = function(Parent, Part0, Part1, C0, C1)
197
			local Weld = Create("Weld"){
198
				Parent = Parent,
199
				Part0 = Part0,
200
				Part1 = Part1,
201
				C0 = C0,
202
				C1 = C1,
203
			}
204
			return Weld
205
		end;
206
	};
207
208
	["Sound"] = {
209
		Create = function(id, par, vol, pit) 
210
			coroutine.resume(coroutine.create(function()
211
				local S = Create("Sound"){
212
					Volume = vol,
213
					Pitch = pit or 1,
214
					SoundId = id,
215
					Parent = par or workspace,
216
				}
217
				Instance.new("DistortionSoundEffect", S).Level = 1
218
				wait() 
219
				S:play() 
220
				game:GetService("Debris"):AddItem(S, 10)
221
			end))
222
		end;
223
	};
224
	
225
	["ParticleEmitter"] = {
226
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
227
			local fp = Create("ParticleEmitter"){
228
				Parent = Parent,
229
				Color = ColorSequence.new(Color1, Color2),
230
				LightEmission = LightEmission,
231
				Size = Size,
232
				Texture = Texture,
233
				Transparency = Transparency,
234
				ZOffset = ZOffset,
235
				Acceleration = Accel,
236
				Drag = Drag,
237
				LockedToPart = LockedToPart,
238
				VelocityInheritance = VelocityInheritance,
239
				EmissionDirection = EmissionDirection,
240
				Enabled = Enabled,
241
				Lifetime = LifeTime,
242
				Rate = Rate,
243
				Rotation = Rotation,
244
				RotSpeed = RotSpeed,
245
				Speed = Speed,
246
				VelocitySpread = VelocitySpread,
247
			}
248
			return fp
249
		end;
250
	};
251
}
252
253
function rayCast(Position, Direction, Range, Ignore)
254
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
255
end 
256
257
local function GetNearest(obj, distance)
258
	local last, lastx = distance + 1
259
	for i, v in pairs(workspace:GetChildren()) do
260
		if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
261
			local t = v.Torso
262
			local dist = (t.Position - obj.Position).magnitude
263
			if dist <= distance then
264
				if dist < last then
265
					last = dist
266
					lastx = v
267
				end
268
			end
269
		end
270
	end
271
	return lastx
272
end
273
274
--[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
275
276
function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
277
	for i, v in pairs(hit:GetChildren()) do 
278
		if v:IsA("Humanoid") and hit.Name ~= Character.Name then
279
			local find = v:FindFirstChild("DebounceHit")
280
			if not find then
281
				if v.Parent:findFirstChild("Head") then
282
					local BillG = Create("BillboardGui"){
283
						Parent = v.Parent.Head,
284
						Size = UDim2.new(1, 0, 1, 0),
285
						Adornee = v.Parent.Head,
286
						StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
287
					}
288
					local TL = Create("TextLabel"){
289
						Parent = BillG,
290
						Size = UDim2.new(3, 3, 3, 3),
291
						BackgroundTransparency = 1,
292
						Text = tostring(damage).."-",
293
						TextColor3 = Color1.Color,
294
						TextStrokeColor3 = Color2.Color,
295
						TextStrokeTransparency = 0,
296
						TextXAlignment = Enum.TextXAlignment.Center,
297
						TextYAlignment = Enum.TextYAlignment.Center,
298
						FontSize = Enum.FontSize.Size18,
299
						Font = "ArialBold",
300
					}
301
					coroutine.resume(coroutine.create(function()
302
						swait(1)
303
						for i = 0, 1, .1 do
304
							swait(.1)
305
							BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
306
						end
307
						BillG:Destroy()
308
					end))
309
				end
310
				v.Health = v.Health - damage
311
				local bool = Create("BoolValue"){
312
					Parent = v,
313
					Name = "DebounceHit",
314
				}
315
				if HSound ~= nil and HPitch ~= nil then
316
					CFuncs["Sound"].Create(HSound, hit, 1, HPitch) 
317
				end
318
				game:GetService("Debris"):AddItem(bool, cooldown)
319
			end
320
		end
321
	end
322
end
323
324
function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
325
	for _, c in pairs(workspace:children()) do
326
		local hum = c:findFirstChild("Humanoid")
327
		if hum ~= nil then
328
			local head = c:findFirstChild("Torso")
329
			if head ~= nil then
330
				local targ = head.Position - Part.Position
331
				local mag = targ.magnitude
332
				if mag <= magni and c.Name ~= Player.Name then 
333
					Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
334
				end
335
			end
336
		end
337
	end
338
end
339
340
Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
341
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))
342
FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
343
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))
344
Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
345
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))
346
Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Part", Vector3.new(0.399999946, 0.299999952, 0.400000095))
347
PartWeld = CFuncs["Weld"].Create(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.300000191, -0.400000095, 1, 0, 0, 0, 1, 0, 0, 0, 1))
348
CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://435840330", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00200000009, 0.00200000009))
349
Part.Mesh.TextureId = "rbxassetid://435840335"
350
351
EffectModel = Instance.new("Model", Character)
352
EffectModel.Name = "Effects"
353
354
Effects = {
355
	["Block"] = {
356
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
357
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
358
			prt.Anchored = true
359
			prt.CFrame = cframe
360
			local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
361
			game:GetService("Debris"):AddItem(prt, 10)
362
			if Type == 1 or Type == nil then
363
				table.insert(Effects, {
364
					prt,
365
					"Block1",
366
					delay,
367
					x3,
368
					y3,
369
					z3,
370
					msh
371
				})
372
			elseif Type == 2 then
373
				table.insert(Effects, {
374
					prt,
375
					"Block2",
376
					delay,
377
					x3,
378
					y3,
379
					z3,
380
					msh
381
				})
382
			end
383
		end;
384
	};
385
	
386
	["Cylinder"] = {
387
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
388
			local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
389
			prt.Anchored = true
390
			prt.CFrame = cframe
391
			local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
392
			game:GetService("Debris"):AddItem(prt, 2)
393
			Effects[#Effects + 1] = {
394
				prt,
395
				"Cylinder",
396
				delay,
397
				x3,
398
				y3,
399
				z3
400
			}
401
		end;
402
	};
403
	
404
	["Sphere"] = {
405
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
406
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
407
			prt.Anchored = true
408
			prt.CFrame = cframe
409
			local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
410
			game:GetService("Debris"):AddItem(prt, 10)
411
			table.insert(Effects, {
412
				prt,
413
				"Cylinder",
414
				delay,
415
				x3,
416
				y3,
417
				z3,
418
				msh
419
			})
420
		end;
421
	};
422
	
423
	["Elec"] = {
424
		Create = function(cff, x, y, z)
425
			local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
426
			prt.Anchored = true
427
			prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
428
			prt.CFrame = CFrame.new(prt.Position)
429
			game:GetService("Debris"):AddItem(prt, 2)
430
			local xval = math.random() / 2
431
			local yval = math.random() / 2
432
			local zval = math.random() / 2
433
			local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
434
			table.insert(Effects, {
435
				prt,
436
				"Elec",
437
				0.1,
438
				x,
439
				y,
440
				z,
441
				xval,
442
				yval,
443
				zval
444
			})
445
		end;
446
447
	};
448
	
449
	["Ring"] = {
450
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
451
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
452
			prt.Anchored = true
453
			prt.CFrame = cframe
454
			local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
455
			game:GetService("Debris"):AddItem(prt, 10)
456
			table.insert(Effects, {
457
				prt,
458
				"Cylinder",
459
				delay,
460
				x3,
461
				y3,
462
				z3,
463
				msh
464
			})
465
		end;
466
	};
467
468
469
	["Wave"] = {
470
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
471
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
472
			prt.Anchored = true
473
			prt.CFrame = cframe
474
			local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
475
			game:GetService("Debris"):AddItem(prt, 10)
476
			table.insert(Effects, {
477
				prt,
478
				"Cylinder",
479
				delay,
480
				x3,
481
				y3,
482
				z3,
483
				msh
484
			})
485
		end;
486
	};
487
488
	["Break"] = {
489
		Create = function(brickcolor, cframe, x1, y1, z1)
490
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
491
			prt.Anchored = true
492
			prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
493
			local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
494
			local num = math.random(10, 50) / 1000
495
			game:GetService("Debris"):AddItem(prt, 10)
496
			table.insert(Effects, {
497
				prt,
498
				"Shatter",
499
				num,
500
				prt.CFrame,
501
				math.random() - math.random(),
502
				0,
503
				math.random(50, 100) / 100
504
			})
505
		end;
506
	};
507
}
508
509
Shoot2 = function(orgpos)
510
	local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
511
	Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
512
	table.insert(Effects, {
513
		MouseLook.lookVector,
514
		"Shoot2",
515
		50,
516
		orgpos,
517
		5,
518
		7,
519
		0,
520
		1,
521
		2
522
	})
523
end
524
525
function attackone()
526
	attack = true
527
	CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8) 
528
	for i = 0, 1, 0.025 do
529
		swait()
530
		PlayAnimationFromTable({
531
			CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
532
			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), 
533
			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), 
534
			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), 
535
			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), 
536
			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), 
537
		}, .3, false)
538
		FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
539
	end
540
	CFuncs["Sound"].Create("rbxassetid://203691837", Barrel, .01, .3)
541
	CFuncs["Sound"].Create("rbxassetid://131384028", Barrel, .01, .9)
542
	CFuncs["Sound"].Create("rbxassetid://184718741", Barrel, .05, .9)
543
	Shoot2(Barrel.Position)
544
	for i = 0, 1, 0.15 do
545
		swait()
546
		RootPart.Velocity = RootPart.CFrame.lookVector * -50
547
		PlayAnimationFromTable({
548
			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), 
549
			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), 
550
			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), 
551
			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), 
552
			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), 
553
			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), 
554
		}, .6, false)
555
		FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
556
	end
557
	for i = 0, 1, 0.15 do
558
		swait()
559
		RootPart.Velocity = RootPart.CFrame.lookVector * -100
560
		PlayAnimationFromTable({
561
			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), 
562
			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), 
563
			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), 
564
			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), 
565
			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), 
566
			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), 
567
		}, .2, false)
568
		FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
569
	end
570
	for i = 0, 1, 0.05 do
571
		swait()
572
		RootPart.Velocity = RootPart.CFrame.lookVector * -50
573
		PlayAnimationFromTable({
574
			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), 
575
			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), 
576
			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), 
577
			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), 
578
			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), 
579
			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), 
580
		}, .3, false)
581
		FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3)
582
	end
583
	for i = 0, 1, 0.13 do
584
		swait()
585
		PlayAnimationFromTable({
586
			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), 
587
			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), 
588
			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), 
589
			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), 
590
			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), 
591
			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), 
592
		}, .3, false)
593
	end
594
	attack = false
595
end
596
597
--[[Attacks]]--
598
599
mouse.Button1Down:connect(function()
600
	if attack == false and attacktype == 1 then
601
		attackone()
602
	end
603
end)
604
605
mouse.KeyDown:connect(function(k)
606
	k = k:lower()
607
	if attack == false and k == '' then
608
	
609
	end
610
end)
611
612
while true do
613
	swait()
614
	for i, v in pairs(Character:GetChildren()) do
615
		if v:IsA("Part") then
616
			v.Material = "SmoothPlastic"
617
		elseif v:IsA("Accessory") then
618
			v:WaitForChild("Handle").Material = "SmoothPlastic"
619
		end
620
	end
621
	Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
622
	velocity = RootPart.Velocity.y
623
	sine = sine + change
624
	local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
625
	if equipped == true or equipped == false then
626
		if RootPart.Velocity.y > 1 and hit == nil then 
627
			Anim = "Jump"
628
			if attack == false then
629
				PlayAnimationFromTable({
630
					CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
631
					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), 
632
					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), 
633
					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), 
634
					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), 
635
					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), 
636
				}, .3, false)
637
			end
638
		elseif RootPart.Velocity.y < -1 and hit == nil then 
639
			Anim = "Fall"
640
			if attack == false then
641
				PlayAnimationFromTable({
642
					CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
643
					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), 
644
					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), 
645
					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), 
646
					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), 
647
					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), 
648
				}, .3, false)
649
			end
650
		elseif Torsovelocity < 1 and hit ~= nil then
651
			Anim = "Idle"
652
			if attack == false then
653
				change = 1
654
				PlayAnimationFromTable({
655
					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), 
656
					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), 
657
					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), 
658
					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), 
659
					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), 
660
					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), 
661
				}, .3, false)
662
				FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
663
			end
664
		elseif Torsovelocity > 2 and hit ~= nil then
665
			Anim = "Walk"
666
			if attack == false then
667
				change = 3
668
				PlayAnimationFromTable({
669
					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), 
670
					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), 
671
					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), 
672
					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), 
673
					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)),
674
					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)),
675
				}, .3, false)
676
				FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
677
			end
678
		end
679
	end
680
	if 0 < #Effects then
681
		for e = 1, #Effects do
682
			if Effects[e] ~= nil then
683
				local Thing = Effects[e]
684
				if Thing ~= nil then
685
					local Part = Thing[1]
686
					local Mode = Thing[2]
687
					local Delay = Thing[3]
688
					local IncX = Thing[4]
689
					local IncY = Thing[5]
690
					local IncZ = Thing[6]
691
					if Thing[2] == "Shoot" then
692
						local Look = Thing[1]
693
						local hit, pos = rayCast(Thing[4], Look, 15, Character)
694
						local mag = (Thing[4] - pos).magnitude
695
						Thing[9] = Thing[9] + 0.5
696
						Thing[5] = Thing[5] + 0.2
697
						Thing[6] = Thing[6] + 0.2
698
						Effects["Cylinder"].Create(BrickColor.new("New Yeller"), 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)
699
						Thing[4] = Thing[4] + Look * 15
700
						Thing[3] = Thing[3] - 1
701
						if hit ~= nil then
702
							Thing[3] = 0
703
							ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
704
							ref.Anchored = true
705
							ref.CFrame = CFrame.new(pos)
706
							Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
707
							CFuncs["Sound"].Create("rbxassetid://315748949", ref, 1, 1.1)
708
							game:GetService("Debris"):AddItem(ref, 1)
709
						end
710
						if Thing[3] <= 0 then
711
							table.remove(Effects, e)
712
						end
713
					end
714
					do
715
						if Thing[2] == "Shoot2" then
716
							local Look = Thing[1]
717
							local hit, pos = rayCast(Thing[4], Look, 3, Character)
718
							local mag = (Thing[4] - pos).magnitude
719
							Thing[9] = Thing[9] + 0.5
720
							Thing[5] = Thing[5] + 0.2
721
							Thing[6] = Thing[6] + 0.2
722
							Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
723
							Thing[4] = Thing[4] + Look * 3
724
							Thing[3] = Thing[3] + 5
725
							if hit ~= nil then
726
								Thing[3] = 0
727
								ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
728
								ref.Anchored = true
729
								ref.CFrame = CFrame.new(pos)
730
								Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
731
								Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
732
								Effects["Block"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
733
								Effects["Wave"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
734
								CFuncs["Sound"].Create("rbxassetid://203691837", ref, 1, .3)
735
								CFuncs["Sound"].Create("rbxassetid://203691885", ref, 1, .9)
736
								CFuncs["Sound"].Create("rbxassetid://184718741", ref, 1, .9)
737
								local e = Instance.new("Explosion", ref)
738
								e.Position = ref.Position
739
								e.BlastRadius = 400
740
								e.DestroyJointRadiusPercent = 20
741
								e.Visible = false
742
								e.ExplosionType = "CratersAndDebris"
743
								game:GetService("Debris"):AddItem(ref, 10)
744
							end
745
							if Thing[3] <= 0 then
746
								table.remove(Effects, e)
747
							end
748
						end
749
						do
750
							do
751
								if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
752
									if Thing[1].Transparency <= 1 then
753
										if Thing[2] == "Block1" then
754
											Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
755
											Mesh = Thing[7]
756
											Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
757
											Thing[1].Transparency = Thing[1].Transparency + Thing[3]
758
										else
759
											if Thing[2] == "Block2" then
760
												Thing[1].CFrame = Thing[1].CFrame
761
												Mesh = Thing[7]
762
												Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
763
												Thing[1].Transparency = Thing[1].Transparency + Thing[3]
764
											else
765
												if Thing[2] == "Block3" then
766
													Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
767
													Mesh = Thing[7]
768
													Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
769
													Thing[1].Transparency = Thing[1].Transparency + Thing[3]
770
												else
771
													if Thing[2] == "Cylinder" then
772
														Mesh = Thing[7]
773
														Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
774
														Thing[1].Transparency = Thing[1].Transparency + Thing[3]
775
													else
776
														if Thing[2] == "Cylinder2" then
777
															Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
778
															Mesh = Thing[7]
779
															Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
780
															Thing[1].Transparency = Thing[1].Transparency + Thing[3]
781
														else
782
															if Thing[2] == "Blood" then
783
																Mesh = Thing[7]
784
																Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
785
																Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
786
																Thing[1].Transparency = Thing[1].Transparency + Thing[3]
787
															else
788
																if Thing[2] == "Elec" then
789
																	Mesh = Thing[10]
790
																	Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
791
																	Thing[1].Transparency = Thing[1].Transparency + Thing[3]
792
																else
793
																	if Thing[2] == "Disappear" then
794
																		Thing[1].Transparency = Thing[1].Transparency + Thing[3]
795
																	end
796
																end
797
															end
798
														end
799
													end
800
												end
801
											end
802
										end
803
									else
804
										Part.Parent = nil
805
										table.remove(Effects, e)
806
									end
807
								end
808
							end
809
						end
810
					end
811
				end
812
			end
813
		end
814
	end
815
end