View difference between Paste ID: 0wL2x6P0 and LsnyNcVQ
SHOW: | | - or go back to the newest paste.
1-
--[[Nocturna_A._Alteriano_Night.Owl.Inc]]--
1+
--[[ Name :  That Golden Gun ]]--
2
3
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
4
print(" this script was edited by An ignorant / zach ")
5
warn(" credits goes to BILLYBOB123 ")
6
warn(" pls dont abuse ")
7
warn(" i beg u ")
8
warn(" PLS ")
9
local Player,game,owner = owner,game
10
local RealPlayer = Player
11
do
12
    print("FE Compatibility code by Mokiros")
13
    print("This EDIT was made by Zach the script stealer / aka zach so please stop pretending that you made it")
14
    local rp = RealPlayer
15
    script.Parent = rp.Character
16
   
17
    --RemoteEvent for communicating
18
    local Event = Instance.new("RemoteEvent")
19
    Event.Name = "UserInput_Event"
20
 
21
    --Fake event to make stuff like Mouse.KeyDown work
22
    local function fakeEvent()
23
        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
24
        t.connect = t.Connect
25
        return t
26
    end
27
 
28
    --Creating fake input objects with fake variables
29
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
30
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
31
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
32
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
33
    end}
34
    --Merged 2 functions into one by checking amount of arguments
35
    CAS.UnbindAction = CAS.BindAction
36
 
37
    --This function will trigger the events that have been :Connect()'ed
38
    local function te(self,ev,...)
39
        local t = m[ev]
40
        if t and t._fakeEvent then
41
            for _,f in pairs(t.Functions) do
42
                f(...)
43
            end
44
        end
45
    end
46
    m.TrigEvent = te
47
    UIS.TrigEvent = te
48
 
49
    Event.OnServerEvent:Connect(function(plr,io)
50
        if plr~=rp then return end
51
        m.Target = io.Target
52
        m.Hit = io.Hit
53
        if not io.isMouse then
54
            local b = io.UserInputState == Enum.UserInputState.Begin
55
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
56
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
57
            end
58
            for _,t in pairs(CAS.Actions) do
59
                for _,k in pairs(t.Keys) do
60
                    if k==io.KeyCode then
61
                        t.Function(t.Name,io.UserInputState,io)
62
                    end
63
                end
64
            end
65
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
66
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
67
        end
68
    end)
69
    Event.Parent = NLS([==[
70
    local Player = game:GetService("Players").LocalPlayer
71
    local Event = script:WaitForChild("UserInput_Event")
72
 
73
    local Mouse = Player:GetMouse()
74
    local UIS = game:GetService("UserInputService")
75
    local input = function(io,a)
76
        if a then return end
77
        --Since InputObject is a client-side instance, we create and pass table instead
78
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
79
    end
80
    UIS.InputBegan:Connect(input)
81
    UIS.InputEnded:Connect(input)
82
 
83
    local h,t
84
    --Give the server mouse data 30 times every second, but only if the values changed
85
    --If player is not moving their mouse, client won't fire events
86
    while wait(1/30) do
87
        if h~=Mouse.Hit or t~=Mouse.Target then
88
            h,t=Mouse.Hit,Mouse.Target
89
            Event:FireServer({isMouse=true,Target=t,Hit=h})
90
        end
91
    end]==],Player.Character)
92
 
93
    ----Sandboxed game object that allows the usage of client-side methods and services
94
    --Real game object
95
    local _rg = game
96
 
97
    --Metatable for fake service
98
    local fsmt = {
99
        __index = function(self,k)
100
            local s = rawget(self,"_RealService")
101
            if s then return s[k] end
102
        end,
103
        __newindex = function(self,k,v)
104
            local s = rawget(self,"_RealService")
105
            if s then s[k]=v end
106
        end,
107
        __call = function(self,...)
108
            local s = rawget(self,"_RealService")
109
            if s then return s(...) end
110
        end
111
    }
112
    local function FakeService(t,RealService)
113
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
114
        return setmetatable(t,fsmt)
115
    end
116
 
117
    --Fake game object
