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