118
    local g = {
119
        GetService = function(self,s)
120
            return self[s]
121
        end,
122
        Players = FakeService({
123
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
124
        },"Players"),
125
        UserInputService = FakeService(UIS,"UserInputService"),
126
        ContextActionService = FakeService(CAS,"ContextActionService"),
127
    }
128
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
129
    g.service = g.GetService
130
   
131
    g.RunService = FakeService({
132
        RenderStepped = _rg:GetService("RunService").Heartbeat,
133
        BindToRenderStep = function(self,name,_,fun)
134
 
135
        end,
136
        UnbindFromRenderStep = function(self,name)
137
            self._btrs[name]:Disconnect()
138
        end,
139
    },"RunService")
140
 
141
    setmetatable(g,{
142
        __index=function(self,s)
143
            return _rg:GetService(s) or typeof(_rg[s])=="function"
144
            and function(_,...)return _rg[s](_rg,...)end or _rg[s]
145
        end,
146
        __newindex = fsmt.__newindex,
147
        __call = fsmt.__call
148
    })
149
    --Changing owner to fake player object to support owner:GetMouse()
150
    game,owner = g,g.Players.LocalPlayer
151
end
152
153
154
wait(1 / 60)
155
Effects = { }
156
local Player = game.Players.localPlayer
157
local Character = Player.Character
158
local Humanoid = Character.Humanoid
159
local mouse = Player:GetMouse()
160
local m = Instance.new('Model', Character)
161
m.Name = "WeaponModel"
162
local LeftArm = Character["Left Arm"]
163
local RightArm = Character["Right Arm"]
164
local LeftLeg = Character["Left Leg"]
165
local RightLeg = Character["Right Leg"]
166
local Head = Character.Head
167
local Torso = Character.Torso
168
local ChatService = game:GetService("Chat")
169
ChatService:Chat(Character.Head, "YEAAA IM BACK BABY!!!")
170
wait(2)
171
ChatService:Chat(Character.Head, "THE NOSTALGIA SHALL COME BACK TO LIFE")
172
wait(3)
173
ChatService:Chat(Character.Head, "WOOOOOOOOOOOOOOOOOOOOO")
174
local cam = game.Workspace.CurrentCamera
175
local RootPart = Character.HumanoidRootPart
176
local RootJoint = RootPart.RootJoint
177
local equipped = false
178
local attack = false
179
local Anim = 'Idle'
180
local idle = 0
181
local attacktype = 1
182
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
183
local velocity = RootPart.Velocity.y
184
local sine = 0
185
local change = 1
186
local grabbed = false
187
local cn = CFrame.new
188
local mr = math.rad
189
local angles = CFrame.Angles
190
local ud = UDim2.new
191
local c3 = Color3.new
192
193
Humanoid.Animator.Parent = nil
194
Character.Animate.Parent = nil
195
196
local newMotor = function(part0, part1, c0, c1)
197
	local w = Instance.new('Motor', part0)
198
	w.Part0 = part0
199
	w.Part1 = part1
200
	w.C0 = c0
201
	w.C1 = c1
202
	return w
203
end
204
205
function clerp(a, b, t)
206
	return a:lerp(b, t)
207
end
208
209
RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
210
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
211
212
local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) 
213
local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
214
local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
215
local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
216
RootJoint.C1 = CFrame.new(0, 0, 0)
217
RootJoint.C0 = CFrame.new(0, 0, 0)
218
Torso.Neck.C1 = CFrame.new(0, 0, 0)
219
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
220
221
local rarmc1 = RW.C1
222
local larmc1 = LW.C1
223
local rlegc1 = RH.C1
224
local llegc1 = LH.C1
225
226
local resetc1 = false
227
228
function PlayAnimationFromTable(table, speed, bool)
229
	RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) 
230
	Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) 
231
	RW.C0 = clerp(RW.C0, table[3], speed) 
232
	LW.C0 = clerp(LW.C0, table[4], speed) 
233
	RH.C0 = clerp(RH.C0, table[5], speed) 
234
	LH.C0 = clerp(LH.C0, table[6], speed) 
235
	if bool == true then
236
		if resetc1 == false then
237
			resetc1 = true
238
			RootJoint.C1 = RootJoint.C1
239
			Torso.Neck.C1 = Torso.Neck.C1
240
			RW.C1 = rarmc1
241
			LW.C1 = larmc1
242
			RH.C1 = rlegc1
243
			LH.C1 = llegc1
244
		end
245
	end
246
end
247
248
--[[Credits to SazErenos for his Artificial Heartbeat]]--
249
250
ArtificialHB = Instance.new("BindableEvent", script)
251
ArtificialHB.Name = "Heartbeat"
252
253
script:WaitForChild("Heartbeat")
254
255
frame = 1 / 30
256
tf = 0
257
allowframeloss = false
258
tossremainder = false
259
lastframe = tick()
260
script.Heartbeat:Fire()
261
262
game:GetService("RunService").Heartbeat:connect(function(s, p)
263
	tf = tf + s
264
	if tf >= frame then
265
		if allowframeloss then
266
			script.Heartbeat:Fire()
267
			lastframe = tick()
268
		else
269
			for i = 1, math.floor(tf / frame) do
270
				script.Heartbeat:Fire()
271
			end
272
			lastframe = tick()
273
		end
274
		if tossremainder then
275
			tf = 0
276
		else
277
			tf = tf - frame * math.floor(tf / frame)
278
		end
279
	end
280
end)
281
282
function swait(num)
283
	if num == 0 or num == nil then
284
		ArtificialHB.Event:wait()
285
	else
286
		for i = 0, num do
287
			ArtificialHB.Event:wait()
288
		end
289
	end
290
end
291
292
local RbxUtility = LoadLibrary("RbxUtility")
293
local Create = RbxUtility.Create
294
295
function RemoveOutlines(part)
296
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
297
end
298
	
299
CFuncs = {	
300
	["Part"] = {
301
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
302
			local Part = Create("Part"){
303
				Parent = Parent,
304
				Reflectance = Reflectance,
305
				Transparency = Transparency,
306
				CanCollide = false,
307
				Locked = true,
308
				BrickColor = BrickColor.new(tostring(BColor)),
309
				Name = Name,
310
				Size = Size,
311
				Material = Material,
312
			}
313
			RemoveOutlines(Part)
314
			return Part
315
		end;
316
	};
317
	
318
	["Mesh"] = {
319
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
320
			local Msh = Create(Mesh){
321
				Parent = Part,
322
				Offset = OffSet,
323
				Scale = Scale,
324
			}
325
			if Mesh == "SpecialMesh" then
326
				Msh.MeshType = MeshType
327
				Msh.MeshId = MeshId
328
			end
329
			return Msh
330
		end;
331
	};
332
	
333
	["Mesh"] = {
334
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
335
			local Msh = Create(Mesh){
336
				Parent = Part,
337
				Offset = OffSet,
338
				Scale = Scale,
339
			}
340
			if Mesh == "SpecialMesh" then
341
				Msh.MeshType = MeshType
342
				Msh.MeshId = MeshId
343
			end
344
			return Msh
345
		end;
346
	};
347
	
348
	["Weld"] = {
349
		Create = function(Parent, Part0, Part1, C0, C1)
350
			local Weld = Create("Weld"){
351
				Parent = Parent,
352
				Part0 = Part0,
353
				Part1 = Part1,
354
				C0 = C0,
355
				C1 = C1,
356
			}
357
			return Weld
358
		end;
359
	};
360
361
	["Sound"] = {
362
		Create = function(id, par, vol, pit) 
363
			coroutine.resume(coroutine.create(function()
364
				local S = Create("Sound"){
365
					Volume = vol,
366
					Pitch = pit or 1,
367
					SoundId = id,
368
					Parent = par or workspace,
369
				}
370
				Instance.new("DistortionSoundEffect", S).Level = 1
371
				wait() 
372
				S:play() 
373
				game:GetService("Debris"):AddItem(S, 10)
374
			end))
375
		end;
376
	};
377
	
378
	["ParticleEmitter"] = {
379
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
380
			local fp = Create("ParticleEmitter"){
381
				Parent = Parent,
382
				Color = ColorSequence.new(Color1, Color2),
383
				LightEmission = LightEmission,
384
				Size = Size,
385
				Texture = Texture,
386
				Transparency = Transparency,
387
				ZOffset = ZOffset,
388
				Acceleration = Accel,
389
				Drag = Drag,
390
				LockedToPart = LockedToPart,
391
				VelocityInheritance = VelocityInheritance,
392
				EmissionDirection = EmissionDirection,
393
				Enabled = Enabled,
394
				Lifetime = LifeTime,
395
				Rate = Rate,
396
				Rotation = Rotation,
397
				RotSpeed = RotSpeed,
398
				Speed = Speed,
399
				VelocitySpread = VelocitySpread,
400
			}
401
			return fp
402
		end;
403
	};
404
}
405
406
function rayCast(Position, Direction, Range, Ignore)
407
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
408
end 
409
410
local function GetNearest(obj, distance)
411
	local last, lastx = distance + 1
412
	for i, v in pairs(workspace:GetChildren()) do
413
		if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
414
			local t = v.Torso
415
			local dist = (t.Position - obj.Position).magnitude
416
			if dist <= distance then
417
				if dist < last then
418
					last = dist
419
					lastx = v
420
				end
421
			end
422
		end
423
	end
424
	return lastx
425
end
426
427
--[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
428
429
function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
430
	for i, v in pairs(hit:GetChildren()) do 
431
		if v:IsA("Humanoid") and hit.Name ~= Character.Name then
432
			local find = v:FindFirstChild("DebounceHit")
433
			if not find then
434
				if v.Parent:findFirstChild("Head") then
435
					local BillG = Create("BillboardGui"){
436
						Parent = v.Parent.Head,
437
						Size = UDim2.new(1, 0, 1, 0),
438
						Adornee = v.Parent.Head,
439
						StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
440
					}
441
					local TL = Create("TextLabel"){
442
						Parent = BillG,
443
						Size = UDim2.new(3, 3, 3, 3),
444
						BackgroundTransparency = 1,
445
						Text = tostring(damage).."-",
446
						TextColor3 = Color1.Color,
447
						TextStrokeColor3 = Color2.Color,
448
						TextStrokeTransparency = 0,
449
						TextXAlignment = Enum.TextXAlignment.Center,
450
						TextYAlignment = Enum.TextYAlignment.Center,
451
						FontSize = Enum.FontSize.Size18,
452
						Font = "ArialBold",
453
					}
454
					coroutine.resume(coroutine.create(function()
455
						swait(1)
456
						for i = 0, 1, .1 do
457
							swait(.1)
458
							BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
459
						end
460
						BillG:Destroy()
461
					end))
462
				end
463
				v.Health = v.Health - damage
464
				local bool = Create("BoolValue"){
465
					Parent = v,
466
					Name = "DebounceHit",
467
				}
468
				if HSound ~= nil and HPitch ~= nil then
469
					CFuncs["Sound"].Create(HSound, hit, 1, HPitch) 
470
				end
471
				game:GetService("Debris"):AddItem(bool, cooldown)
472
			end
473
		end
474
	end
475
end
476
477
function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
478
	for _, c in pairs(workspace:children()) do
479
		local hum = c:findFirstChild("Humanoid")
480
		if hum ~= nil then
481
			local head = c:findFirstChild("Torso")
482
			if head ~= nil then
483
				local targ = head.Position - Part.Position
484
				local mag = targ.magnitude
485
				if mag <= magni and c.Name ~= Player.Name then 
486
					Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
487
				end
488
			end
489
		end
490
	end
491
end
492
493
Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
494
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))
495
FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
496
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))
497
Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
498
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))
499
Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Part", Vector3.new(0.399999946, 0.299999952, 0.400000095))
500
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))
501
CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://435840330", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00200000009, 0.00200000009))
502
Part.Mesh.TextureId = "rbxassetid://435840335"
503
504
EffectModel = Instance.new("Model", Character)
505
EffectModel.Name = "Effects"
506
507
Effects = {
508
	["Block"] = {
509
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
510
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
511
			prt.Anchored = true
512
			prt.CFrame = cframe
513
			local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
514
			game:GetService("Debris"):AddItem(prt, 10)
515
			if Type == 1 or Type == nil then
516
				table.insert(Effects, {
517
					prt,
518
					"Block1",
519
					delay,
520
					x3,
521
					y3,
522
					z3,
523
					msh
524
				})
525
			elseif Type == 2 then
526
				table.insert(Effects, {
527
					prt,
528
					"Block2",
529
					delay,
530
					x3,
531
					y3,
532
					z3,
533
					msh
534
				})
535
			end
536
		end;
537
	};
538
	
539
	["Cylinder"] = {
540
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
541
			local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
542
			prt.Anchored = true
543
			prt.CFrame = cframe
544
			local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
545
			game:GetService("Debris"):AddItem(prt, 2)
546
			Effects[#Effects + 1] = {
547
				prt,
548
				"Cylinder",
549
				delay,
550
				x3,
551
				y3,
552
				z3
553
			}
554
		end;
555
	};
556
	
557
	["Sphere"] = {
558
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
559
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
560
			prt.Anchored = true
561
			prt.CFrame = cframe
562
			local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
563
			game:GetService("Debris"):AddItem(prt, 10)
564
			table.insert(Effects, {
565
				prt,
566
				"Cylinder",
567
				delay,
568
				x3,
569
				y3,
570
				z3,
571
				msh
572
			})
573
		end;
574
	};
575
	
576
	["Elec"] = {
577
		Create = function(cff, x, y, z)
578
			local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
579
			prt.Anchored = true
580
			prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
581
			prt.CFrame = CFrame.new(prt.Position)
582
			game:GetService("Debris"):AddItem(prt, 2)
583
			local xval = math.random() / 2
584
			local yval = math.random() / 2
585
			local zval = math.random() / 2
586
			local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
587
			table.insert(Effects, {
588
				prt,
589
				"Elec",
590
				0.1,
591
				x,
592
				y,
593
				z,
594
				xval,
595
				yval,
596
				zval
597
			})
598
		end;
599
600
	};
601
	
602
	["Ring"] = {
603
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
604
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
605
			prt.Anchored = true
606
			prt.CFrame = cframe
607
			local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
608
			game:GetService("Debris"):AddItem(prt, 10)
609
			table.insert(Effects, {
610
				prt,
611
				"Cylinder",
612
				delay,
613
				x3,
614
				y3,
615
				z3,
616
				msh
617
			})
618
		end;
619
	};
620
621
622
	["Wave"] = {
623
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
624
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
625
			prt.Anchored = true
626
			prt.CFrame = cframe
627
			local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
628
			game:GetService("Debris"):AddItem(prt, 10)
629
			table.insert(Effects, {
630
				prt,
631
				"Cylinder",
632
				delay,
633
				x3,
634
				y3,
635
				z3,
636
				msh
637
			})
638
		end;
639
	};
640
641
	["Break"] = {
642
		Create = function(brickcolor, cframe, x1, y1, z1)
643
			local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
644
			prt.Anchored = true
645
			prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
646
			local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
647
			local num = math.random(10, 50) / 1000
648
			game:GetService("Debris"):AddItem(prt, 10)
649
			table.insert(Effects, {
650
				prt,
651
				"Shatter",
652
				num,
653
				prt.CFrame,
654
				math.random() - math.random(),
655
				0,
656
				math.random(50, 100) / 100
657
			})
658
		end;
659
	};
660
}
661
662
Shoot2 = function(orgpos)
663
	local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
664
	Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
665
	table.insert(Effects, {
666
		MouseLook.lookVector,
667
		"Shoot2",
668
		50,
669
		orgpos,
670
		5,
671
		7,
672
		0,
673
		1,
674
		2
675
	})
676
end
677
678
function attackone()
679
	attack = true
680
	CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8) 
681
	for i = 0, 1, 0.025 do
682
		swait()
683
		PlayAnimationFromTable({
684
			CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
685
			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), 
686
			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), 
687
			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), 
688
			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), 
689
			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), 
690
		}, .3, false)
691
		FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
692
	end
693
	CFuncs["Sound"].Create("rbxassetid://203691837", Barrel, .01, .3)
694
	CFuncs["Sound"].Create("rbxassetid://131384028", Barrel, .01, .9)
695
	CFuncs["Sound"].Create("rbxassetid://184718741", Barrel, .05, .9)
696
	Shoot2(Barrel.Position)
697
	for i = 0, 1, 0.15 do
698
		swait()
699
		RootPart.Velocity = RootPart.CFrame.lookVector * -50
700
		PlayAnimationFromTable({
701
			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), 
702
			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), 
703
			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), 
704
			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), 
705
			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), 
706
			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), 
707
		}, .6, false)
708
		FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
709
	end
710
	for i = 0, 1, 0.15 do
711
		swait()
712
		RootPart.Velocity = RootPart.CFrame.lookVector * -100
713
		PlayAnimationFromTable({
714
			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), 
715
			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), 
716
			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), 
717
			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), 
718
			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), 
719
			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), 
720
		}, .2, false)
721
		FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
722
	end
723
	for i = 0, 1, 0.05 do
724
		swait()
725
		RootPart.Velocity = RootPart.CFrame.lookVector * -50
726
		PlayAnimationFromTable({
727
			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), 
728
			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), 
729
			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), 
730
			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), 
731
			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), 
732
			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), 
733
		}, .3, false)
734
		FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3)
735
	end
736
	for i = 0, 1, 0.13 do
737
		swait()
738
		PlayAnimationFromTable({
739
			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), 
740
			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), 
741
			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), 
742
			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), 
743
			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), 
744
			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), 
745
		}, .3, false)
746
	end
747
	attack = false
748
end
749
750
--[[Attacks]]--
751
752
mouse.Button1Down:connect(function()
753
	if attack == false and attacktype == 1 then
754
		attackone()
755
	end
756
end)
757
758
mouse.KeyDown:connect(function(k)
759
	k = k:lower()
760
	if attack == false and k == '' then
761
	
762
	end
763
end)
764
765
while true do
766
	swait()
767
	for i, v in pairs(Character:GetChildren()) do
768
		if v:IsA("Part") then
769
			v.Material = "SmoothPlastic"
770
		elseif v:IsA("Accessory") then
771
			v:WaitForChild("Handle").Material = "SmoothPlastic"
772
		end
773
	end
774
	Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
775
	velocity = RootPart.Velocity.y
776
	sine = sine + change
777
	local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
778
	if equipped == true or equipped == false then
779
		if RootPart.Velocity.y > 1 and hit == nil then 
780
			Anim = "Jump"
781
			if attack == false then
782
				PlayAnimationFromTable({
783
					CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
784
					CFrame.new(0, 1.49221826, -0.044082582, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
785
					CFrame.new(1.66304386, 0.182627335, 0.00782334805, 0.883022726, -0.392632574, 0.257119894, 0.321392894, 0.905103981, 0.2783764, -0.342019886, -0.163176134, 0.925416708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
786
					CFrame.new(-1.66570556, 0.224230319, 0.110721856, 0.903736115, 0.408218145, -0.128915116, -0.34750703, 0.875426054, 0.33595863, 0.25000003, -0.258819014, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
787
					CFrame.new(0.499999166, -1.99999452, 4.76837158e-007, 0.984807849, -5.94328526e-007, -0.173648044, 0.0449439958, 0.965925872, 0.254886925, 0.167730987, -0.258819073, 0.951251388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
788
					CFrame.new(-0.499999404, -1.51703107, -0.129407585, 0.965925753, 6.6929374e-007, 0.258819193, -0.0669879839, 0.965925813, 0.24999994, -0.24999994, -0.258819163, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
789
				}, .3, false)
790
			end
791
		elseif RootPart.Velocity.y < -1 and hit == nil then 
792
			Anim = "Fall"
793
			if attack == false then
794
				PlayAnimationFromTable({
795
					CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
796
					CFrame.new(0, 1.49221873, -0.0440826714, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
797
					CFrame.new(1.76076102, 0.406842887, 0.0212866664, 0.695482016, -0.670965135, 0.257119834, 0.611573994, 0.74059701, 0.278376371, -0.377202988, -0.0363579579, 0.925416648) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
798
					CFrame.new(-1.68029141, 0.390803367, 0.155905366, 0.70961535, 0.692695498, -0.128914997, -0.625963271, 0.703777075, 0.335958213, 0.323444158, -0.157705069, 0.933012843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
799
					CFrame.new(0.693307817, -1.96826017, -0.0605875254, 0.986561239, -0.127662987, -0.101976946, 0.137943029, 0.985269904, 0.101069227, 0.0875720233, -0.113777988, 0.989639223) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
800
					CFrame.new(-0.526552737, -1.81498528, -0.152177691, 0.965925574, 0.0449441113, 0.254888207, -0.066988036, 0.994663239, 0.0784704387, -0.250001162, -0.0928710476, 0.963781357) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
801
				}, .3, false)
802
			end
803
		elseif Torsovelocity < 1 and hit ~= nil then
804
			Anim = "Idle"
805
			if attack == false then
806
				change = 1
807
				PlayAnimationFromTable({
808
					CFrame.new(1.22602091e-006, -0.219458103, 1.46111324e-006, 0.76604414, 0, 0.642788053, 0, 1, 0, -0.642788053, 0, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
809
					CFrame.new(0, 1.49999201, 0, 0.707106233, 0, -0.707107306, 0, 1, 0, 0.707107306, 0, 0.707106233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
810
					CFrame.new(0.571566343, -0.0739164352, -0.639066696, 0.939692855, 0.340718329, -0.0298085809, -0.241844058, 0.600305915, -0.762328327, -0.241844922, 0.723563433, 0.646503866) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
811
					CFrame.new(-0.628383756, -0.12163578, -0.696761668, 0.939692736, -0.342020065, -5.06639481e-007, 0.196173996, 0.538984895, -0.819152653, 0.280166954, 0.769751549, 0.573575616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
812
					CFrame.new(0.624118924, -1.79798961, 0.0678238794, 0.995454907, -0.0383867361, -0.0871553123, 0.0385330059, 0.999257326, -4.09960694e-006, 0.0870907605, -0.00335427374, 0.996194839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
813
					CFrame.new(-0.53866595, -1.82180798, 0.00821807235, 0.977763176, 0.0281341001, 0.207816422, -0.0287620034, 0.999586344, -1.4934686e-007, -0.207730502, -0.00597707182, 0.978167892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
814
				}, .3, false)
815
				FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
816
			end
817
		elseif Torsovelocity > 2 and hit ~= nil then
818
			Anim = "Walk"
819
			if attack == false then
820
				change = 3
821
				PlayAnimationFromTable({
822
					CFrame.new(0, -0.0240751095, -0.146390602, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
823
					CFrame.new(0, 1.49999237, -1.81794167e-006, 1, 0, 0, 0, 0.984807789, -0.173647881, 0, 0.173647881, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
824
					CFrame.new(0.172261134, 0.427689523, -1.09730911, 0.644483984, 0.748984814, -0.153825179, 0.413525045, -0.510645986, -0.753815472, -0.643146515, 0.422211438, -0.638827145) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
825
					CFrame.new(-1.1922102, 0.363029838, -0.448653877, 0.935289383, -0.110854559, -0.33607316, -0.341521561, -0.531564534, -0.775114357, -0.0927196145, 0.839732468, -0.535025835) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
826
					CFrame.new(.5, -1.85 - 0.5 * math.cos(sine / 8) / 2, 0 + 1.8 *  math.sin(sine / 8) / 2) * angles(math.rad(-50 *  math.sin(sine / 8)), math.rad(0), math.rad(0)),
827
					CFrame.new(-.5, -1.85 + 0.5 * math.cos(sine / 8) / 2, 0 - 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(50 *  math.sin(sine / 8)), math.rad(0), math.rad(0)),
828
				}, .3, false)
829
				FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
830
			end
831
		end
832
	end
833
	if 0 < #Effects then
834
		for e = 1, #Effects do
835
			if Effects[e] ~= nil then
836
				local Thing = Effects[e]
837
				if Thing ~= nil then
838
					local Part = Thing[1]
839
					local Mode = Thing[2]
840
					local Delay = Thing[3]
841
					local IncX = Thing[4]
842
					local IncY = Thing[5]
843
					local IncZ = Thing[6]
844
					if Thing[2] == "Shoot" then
845
						local Look = Thing[1]
846
						local hit, pos = rayCast(Thing[4], Look, 15, Character)
847
						local mag = (Thing[4] - pos).magnitude
848
						Thing[9] = Thing[9] + 0.5
849
						Thing[5] = Thing[5] + 0.2
850
						Thing[6] = Thing[6] + 0.2
851
						Effects["Cylinder"].Create(BrickColor.new("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)
852
						Thing[4] = Thing[4] + Look * 15
853
						Thing[3] = Thing[3] - 1
854
						if hit ~= nil then
855
							Thing[3] = 0
856
							ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
857
							ref.Anchored = true
858
							ref.CFrame = CFrame.new(pos)
859
							Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
860
							CFuncs["Sound"].Create("rbxassetid://315748949", ref, 1, 1.1)
861
							game:GetService("Debris"):AddItem(ref, 1)
862
						end
863
						if Thing[3] <= 0 then
864
							table.remove(Effects, e)
865
						end
866
					end
867
					do
868
						if Thing[2] == "Shoot2" then
869
							local Look = Thing[1]
870
							local hit, pos = rayCast(Thing[4], Look, 3, Character)
871
							local mag = (Thing[4] - pos).magnitude
872
							Thing[9] = Thing[9] + 0.5
873
							Thing[5] = Thing[5] + 0.2
874
							Thing[6] = Thing[6] + 0.2
875
							Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
876
							Thing[4] = Thing[4] + Look * 3
877
							Thing[3] = Thing[3] + 5
878
							if hit ~= nil then
879
								Thing[3] = 0
880
								ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
881
								ref.Anchored = true
882
								ref.CFrame = CFrame.new(pos)
883
								Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
884
								Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
885
								Effects["Block"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
886
								Effects["Wave"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
887
								CFuncs["Sound"].Create("rbxassetid://203691837", ref, 1, .3)
888
								CFuncs["Sound"].Create("rbxassetid://203691885", ref, 1, .9)
889
								CFuncs["Sound"].Create("rbxassetid://184718741", ref, 1, .9)
890
								local e = Instance.new("Explosion", ref)
891
								e.Position = ref.Position
892
								e.BlastRadius = 400
893
								e.DestroyJointRadiusPercent = 20
894
								e.Visible = false
895
								e.ExplosionType = "CratersAndDebris"
896
								game:GetService("Debris"):AddItem(ref, 10)
897
							end
898
							if Thing[3] <= 0 then
899
								table.remove(Effects, e)
900
							end
901
						end
902
						do
903
							do
904
								if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
905
									if Thing[1].Transparency <= 1 then
906
										if Thing[2] == "Block1" then
907
											Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
908
											Mesh = Thing[7]
909
											Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
910
											Thing[1].Transparency = Thing[1].Transparency + Thing[3]
911
										else
912
											if Thing[2] == "Block2" then
913
												Thing[1].CFrame = Thing[1].CFrame
914
												Mesh = Thing[7]
915
												Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
916
												Thing[1].Transparency = Thing[1].Transparency + Thing[3]
917
											else
918
												if Thing[2] == "Block3" then
919
													Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
920
													Mesh = Thing[7]
921
													Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
922
													Thing[1].Transparency = Thing[1].Transparency + Thing[3]
923
												else
924
													if Thing[2] == "Cylinder" then
925
														Mesh = Thing[7]
926
														Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
927
														Thing[1].Transparency = Thing[1].Transparency + Thing[3]
928
													else
929
														if Thing[2] == "Cylinder2" then
930
															Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
931
															Mesh = Thing[7]
932
															Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
933
															Thing[1].Transparency = Thing[1].Transparency + Thing[3]
934
														else
935
															if Thing[2] == "Blood" then
936
																Mesh = Thing[7]
937
																Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
938
																Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
939
																Thing[1].Transparency = Thing[1].Transparency + Thing[3]
940
															else
941
																if Thing[2] == "Elec" then
942
																	Mesh = Thing[10]
943
																	Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
944
																	Thing[1].Transparency = Thing[1].Transparency + Thing[3]
945
																else
946
																	if Thing[2] == "Disappear" then
947
																		Thing[1].Transparency = Thing[1].Transparency + Thing[3]
948
																	end
949
																end
950
															end
951
														end
952
													end
953
												end
954
											end
955
										end
956
									else
957
										Part.Parent = nil
958
										table.remove(Effects, e)
959
									end
960
								end
961
							end
962
						end
963
					end
964
				end
965
			end
966
		end
967
	end
968
end