View difference between Paste ID: x4u7gNVJ and W8W8sUVg
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {}
2
do
3
    script.Parent = owner.Character
4
    local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
5
    local function NewFakeEvent()
6
        local Bind = Instance.new("BindableEvent")
7
        local Fake;Fake = {Connections = {},
8
        fakeEvent=true;
9
        Connect=function(self,Func)
10
            Bind.Event:connect(Func)
11
            self.Connections[Bind] = true
12
            return setmetatable({Connected = true},{
13
            __index = function (self,Index)
14
                if Index:lower() == "disconnect" then
15
                    return function() Fake.Connections[Bind] = false;self.Connected = false end
16
                end
17
                return Fake[Index]
18
            end;
19
            __tostring = function() return "Connection" end;
20
        })
21
        end}
22
        Fake.connect = Fake.Connect;return Fake;
23
    end
24
    local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
25
    local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
26
    local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
27
        self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
28
    end};ContextActionService.UnBindAction = ContextActionService.BindAction
29
    local function TriggerEvent(self,Event,...)
30
        local Trigger = Mouse[Event]
31
        if Trigger and Trigger.fakeEvent and Trigger.Connections then
32
            for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
33
        end
34
    end
35
    Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
36
    Event.OnServerEvent:Connect(function(FiredBy,Input)
37
        if FiredBy.Name ~= owner.Name then return end
38
        if Input.MouseEvent then
39
            Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
40
        else
41
            local Begin = Input.UserInputState == Enum.UserInputState.Begin
42
            if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
43
            for _,Action in pairs(ContextActionService.Actions) do
44
                for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
45
            end
46
            Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
47
            UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
48
        end
49
    end)
50
    InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
51
    Event.Parent = NLS([[
52
        local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
53
        local Input = function(Input,gameProcessedEvent)
54
            if gameProcessedEvent then return end
55
            Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
56
        end
57
        UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
58
        local Hit,Target
59
        while wait(1/30) do
60
            if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
61
                Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
62
            end
63
        end
64
    ]],owner.Character)
65
end
66
RealGame = game;game = setmetatable({},{
67
    __index = function (self,Index)
68
        local Sandbox = function (Thing)
69
            if Thing:IsA("Player") then
70
                local RealPlayer = Thing
71
                return setmetatable({},{
72
                    __index = function (self,Index)
73
                        local Type = type(RealPlayer[Index])
74
                        if Type == "function" then
75
                            if Index:lower() == "getmouse" or Index:lower() == "mouse" then
76
                                return function (self)return InternalData["Mouse"] end
77
                            end
78
                            return function (self,...)return RealPlayer[Index](RealPlayer,...) end
79
                        end
80
                        return RealPlayer[Index]
81
                    end;
82
                    __tostring = function(self) return RealPlayer.Name end
83
                })
84
            end
85
        end
86
        if RealGame[Index] then
87
            local Type = type(RealGame[Index])
88
            if Type == "function" then
89
                if Index:lower() == "getservice" or Index:lower() == "service" then
90
                    return function (self,Service)
91
                        local FakeServices = {
92
                            ["players"] = function()
93
                                return setmetatable({},{
94
                                    __index = function (self2,Index2)
95
                                        local RealService = RealGame:GetService(Service)
96
                                        local Type2 = type(Index2)
97
                                        if Type2 == "function" then
98
                                            return function (self,...) return RealService[Index2](RealService,...)end
99
                                        else
100
                                            if Index2:lower() == "localplayer" then return Sandbox(owner) end
101
                                            return RealService[Index2]
102
                                        end
103
                                    end;
104
                                    __tostring = function(self) return RealGame:GetService(Service).Name end
105
                                })
106
                            end;
107
                            ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
108
                            ["userinputservice"] = function() return InternalData["UserInputService"] end;
109
                            ["runservice"] = function()
110
                                return setmetatable({},{
111
                                    __index = function(self2,Index2)
112
                                        local RealService = RealGame:GetService(Service)
113
                                        local Type2 = type(Index2)
114
                                        if Type2 == "function" then
115
                                            return function (self,...) return RealService[Index2](RealService,...) end
116
                                        else
117
                                            local RunServices = {
118
                                                ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
119
                                                ["renderstepped"] = function() return RealService["Stepped"] end
120
                                            }
121
                                            if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
122
                                            return RealService[Index2]
123
                                        end
124
                                    end
125
                                })
126
                            end
127
                        }
128
                        if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
129
                        return RealGame:GetService(Service)
130
                    end
131
                end
132
                return function (self,...) return RealGame[Index](RealGame,...) end
133
            else
134
                if game:GetService(Index) then return game:GetService(Index) end
135
                return RealGame[Index]
136
            end
137
        end
138
        return nil
139
    end
140
});Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob")
141
142
--[[
143
    Script: Lost Astronaut
144
    Creator: FantasyOrchid
145
    Buyer: nicemegaladon
146
    Moves:
147
        Click) Kick
148
        Click) Punch
149
        E) Multi Orb Attack
150
        Q) Big Orb Attack (Aim your mouse)
151
    Price: 50R
152
]]
153
154
wait(1 / 60)
155
Effects = { }
156
Player = game.Players.localPlayer
157
Character = Player.Character
158
Humanoid = Character.Humanoid
159
Mouse = Player:GetMouse()
160
LeftArm = Character["Left Arm"]
161
RightArm = Character["Right Arm"]
162
LeftLeg = Character["Left Leg"]
163
RightLeg = Character["Right Leg"]
164
Head = Character.Head
165
Torso = Character.Torso
166
Camera = game.Workspace.CurrentCamera
167
RootPart = Character.HumanoidRootPart
168
RootJoint = RootPart.RootJoint
169
attack = false
170
Anim = 'Idle'
171
attacktype = 1
172
Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
173
velocity = RootPart.Velocity.y
174
sine = 0
175
change = 1
176
hobb = 0
177
rest = 0
178
looprevive = false
179
mode = false
180
revive = false
181
Kaioken = 0
182
debris = game:service'Debris'
183
Create = LoadLibrary("RbxUtility").Create
184
185
ypcall(function()
186
Character.Shirt:Remove()
187
Character.Pants:Remove()
188
189
Shirt = Instance.new("Shirt",Character)
190
Shirt.ShirtTemplate = "rbxassetid://250422397" -- Clothing Items
191
Shirt.Name = "Shirt"
192
193
Pants = Instance.new("Pants",Character)
194
Pants.PantsTemplate = "rbxassetid://250422453" -- Clothing Items
195
Pants.Name = "Pants"
196
197
Character["Body Colors"].HeadColor = BrickColor.new("Institutional white") -- Body Colors
198
Character["Body Colors"].TorsoColor = BrickColor.new("Institutional white") -- Body Colors
199
Character["Body Colors"].LeftArmColor = BrickColor.new("Institutional white") -- Body Colors
200
Character["Body Colors"].RightArmColor = BrickColor.new("Institutional white") -- Body Colors
201
end)
202
for i,v in pairs(Character:children()) do
203
    if v:IsA("Accessory") then
204
        v:Destroy()
205
    end
206
end
207
local P = Instance.new("Part", Character)
208
P.CanCollide = false
209
P.Size = Vector3.new(1.1, 1.13, 1.33)
210
P.BrickColor = BrickColor.new("Really black")
211
local M = Instance.new("SpecialMesh", P)
212
M.MeshId = "rbxassetid://181343290"
213
M.TextureId = "rbxassetid://181343313"
214
M.Scale = Vector3.new(1.1, 1.1, 1.1)
215
M.Offset = Vector3.new(0, 0, 0)
216
local W = Instance.new("Weld", Character.Head)
217
W.Part0 = Character.Head
218
W.Part1 = P
219
W.C0 = CFrame.Angles(0, math.rad(0), 0)
220
221
local m = Create("Model"){
222
    Parent = Character,
223
    Name = "WeaponModel",
224
}
225
Humanoid.Animator.Parent = nil
226
Character.Animate.Parent = nil
227
228
local newWeld = function(part0, part1, c0, c1)
229
    local w = Create('Weld'){
230
        Parent = part0,
231
        Part0 = part0,
232
        Part1 = part1,
233
        C0 = c0,
234
        C1 = c1,
235
    }
236
    return w
237
end
238
239
local function QuaternionFromCFrame(cf)
240
    local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
241
    local trace = m00 + m11 + m22
242
    if trace > 0 then
243
        local s = math.sqrt(1 + trace)
244
        local recip = 0.5/s
245
        return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
246
    else
247
        local i = 0
248
        if m11 > m00 then
249
            i = 1
250
        end
251
        if m22 > (i == 0 and m00 or m11) then
252
            i = 2
253
        end
254
        if i == 0 then
255
            local s = math.sqrt(m00-m11-m22+1)
256
            local recip = 0.5/s
257
            return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
258
        elseif i == 1 then
259
            local s = math.sqrt(m11-m22-m00+1)
260
            local recip = 0.5/s
261
            return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
262
        elseif i == 2 then
263
            local s = math.sqrt(m22-m00-m11+1)
264
            local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
265
        end
266
    end
267
end
268
local function QuaternionToCFrame(px, py, pz, x, y, z, w)
269
    local xs, ys, zs = x + x, y + y, z + z
270
    local wx, wy, wz = w*xs, w*ys, w*zs
271
    local xx = x*xs
272
    local xy = x*ys
273
    local xz = x*zs
274
    local yy = y*ys
275
    local yz = y*zs
276
    local zz = z*zs
277
    return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
278
end  
279
local function QuaternionSlerp(a, b, t)
280
    local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
281
    local startInterp, finishInterp;
282
    if cosTheta >= 0.0001 then
283
        if (1 - cosTheta) > 0.0001 then
284
            local theta = math.acos(cosTheta)
285
            local invSinTheta = 1/math.sin(theta)
286
            startInterp = math.sin((1-t)*theta)*invSinTheta
287
                finishInterp = math.sin(t*theta)*invSinTheta  
288
        else
289
               startInterp = 1-t
290
               finishInterp = t
291
        end
292
    else
293
        if (1+cosTheta) > 0.0001 then
294
            local theta = math.acos(-cosTheta)
295
            local invSinTheta = 1/math.sin(theta)
296
            startInterp = math.sin((t-1)*theta)*invSinTheta
297
            finishInterp = math.sin(t*theta)*invSinTheta
298
        else
299
            startInterp = t-1
300
            finishInterp = t
301
        end
302
    end
303
    return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
304
end  
305
function clerp(a,b,t)
306
    local qa = {QuaternionFromCFrame(a)}
307
    local qb = {QuaternionFromCFrame(b)}
308
    local ax, ay, az = a.x, a.y, a.z
309
    local bx, by, bz = b.x, b.y, b.z  
310
    local _t = 1-t
311
    return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
312
end
313
314
RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
315
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
316
317
RW = newWeld(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) 
318
LW = newWeld(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
319
RH = newWeld(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
320
LH = newWeld(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
321
RootJoint.C1 = CFrame.new(0, 0, 0)
322
RootJoint.C0 = CFrame.new(0, 0, 0)
323
Torso.Neck.C1 = CFrame.new(0, 0, 0)
324
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
325
326
rarmc1 = RW.C1
327
larmc1 = LW.C1
328
rlegc1 = RH.C1
329
llegc1 = LH.C1
330
331
local resetc1 = false
332
333
function PlayAnimationFromTable(table, speed, bool)
334
    RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) 
335
    Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) 
336
    RW.C0 = clerp(RW.C0, table[3], speed) 
337
    LW.C0 = clerp(LW.C0, table[4], speed) 
338
    RH.C0 = clerp(RH.C0, table[5], speed) 
339
    LH.C0 = clerp(LH.C0, table[6], speed) 
340
    if bool == true then
341
        if resetc1 == false then
342
            resetc1 = true
343
            RootJoint.C1 = RootJoint.C1
344
            Torso.Neck.C1 = Torso.Neck.C1
345
            RW.C1 = rarmc1
346
            LW.C1 = larmc1
347
            RH.C1 = rlegc1
348
            LH.C1 = llegc1
349
        end
350
    end
351
end
352
353
ArtificialHB = Create("BindableEvent", script){
354
    Parent = script,
355
    Name = "Heartbeat",
356
}
357
358
script:WaitForChild("Heartbeat")
359
360
frame = 1 / 30
361
tf = 0
362
allowframeloss = false
363
tossremainder = false
364
lastframe = tick()
365
script.Heartbeat:Fire()
366
367
game:GetService("RunService").Heartbeat:connect(function(s, p)
368
    tf = tf + s
369
    if tf >= frame then
370
        if allowframeloss then
371
            script.Heartbeat:Fire()
372
            lastframe = tick()
373
        else
374
            for i = 1, math.floor(tf / frame) do
375
                script.Heartbeat:Fire()
376
            end
377
            lastframe = tick()
378
        end
379
        if tossremainder then
380
            tf = 0
381
        else
382
            tf = tf - frame * math.floor(tf / frame)
383
        end
384
    end
385
end)
386
387
function swait(num)
388
    if num == 0 or num == nil then
389
        ArtificialHB.Event:wait()
390
    else
391
        for i = 0, num do
392
            ArtificialHB.Event:wait()
393
        end
394
    end
395
end
396
397
function RemoveOutlines(part)
398
    part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
399
end
400
    
401
CFuncs = {  
402
    Part = {
403
        Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
404
            local Part = Create("Part"){
405
                Parent = Parent,
406
                Reflectance = Reflectance,
407
                Transparency = Transparency,
408
                CanCollide = false,
409
                Locked = true,
410
                BrickColor = BrickColor.new(tostring(BColor)),
411
                Name = Name,
412
                Size = Size,
413
                Material = Material,
414
            }
415
            RemoveOutlines(Part)
416
            return Part
417
        end;
418
    };
419
    
420
    Mesh = {
421
        Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
422
            local Msh = Create(Mesh){
423
                Parent = Part,
424
                Offset = OffSet,
425
                Scale = Scale,
426
            }
427
            if Mesh == "SpecialMesh" then
428
                Msh.MeshType = MeshType
429
                Msh.MeshId = MeshId
430
            end
431
            return Msh
432
        end;
433
    };
434
435
    Weld = {
436
        Create = function(Parent, Part0, Part1, C0, C1)
437
            local Weld = Create("Weld"){
438
                Parent = Parent,
439
                Part0 = Part0,
440
                Part1 = Part1,
441
                C0 = C0,
442
                C1 = C1,
443
            }
444
            return Weld
445
        end;
446
    };
447
448
    Sound = {
449
        Create = function(id, par, vol, pit) 
450
            local Sound = Create("Sound"){
451
                Volume = vol,
452
                Pitch = pit or 1,
453
                SoundId = "rbxassetid://" .. id,
454
                Parent = par or workspace,
455
            }
456
            Sound:play() 
457
            game:GetService("Debris"):AddItem(Sound, 130)
458
            return Sound
459
        end;
460
    };
461
    
462
    Decal = {
463
        Create = function(Color, Texture, Transparency, Name, Parent)
464
            local Decal = Create("Decal"){
465
                Color3 = Color,
466
                Texture = "rbxassetid://" .. Texture,
467
                Transparency = Transparency,
468
                Name = Name,
469
                Parent = Parent,
470
            }
471
            return Decal
472
        end;
473
    };
474
    
475
    BillboardGui = {
476
        Create = function(Parent, Image, Position, Size)
477
            local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
478
            BillPar.CFrame = CFrame.new(Position)
479
            local Bill = Create("BillboardGui"){
480
                Parent = BillPar,
481
                Adornee = BillPar,
482
                Size = UDim2.new(1, 0, 1, 0),
483
                SizeOffset = Vector2.new(Size, Size),
484
            }
485
            local d = Create("ImageLabel", Bill){
486
                Parent = Bill,
487
                BackgroundTransparency = 1,
488
                Size = UDim2.new(1, 0, 1, 0),
489
                Image = "rbxassetid://" .. Image,
490
            }
491
            return BillPar
492
        end
493
    };
494
    
495
    ParticleEmitter = {
496
        Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
497
            local Particle = Create("ParticleEmitter"){
498
                Parent = Parent,
499
                Color = ColorSequence.new(Color1, Color2),
500
                LightEmission = LightEmission,
501
                Size = Size,
502
                Texture = Texture,
503
                Transparency = Transparency,
504
                ZOffset = ZOffset,
505
                Acceleration = Accel,
506
                Drag = Drag,
507
                LockedToPart = LockedToPart,
508
                VelocityInheritance = VelocityInheritance,
509
                EmissionDirection = EmissionDirection,
510
                Enabled = Enabled,
511
                Lifetime = LifeTime,
512
                Rate = Rate,
513
                Rotation = Rotation,
514
                RotSpeed = RotSpeed,
515
                Speed = Speed,
516
                VelocitySpread = VelocitySpread,
517
            }
518
            return Particle
519
        end;
520
    };
521
    
522
    CreateTemplate = {
523
        
524
    };
525
}
526
527
function rayCast(Position, Direction, Range, Ignore)
528
    return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
529
end 
530
531
FindNearestTorso = function(pos)
532
    local list = (game.Workspace:children())
533
    local torso = nil
534
    local dist = 1000
535
    local temp, human, temp2 = nil, nil, nil
536
    for x = 1, #list do
537
        temp2 = list[x]
538
        if temp2.className == "Model" and temp2.Name ~= Character.Name then
539
            temp = temp2:findFirstChild("Torso")
540
            human = temp2:findFirstChild("Humanoid")
541
            if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
542
                local dohit = true
543
                if dohit == true then
544
                    torso = temp
545
                    dist = (temp.Position - pos).magnitude
546
                end
547
            end
548
        end
549
    end
550
    return torso, dist
551
end
552
553
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
554
    if hit.Parent == nil then
555
        return
556
    end
557
    local h = hit.Parent:FindFirstChild("Humanoid")
558
    for _, v in pairs(hit.Parent:children()) do
559
        if v.ClassName == "Humanoid" then
560
            h = v
561
        end
562
    end
563
    if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
564
        if hit.Parent:findFirstChild("DebounceHit") ~= nil then
565
            if hit.Parent.DebounceHit.Value == true then
566
                return
567
            end
568
        end
569
        local char = Create("ObjectValue"){
570
            Name = "creator",
571
            Value = game:service("Players").LocalPlayer,
572
            Parent = h,
573
        }
574
        game:GetService("Debris"):AddItem(char, .5)
575
        CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) 
576
        local blocked = false
577
        local block = hit.Parent:findFirstChild("Block")
578
        if block ~= nil then
579
            if block.className == "IntValue" then
580
                if block.Value > 0 then
581
                    blocked = true
582
                    block.Value = block.Value - 1
583
                    print(block.Value)
584
                end
585
            end
586
        end
587
        local Damage = math.random(minim, maxim)
588
        h.Health = h.Health - Damage
589
        ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(math.random(-10,10), 1.5, math.random(-10,10))), -Damage, 1.5, BrickColor.new("Crimson").Color)
590
        if Type == "Knockdown" then
591
            local hum = hit.Parent.Humanoid
592
            hum.PlatformStand = true
593
            coroutine.resume(coroutine.create(function(HHumanoid)
594
                swait(1)
595
                HHumanoid.PlatformStand = false
596
            end), hum)
597
            local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
598
            local bodvol = Create("BodyVelocity"){
599
                velocity = angle * knockback,
600
                P = 5000,
601
                maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
602
                Parent = hit,
603
            }
604
            local rl = Create("BodyAngularVelocity"){
605
                P = 3000,
606
                maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
607
                angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
608
                Parent = hit,
609
            }
610
            game:GetService("Debris"):AddItem(bodvol, .5)
611
            game:GetService("Debris"):AddItem(rl, .5)
612
        elseif Type == "Normal" then
613
            local vp = Create("BodyVelocity"){
614
                P = 500,
615
                maxForce = Vector3.new(math.huge, 0, math.huge),
616
                velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
617
            }
618
            if knockback > 0 then
619
                vp.Parent = hit.Parent.Torso
620
            end
621
            game:GetService("Debris"):AddItem(vp, .5)
622
        elseif Type == "Up" then
623
            local bodyVelocity = Create("BodyVelocity"){
624
                velocity = Vector3.new(0, 20, 0),
625
                P = 5000,
626
                maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
627
                Parent = hit,
628
            }
629
            game:GetService("Debris"):AddItem(bodyVelocity, .5)
630
        elseif Type == "DarkUp" then
631
            coroutine.resume(coroutine.create(function()
632
                for i = 0, 1, 0.1 do
633
                    swait()
634
                    Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
635
                end
636
            end))
637
            local bodyVelocity = Create("BodyVelocity"){
638
                velocity = Vector3.new(0, 20, 0),
639
                P = 5000,
640
                maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
641
                Parent = hit,
642
            }
643
            game:GetService("Debris"):AddItem(bodyVelocity, 1)
644
        elseif Type == "Snare" then
645
            local bp = Create("BodyPosition"){
646
                P = 2000,
647
                D = 100,
648
                maxForce = Vector3.new(math.huge, math.huge, math.huge),
649
                position = hit.Parent.Torso.Position,
650
                Parent = hit.Parent.Torso,
651
            }
652
            game:GetService("Debris"):AddItem(bp, 1)
653
        elseif Type == "Freeze" then
654
            local BodPos = Create("BodyPosition"){
655
                P = 50000,
656
                D = 1000,
657
                maxForce = Vector3.new(math.huge, math.huge, math.huge),
658
                position = hit.Parent.Torso.Position,
659
                Parent = hit.Parent.Torso,
660
            }
661
            local BodGy = Create("BodyGyro") {
662
                maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
663
                P = 20e+003,
664
                Parent = hit.Parent.Torso,
665
                cframe = hit.Parent.Torso.CFrame,
666
            }
667
            hit.Parent.Torso.Anchored = true
668
            coroutine.resume(coroutine.create(function(Part) 
669
                swait(1.5)
670
                Part.Anchored = false
671
            end), hit.Parent.Torso)
672
            game:GetService("Debris"):AddItem(BodPos, 3)
673
            game:GetService("Debris"):AddItem(BodGy, 3)
674
        end
675
        local debounce = Create("BoolValue"){
676
            Name = "DebounceHit",
677
            Parent = hit.Parent,
678
            Value = true,
679
        }
680
        game:GetService("Debris"):AddItem(debounce, Delay)
681
        char = Create("ObjectValue"){
682
            Name = "creator",
683
            Value = Player,
684
            Parent = h,
685
        }
686
        game:GetService("Debris"):AddItem(char, .5)
687
    end
688
end
689
690
function ShowDamage(Pos, Text, Time, Color)
691
    local Rate = (1 / 30)
692
    local Pos = (Pos or Vector3.new(0, 0, 0))
693
    local Text = (Text or "")
694
    local Time = (Time or 2)
695
    local Color = (Color or Color3.new(1, 0, 1))
696
    local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
697
    EffectPart.Anchored = true
698
    local BillboardGui = Create("BillboardGui"){
699
        Size = UDim2.new(3, 0, 3, 0),
700
        Adornee = EffectPart,
701
        Parent = EffectPart,
702
    }
703
    local TextLabel = Create("TextLabel"){
704
        BackgroundTransparency = 1,
705
        Size = UDim2.new(1, 0, 1, 0),
706
        Text = Text,
707
        Font = "SciFi",
708
        TextColor3 = Color,
709
        TextScaled = true,
710
        Parent = BillboardGui,
711
    }
712
    game.Debris:AddItem(EffectPart, (Time))
713
    EffectPart.Parent = game:GetService("Workspace")
714
    delay(0, function()
715
        local Frames = (Time / Rate)
716
        for Frame = 1, Frames do
717
            wait(Rate)
718
            local Percent = (Frame / Frames)
719
            EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
720
            TextLabel.TextTransparency = Percent
721
        end
722
        if EffectPart and EffectPart.Parent then
723
            EffectPart:Destroy()
724
        end
725
    end)
726
end
727
728
local STDamage = false
729
local Slamming = false
730
local StrongPunch = false
731
function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
732
    if Slamming == false then
733
        Explosions = Instance.new("Explosion", Part)
734
        Explosions.Visible = false
735
        Explosions.BlastPressure = 1000
736
        Explosions.BlastRadius = 5
737
        Explosions.Position = Part.Position
738
        Explosions.DestroyJointRadiusPercent = 0
739
        Explosions.ExplosionType = "CratersAndDebris"
740
    elseif Slamming == true then
741
        Explosions = Instance.new("Explosion", Part)
742
        Explosions.Visible = false
743
        Explosions.BlastPressure = 1000
744
        Explosions.BlastRadius = 10
745
        Explosions.Position = Part.Position
746
        Explosions.DestroyJointRadiusPercent = 0
747
        Explosions.ExplosionType = "CratersAndDebris"
748
    end
749
    if StrongPunch == true then
750
        Explosions = Instance.new("Explosion", Part)
751
        Explosions.Visible = false
752
        Explosions.BlastPressure = 10000
753
        Explosions.BlastRadius = 30
754
        Explosions.Position = Part.Position
755
        Explosions.DestroyJointRadiusPercent = 0
756
        Explosions.ExplosionType = "CratersAndDebris"
757
    end
758
    for _, char in pairs(workspace:children()) do
759
        local hum = char:findFirstChild("Humanoid")
760
        if hum ~= nil then
761
            local head = char:findFirstChild("Torso")
762
            if head ~= nil then
763
                local targ = head.Position - Part.Position
764
                local mag = targ.magnitude
765
                if mag <= Magnitude and char.Name ~= Player.Name then 
766
                    Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitSound, HitPitch)
767
                    if STDamage == true then
768
                        for i = 1, 10 do
769
                            CamShake(1, 70000)
770
                        end
771
                    elseif STDamage == false then
772
                        CamShake(1, 90000)
773
                    end
774
                end
775
            end
776
        end
777
    end
778
end
779
780
HHandle = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "HHandle", Vector3.new(1.09999979, 0.299999923, 1.0999999))
781
HHandleWeld = CFuncs.Weld.Create(m, Head, HHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0646438599, -0.0500068665, -0.0646400452, -0.707107365, -3.21031663e-008, 0.707106411, -8.19564079e-008, 1.00000119, -1.41561088e-007, -0.707106352, 1.38630043e-007, -0.707107484))
782
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.09999979, 0.399999917, 1.0999999))
783
PartWeld = CFuncs.Weld.Create(m, HHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.350002289, 0, 1.00000024, -3.21031663e-008, -5.96046448e-008, -3.21031663e-008, 1.00000119, 1.38630043e-007, -5.96046448e-008, 1.38630043e-007, 1.00000024))
784
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.09999979, 0.499999911, 1.0999999))
785
PartWeld = CFuncs.Weld.Create(m, HHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-7.62939453e-006, -0.400001526, 7.62939453e-006, 1.00000024, -3.21031663e-008, -5.96046448e-008, -3.21031663e-008, 1.00000119, 1.38630043e-007, -5.96046448e-008, 1.38630043e-007, 1.00000024))
786
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.499999821, 0.299999893, 0.200000003))
787
PartWeld = CFuncs.Weld.Create(m, HHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.300033569, -0.800000191, -0.44997406, 1.00000024, -3.21031663e-008, -5.96046448e-008, -3.21031663e-008, 1.00000119, 1.38630043e-007, -5.96046448e-008, 1.38630043e-007, 1.00000024))
788
Eye1 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 1, "Bright blue", "Eye1", Vector3.new(0.400000006, 0.200000003, 0.200000003))
789
PartWeld = CFuncs.Weld.Create(m, HHandle, Eye1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0381011963, -0.0574798584, 0.471725464, -2.89082527e-006, 0.173647985, -0.984807968, -6.2584877e-007, 0.984808922, 0.173648104, 1.00000012, 1.02902288e-006, -2.77161598e-006))
790
CFuncs.Mesh.Create("SpecialMesh", Eye1, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
791
Eye2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 1, "Bright blue", "Eye2", Vector3.new(0.400000006, 0.200000003, 0.200000003))
792
PartWeld = CFuncs.Weld.Create(m, HHandle, Eye2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0115432739, -0.0487277508, 0.482452393, -0.981060266, -0.173648134, -0.0858327746, -0.172987267, 0.984808922, -0.0151339322, 0.0871568322, 3.96735317e-007, -0.996194839))
793
CFuncs.Mesh.Create("SpecialMesh", Eye2, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
794
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.499999821, 0.300000012, 0.200000003))
795
PartWeld = CFuncs.Weld.Create(m, HHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.299995422, -0.800000191, 0.449989319, 5.96046448e-008, -1.38630043e-007, -1.00000024, -3.21031663e-008, 1.00000119, 1.38630043e-007, 1.00000024, -3.21031663e-008, -5.96046448e-008))
796
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.10000002, 0.999999881, 1.0999999))
797
PartWeld = CFuncs.Weld.Create(m, HHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.200004578, -0.150001526, 0.200012207, 1.00000024, -3.21031663e-008, -5.96046448e-008, -3.21031663e-008, 1.00000119, 1.38630043e-007, -5.96046448e-008, 1.38630043e-007, 1.00000024))
798
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.600000024))
799
WedgeWeld = CFuncs.Weld.Create(m, HHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.449981689, -0.750000954, 0.250007629, 5.96046448e-008, -1.38630043e-007, -1.00000024, -3.21031663e-008, 1.00000119, 1.38630043e-007, 1.00000024, -3.21031663e-008, -5.96046448e-008))
800
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
801
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.20000005, 0.200000003, 0.200000003))
802
WedgeWeld = CFuncs.Weld.Create(m, HHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0500011444, -0.449970245, 0.650001526, 3.21031663e-008, -1.00000119, -1.38630043e-007, -5.96046448e-008, 1.38630043e-007, 1.00000024, -1.00000024, 3.21031663e-008, 5.96046448e-008))
803
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
804
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.5))
805
WedgeWeld = CFuncs.Weld.Create(m, HHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.449970245, -1.05000114, 0.300033569, -5.96046448e-008, 1.38630043e-007, 1.00000024, -3.21031663e-008, 1.00000119, 1.38630043e-007, -1.00000024, 3.21031663e-008, 5.96046448e-008))
806
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
807
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.5))
808
WedgeWeld = CFuncs.Weld.Create(m, HHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.449996948, -1.05000019, 0.300014496, 1.00000024, -3.21031663e-008, -5.96046448e-008, -3.21031663e-008, 1.00000119, 1.38630043e-007, -5.96046448e-008, 1.38630043e-007, 1.00000024))
809
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
810
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.20000005, 0.200000003, 0.200000003))
811
WedgeWeld = CFuncs.Weld.Create(m, HHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0500011444, -0.650009155, 0.449989319, 3.21031663e-008, -1.00000119, -1.38630043e-007, 5.96046448e-008, -1.38630043e-007, -1.00000024, 1.00000024, -3.21031663e-008, -5.96046448e-008))
812
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
813
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.600000024))
814
WedgeWeld = CFuncs.Weld.Create(m, HHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.450012207, -0.750001907, 0.249996185, -1.00000024, 3.21031663e-008, 5.96046448e-008, -3.21031663e-008, 1.00000119, 1.38630043e-007, 5.96046448e-008, -1.38630043e-007, -1.00000024))
815
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
816
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.200000003, 0.300000012, 0.200000003))
817
WedgeWeld = CFuncs.Weld.Create(m, HHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.449985504, -0.800001144, 0.0500106812, 5.96046448e-008, -1.38630043e-007, -1.00000024, -3.21031663e-008, 1.00000119, 1.38630043e-007, 1.00000024, -3.21031663e-008, -5.96046448e-008))
818
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
819
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.200000003, 0.300000012, 0.200000003))
820
WedgeWeld = CFuncs.Weld.Create(m, HHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.44997406, -0.800002098, 0.0500030518, -1.00000024, 3.21031663e-008, 5.96046448e-008, -3.21031663e-008, 1.00000119, 1.38630043e-007, 5.96046448e-008, -1.38630043e-007, -1.00000024))
821
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
822
THandle = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "THandle", Vector3.new(1, 0.799999893, 1))
823
THandleWeld = CFuncs.Weld.Create(m, Torso, THandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1, -8.19564079e-008, 5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, 5.96046519e-008, -1.41561088e-007, 1.00000024))
824
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.19999981, 0.699999928, 1.20000005))
825
PartWeld = CFuncs.Weld.Create(m, THandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.328445435, -0.67606163, -0.323509216, 0.709785044, 0.0255700666, -0.70395416, -0.000232494262, 0.999350607, 0.0360652842, 0.704418302, -0.0254352745, 0.709329426))
826
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.99999994, 0.499999851, 0.900000036))
827
PartWeld = CFuncs.Weld.Create(m, THandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.354995728, 0.217259884, 0.408233643, 0.709785223, -0.157498211, -0.686585248, -0.000232138293, 0.974633098, -0.2238141, 0.704418123, 0.159019142, 0.691742837))
828
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.80000019, 0.700000048, 0.800000012))
829
PartWeld = CFuncs.Weld.Create(m, THandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.81469727e-005, -0.843423843, -1.0044136, 1, -8.19564079e-008, 5.96046519e-008, -1.01078633e-007, 0.939694166, -0.342019171, 1.52638329e-008, 0.34201926, 0.939693213))
830
CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
831
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.60000014, 0.400000006, 1.39999998))
832
PartWeld = CFuncs.Weld.Create(m, THandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.81469727e-005, -0.793423653, -0.504411697, 1, -8.19564079e-008, 5.96046519e-008, -1.01078633e-007, 0.939694166, -0.342019171, 1.52638329e-008, 0.34201926, 0.939693213))
833
CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
834
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.19999981, 0.499999911, 1.19999993))
835
PartWeld = CFuncs.Weld.Create(m, THandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.198799133, -0.0796661377, -0.194431305, 0.709785044, 0.0255700666, -0.70395416, -0.000232494262, 0.999350607, 0.0360652842, 0.704418302, -0.0254352745, 0.709329426))
836
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.80000019, 0.300000012, 1.80000007))
837
PartWeld = CFuncs.Weld.Create(m, THandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-6.10351563e-005, -1.04342794, -0.404396057, 1, -8.19564079e-008, 5.96046519e-008, -1.01078633e-007, 0.939694166, -0.342019171, 1.52638329e-008, 0.34201926, 0.939693213))
838
CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
839
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.200000003, 1.10000002, 0.300000012))
840
PartWeld = CFuncs.Weld.Create(m, THandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.34057617e-005, -0.943422318, -1.35441589, 1, -8.19564079e-008, 5.96046519e-008, -1.01078633e-007, 0.939694166, -0.342019171, 1.52638329e-008, 0.34201926, 0.939693213))
841
CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
842
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.09999979, 0.499999911, 1.0999999))
843
PartWeld = CFuncs.Weld.Create(m, THandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.11920929, 0.416726112, -0.115348816, 0.709785044, 0.0255700666, -0.70395416, -0.000232494262, 0.999350607, 0.0360652842, 0.704418302, -0.0254352745, 0.709329426))
844
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.39999986, 1.19999993, 1.39999986))
845
PartWeld = CFuncs.Weld.Create(m, THandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.218803406, -0.55094862, 0.222564697, 0.709785223, -0.157498211, -0.686585248, -0.000232138293, 0.974633098, -0.2238141, 0.704418123, 0.159019142, 0.691742837))
846
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.999999762, 0.300000012, 0.799999893))
847
PartWeld = CFuncs.Weld.Create(m, THandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0691986084, 0.816726685, -0.165359497, 0.709785044, 0.0255700666, -0.70395416, -0.000232494262, 0.999350607, 0.0360652842, 0.704418302, -0.0254352745, 0.709329426))
848
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.899999976, 0.499999851, 0.899999917))
849
PartWeld = CFuncs.Weld.Create(m, THandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.331642151, 0.516366959, 0.335166931, 0.709785223, -0.157498211, -0.686585248, -0.000232138293, 0.974633098, -0.2238141, 0.704418123, 0.159019142, 0.691742837))
850
AHandleR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "AHandleR", Vector3.new(0.799999952, 0.800000012, 1.22000003))
851
AHandleRWeld = CFuncs.Weld.Create(m, RightArm, AHandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.209915161, 0.00999641418, -3.81469727e-006, 1, -8.19564079e-008, 5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, 5.96046519e-008, -1.41561088e-007, 1.00000024))
852
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.200000003, 0.899999976, 1.01999998))
853
PartWeld = CFuncs.Weld.Create(m, AHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999984741, 0.550004005, 0, 1, -8.19564079e-008, 5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, 5.96046519e-008, -1.41561088e-007, 1.00000024))
854
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.300000012, 0.200000003, 0.200000003))
855
PartWeld = CFuncs.Weld.Create(m, AHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.150001526, 0.200003624, -0.359994888, 1, -8.19564079e-008, 5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, 5.96046519e-008, -1.41561088e-007, 1.00000024))
856
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.300000012, 0.200000003, 0.200000003))
857
PartWeld = CFuncs.Weld.Create(m, AHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.149993896, 0.20000267, 0.359992981, 1, -8.19564079e-008, 5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, 5.96046519e-008, -1.41561088e-007, 1.00000024))
858
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.20000005, 0.800000012, 1.20000005))
859
PartWeld = CFuncs.Weld.Create(m, AHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.209899902, -0.809997559, 5.7220459e-006, -1, 8.19564079e-008, -5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, -5.96046519e-008, 1.41561088e-007, -1.00000024))
860
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.200000003, 0.699999988, 1.01999998))
861
PartWeld = CFuncs.Weld.Create(m, AHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.300003052, 0.650004387, 1.71661377e-005, 1, -8.19564079e-008, 5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, 5.96046519e-008, -1.41561088e-007, 1.00000024))
862
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.300000012, 0.699999988, 1.01999998))
863
PartWeld = CFuncs.Weld.Create(m, AHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.149993896, 0.650003433, 0, 1, -8.19564079e-008, 5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, 5.96046519e-008, -1.41561088e-007, 1.00000024))
864
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.200000003, 0.699999928, 0.520000041))
865
PartWeld = CFuncs.Weld.Create(m, AHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199996948, -0.049996376, -3.81469727e-006, 1, -8.19564079e-008, 5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, 5.96046519e-008, -1.41561088e-007, 1.00000024))
866
HitboxR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "HitboxR", Vector3.new(0.799999952, 0.800000012, 1.22000003))
867
HitboxRWeld = CFuncs.Weld.Create(m, AHandleR, HitboxR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.700003624, 0, 1, -8.19564079e-008, 5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, 5.96046519e-008, -1.41561088e-007, 1.00000024))
868
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.200000003, 0.5, 0.200000003))
869
WedgeWeld = CFuncs.Weld.Create(m, AHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.200012207, -0.149997711, 0.360010147, -1, 8.19564079e-008, -5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, -5.96046519e-008, 1.41561088e-007, -1.00000024))
870
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
871
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.19999993, 0.200000003, 0.300000012))
872
WedgeWeld = CFuncs.Weld.Create(m, AHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -1.30999851, 0.659896851, -5.96046519e-008, 1.41561088e-007, -1.00000024, -8.19564079e-008, 1.00000119, -1.41561088e-007, 1, -8.19564079e-008, 5.96046519e-008))
873
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
874
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.200000003, 0.5, 0.200000003))
875
WedgeWeld = CFuncs.Weld.Create(m, AHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199981689, -0.149998665, 0.359991074, 1, -8.19564079e-008, 5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, 5.96046519e-008, -1.41561088e-007, 1.00000024))
876
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
877
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.19999993, 0.200000003, 0.899999976))
878
WedgeWeld = CFuncs.Weld.Create(m, AHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.90734863e-006, 0.309997559, -0.0598983765, -5.96046519e-008, 1.41561088e-007, -1.00000024, 8.19564079e-008, -1.00000119, 1.41561088e-007, -1, 8.19564079e-008, -5.96046519e-008))
879
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
880
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.19999993, 0.200000003, 0.300000012))
881
WedgeWeld = CFuncs.Weld.Create(m, AHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.81469727e-006, 0.309999466, 0.659896851, 5.96046519e-008, -1.41561088e-007, 1.00000024, 8.19564079e-008, -1.00000119, 1.41561088e-007, 1, -8.19564079e-008, 5.96046519e-008))
882
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
883
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.01999998, 0.200000003, 0.300000012))
884
WedgeWeld = CFuncs.Weld.Create(m, AHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.7220459e-006, 0.200003624, 0.150016785, 5.96046519e-008, -1.41561088e-007, 1.00000024, -8.19564079e-008, 1.00000119, -1.41561088e-007, -1, 8.19564079e-008, -5.96046519e-008))
885
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
886
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.19999993, 0.300000012, 0.200000003))
887
WedgeWeld = CFuncs.Weld.Create(m, AHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316e-006, -1.06000042, 0.490097046, 5.96046519e-008, -1.41561088e-007, 1.00000024, -8.19564079e-008, 1.00000119, -1.41561088e-007, -1, 8.19564079e-008, -5.96046519e-008))
888
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
889
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.01999998, 0.200000003, 0.200000003))
890
WedgeWeld = CFuncs.Weld.Create(m, AHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.7220459e-006, 0.20000267, 0.299995422, -5.96046519e-008, 1.41561088e-007, -1.00000024, -8.19564079e-008, 1.00000119, -1.41561088e-007, 1, -8.19564079e-008, 5.96046519e-008))
891
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
892
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.19999993, 0.5, 0.200000003))
893
WedgeWeld = CFuncs.Weld.Create(m, AHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-006, 0.659999847, 0.490089417, -5.96046519e-008, 1.41561088e-007, -1.00000024, 8.19564079e-008, -1.00000119, 1.41561088e-007, -1, 8.19564079e-008, -5.96046519e-008))
894
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
895
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.19999993, 0.200000003, 0.900000095))
896
WedgeWeld = CFuncs.Weld.Create(m, AHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.7220459e-006, -1.30999947, -0.0598831177, 5.96046519e-008, -1.41561088e-007, 1.00000024, -8.19564079e-008, 1.00000119, -1.41561088e-007, -1, 8.19564079e-008, -5.96046519e-008))
897
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
898
AHandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "AHandleL", Vector3.new(0.800000072, 0.800000012, 1.22000003))
899
AHandleLWeld = CFuncs.Weld.Create(m, LeftArm, AHandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.210014343, 0.00999736786, 1.14440918e-005, -1, 8.19564079e-008, -5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, -5.96046519e-008, 1.41561088e-007, -1.00000024))
900
HitboxL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "HitboxL", Vector3.new(0.800000072, 0.800000012, 1.22000003))
901
HitboxLWeld = CFuncs.Weld.Create(m, AHandleL, HitboxL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.700003624, 0, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
902
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.300000012, 0.200000003, 0.200000003))
903
PartWeld = CFuncs.Weld.Create(m, AHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.149986267, 0.200001717, -0.360012054, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
904
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.200000003, 0.699999928, 0.520000041))
905
PartWeld = CFuncs.Weld.Create(m, AHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199989319, -0.0499982834, -9.53674316e-006, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
906
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.300000012, 0.200000003, 0.200000003))
907
PartWeld = CFuncs.Weld.Create(m, AHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.149986267, 0.200001717, 0.359992981, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
908
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.20000005, 0.800000012, 1.20000005))
909
PartWeld = CFuncs.Weld.Create(m, AHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.21005249, -0.81000042, 2.28881836e-005, -1, -8.19564079e-008, -5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, -5.96046519e-008, -1.41561088e-007, -1.00000024))
910
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.200000003, 0.899999976, 1.01999998))
911
PartWeld = CFuncs.Weld.Create(m, AHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999984741, 0.550003052, -5.7220459e-006, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
912
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.200000003, 0.699999988, 1.01999998))
913
PartWeld = CFuncs.Weld.Create(m, AHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.299995422, 0.650003433, -3.81469727e-006, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
914
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.300000012, 0.699999988, 1.01999998))
915
PartWeld = CFuncs.Weld.Create(m, AHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.149993896, 0.65000248, 0, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
916
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.19999993, 0.200000003, 0.300000012))
917
WedgeWeld = CFuncs.Weld.Create(m, AHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.81469727e-006, 0.309998512, 0.660064697, 5.96046519e-008, 1.41561088e-007, 1.00000024, -8.19564079e-008, -1.00000119, -1.41561088e-007, 1, 8.19564079e-008, 5.96046519e-008))
918
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
919
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.200000003, 0.5, 0.200000003))
920
WedgeWeld = CFuncs.Weld.Create(m, AHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199989319, -0.149998665, 0.359992981, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
921
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
922
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.19999993, 0.200000003, 0.900000095))
923
WedgeWeld = CFuncs.Weld.Create(m, AHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.47955322e-005, -1.30999947, -0.060043335, 5.96046519e-008, 1.41561088e-007, 1.00000024, 8.19564079e-008, 1.00000119, 1.41561088e-007, -1, -8.19564079e-008, -5.96046519e-008))
924
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
925
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.01999998, 0.200000003, 0.300000012))
926
WedgeWeld = CFuncs.Weld.Create(m, AHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.7220459e-006, 0.20000267, 0.150001526, 5.96046519e-008, 1.41561088e-007, 1.00000024, 8.19564079e-008, 1.00000119, 1.41561088e-007, -1, -8.19564079e-008, -5.96046519e-008))
927
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
928
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.200000003, 0.5, 0.200000003))
929
WedgeWeld = CFuncs.Weld.Create(m, AHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.199836731, -0.149998665, 0.36003685, -1, -8.19564079e-008, -5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, -5.96046519e-008, -1.41561088e-007, -1.00000024))
930
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
931
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.19999993, 0.5, 0.200000003))
932
WedgeWeld = CFuncs.Weld.Create(m, AHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.52587891e-005, 0.659998894, 0.489944458, -5.96046519e-008, -1.41561088e-007, -1.00000024, -8.19564079e-008, -1.00000119, -1.41561088e-007, -1, -8.19564079e-008, -5.96046519e-008))
933
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
934
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.200000003, 0.5, 0.200000003))
935
WedgeWeld = CFuncs.Weld.Create(m, AHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.199981689, -0.149999619, 0.360010147, -1, -8.19564079e-008, -5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, -5.96046519e-008, -1.41561088e-007, -1.00000024))
936
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
937
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.19999993, 0.200000003, 0.899999976))
938
WedgeWeld = CFuncs.Weld.Create(m, AHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.67028809e-005, 0.309998512, -0.0600509644, -5.96046519e-008, -1.41561088e-007, -1.00000024, -8.19564079e-008, -1.00000119, -1.41561088e-007, -1, -8.19564079e-008, -5.96046519e-008))
939
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
940
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.19999993, 0.300000012, 0.200000003))
941
WedgeWeld = CFuncs.Weld.Create(m, AHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.33514404e-005, -1.06000042, 0.489936829, 5.96046519e-008, 1.41561088e-007, 1.00000024, 8.19564079e-008, 1.00000119, 1.41561088e-007, -1, -8.19564079e-008, -5.96046519e-008))
942
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
943
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.01999998, 0.200000003, 0.200000003))
944
WedgeWeld = CFuncs.Weld.Create(m, AHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-006, 0.200003624, 0.299987793, -5.96046519e-008, -1.41561088e-007, -1.00000024, 8.19564079e-008, 1.00000119, 1.41561088e-007, 1, 8.19564079e-008, 5.96046519e-008))
945
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
946
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(1.19999993, 0.200000003, 0.300000012))
947
WedgeWeld = CFuncs.Weld.Create(m, AHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.53674316e-006, -1.30999947, 0.660049438, -5.96046519e-008, -1.41561088e-007, -1.00000024, 8.19564079e-008, 1.00000119, 1.41561088e-007, 1, 8.19564079e-008, 5.96046519e-008))
948
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
949
LHandleR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "LHandleR", Vector3.new(1.02999997, 1.00999999, 1.19000006))
950
LHandleRWeld = CFuncs.Weld.Create(m, RightLeg, LHandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00498962402, -0.0950021744, 0.00499534607, -1, 8.19564079e-008, -5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, -5.96046519e-008, 1.41561088e-007, -1.00000024))
951
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.800000012, 0.800000012, 0.200000003))
952
PartWeld = CFuncs.Weld.Create(m, LHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00498962402, -0.00499916077, -0.604999542, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
953
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.02999997, 1.00999999, 1.19000006))
954
PartWeld = CFuncs.Weld.Create(m, LHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.600002289, 0, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
955
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.02999997, 0.699999928, 1.19000006))
956
PartWeld = CFuncs.Weld.Create(m, LHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.454998016, 0, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
957
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.400000006, 1.20000005, 0.200000003))
958
PartWeld = CFuncs.Weld.Create(m, LHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00499725342, -0.00499916077, -0.604999542, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
959
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.800000131, 1.20000005, 0.800000012))
960
PartWeld = CFuncs.Weld.Create(m, LHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00499725342, 0.0149993896, 0.00500297546, 2.28095047e-007, 1.00000775, 2.99581131e-007, -1.00000417, 5.63755016e-008, -4.06898749e-007, -2.98379774e-007, 2.07959161e-008, 1.0000037))
961
CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
962
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003))
963
WedgeWeld = CFuncs.Weld.Create(m, LHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.604999542, -0.504998207, 0.29499054, -2.98023224e-008, -6.70552254e-008, -1.00000012, 3.7252903e-008, 1.0000006, 7.4505806e-008, 1, 4.47034836e-008, 2.98023224e-008))
964
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
965
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003))
966
WedgeWeld = CFuncs.Weld.Create(m, LHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.60499382, -0.495001793, 0.305000305, -5.96046519e-008, -1.41561088e-007, -1.00000024, -8.19564079e-008, -1.00000119, -1.41561088e-007, -1, -8.19564079e-008, -5.96046519e-008))
967
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
968
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003))
969
WedgeWeld = CFuncs.Weld.Create(m, LHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.604999542, -0.495001793, 0.29499054, 2.98023224e-008, 6.70552254e-008, 1.00000012, -3.7252903e-008, -1.0000006, -7.4505806e-008, 1, 4.47034836e-008, 2.98023224e-008))
970
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
971
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003))
972
WedgeWeld = CFuncs.Weld.Create(m, LHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.604999542, -0.504998207, 0.305000305, 2.98023224e-008, 6.70552254e-008, 1.00000012, 3.7252903e-008, 1.0000006, 7.4505806e-008, -1, -4.47034836e-008, -2.98023224e-008))
973
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
974
LHandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "LHandleL", Vector3.new(1.02999997, 1.00999999, 1.19000006))
975
LHandleLWeld = CFuncs.Weld.Create(m, LeftLeg, LHandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00498199463, -0.095000267, 0.00502204895, -1, 8.19564079e-008, -5.96046519e-008, -8.19564079e-008, 1.00000119, -1.41561088e-007, -5.96046519e-008, 1.41561088e-007, -1.00000024))
976
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.02999997, 1.00999999, 1.19000006))
977
PartWeld = CFuncs.Weld.Create(m, LHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.600001335, 0, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
978
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.400000006, 1.20000005, 0.300000012))
979
PartWeld = CFuncs.Weld.Create(m, LHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00499725342, -0.00500106812, -0.554998398, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
980
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(1.02999997, 0.699999928, 1.19000006))
981
PartWeld = CFuncs.Weld.Create(m, LHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.454999924, 0, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
982
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.800000131, 1.20000005, 0.800000012))
983
PartWeld = CFuncs.Weld.Create(m, LHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00499534607, 0.0149993896, 0.00500297546, 2.28095047e-007, 1.00000775, 2.99581131e-007, -1.00000417, 5.63755016e-008, -4.06898749e-007, -2.98379774e-007, 2.07959161e-008, 1.0000037))
984
CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
985
Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Part", Vector3.new(0.800000012, 0.800000012, 0.300000012))
986
PartWeld = CFuncs.Weld.Create(m, LHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00498962402, -0.00500106812, -0.554998398, 1, 8.19564079e-008, 5.96046519e-008, 8.19564079e-008, 1.00000119, 1.41561088e-007, 5.96046519e-008, 1.41561088e-007, 1.00000024))
987
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.300000012, 0.200000003, 0.200000003))
988
WedgeWeld = CFuncs.Weld.Create(m, LHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.554998398, -0.505000114, 0.305000305, 2.98023224e-008, 6.70552254e-008, 1.00000012, 3.7252903e-008, 1.0000006, 7.4505806e-008, -1, -4.47034836e-008, -2.98023224e-008))
989
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
990
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.300000012, 0.200000003, 0.200000003))
991
WedgeWeld = CFuncs.Weld.Create(m, LHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.554998398, -0.505000114, 0.29499054, -2.98023224e-008, -6.70552254e-008, -1.00000012, 3.7252903e-008, 1.0000006, 7.4505806e-008, 1, 4.47034836e-008, 2.98023224e-008))
992
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
993
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.300000012, 0.200000003, 0.200000003))
994
WedgeWeld = CFuncs.Weld.Create(m, LHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.554998398, -0.494999886, 0.29499054, 2.98023224e-008, 6.70552254e-008, 1.00000012, -3.7252903e-008, -1.0000006, -7.4505806e-008, 1, 4.47034836e-008, 2.98023224e-008))
995
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
996
Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright blue", "Wedge", Vector3.new(0.300000012, 0.200000003, 0.200000003))
997
WedgeWeld = CFuncs.Weld.Create(m, LHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.554998398, -0.494999886, 0.305000305, -5.96046519e-008, -1.41561088e-007, -1.00000024, -8.19564079e-008, -1.00000119, -1.41561088e-007, -1, -8.19564079e-008, -5.96046519e-008))
998
CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
999
Shield = CFuncs.Part.Create(m, "Neon", 1, 0.5, "Bright blue", "Part", Vector3.new(9.1, 8.5, 0.2))
1000
CFuncs.Mesh.Create("SpecialMesh", Shield, "FileMesh", "rbxassetid://708292865", Vector3.new(0, 0, 0), Vector3.new(0.04, 0.04, 0.04))
1001
Shield.Parent = nil
1002
1003
1004
for i,v in pairs(m:children()) do
1005
    if v:IsA("Part") then
1006
        v.Reflectance = 0.1
1007
    end
1008
end
1009
1010
EffectModel = Create("Model"){
1011
    Parent = Character,
1012
    Name = "Effects",
1013
}
1014
1015
Effects = {
1016
    Block = {
1017
        Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
1018
            local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1019
            prt.Anchored = true
1020
            prt.CFrame = cframe
1021
            local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1022
            game:GetService("Debris"):AddItem(prt, 10)
1023
            if Type == 1 or Type == nil then
1024
                table.insert(Effects, {
1025
                    prt,
1026
                    "Block1",
1027
                    delay,
1028
                    x3,
1029
                    y3,
1030
                    z3,
1031
                    msh
1032
                })
1033
            elseif Type == 2 then
1034
                table.insert(Effects, {
1035
                    prt,
1036
                    "Block2",
1037
                    delay,
1038
                    x3,
1039
                    y3,
1040
                    z3,
1041
                    msh
1042
                })
1043
            end
1044
        end;
1045
    };
1046
    
1047
    Cylinder = {
1048
        Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1049
            local prt = CFuncs.Part..Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
1050
            prt.Anchored = true
1051
            prt.CFrame = cframe
1052
            local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1053
            game:GetService("Debris"):AddItem(prt, 2)
1054
            Effects[#Effects + 1] = {
1055
                prt,
1056
                "Cylinder",
1057
                delay,
1058
                x3,
1059
                y3,
1060
                z3
1061
            }
1062
        end;
1063
    };
1064
    
1065
    Head = {
1066
        Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1067
            local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1068
            prt.Anchored = true
1069
            prt.CFrame = cframe
1070
            local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1071
            game:GetService("Debris"):AddItem(prt, 10)
1072
            table.insert(Effects, {
1073
                prt,
1074
                "Cylinder",
1075
                delay,
1076
                x3,
1077
                y3,
1078
                z3,
1079
                msh
1080
            })
1081
        end;
1082
    };
1083
    
1084
    Sphere = {
1085
        Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1086
            local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1087
            prt.Anchored = true
1088
            prt.CFrame = cframe
1089
            local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1090
            game:GetService("Debris"):AddItem(prt, 10)
1091
            table.insert(Effects, {
1092
                prt,
1093
                "Cylinder",
1094
                delay,
1095
                x3,
1096
                y3,
1097
                z3,
1098
                msh
1099
            })
1100
        end;
1101
    };
1102
    
1103
    Elect = {
1104
        Create = function(cff, x, y, z)
1105
            local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
1106
            prt.Anchored = true
1107
            prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
1108
            prt.CFrame = CFrame.new(prt.Position)
1109
            game:GetService("Debris"):AddItem(prt, 2)
1110
            local xval = math.random() / 2
1111
            local yval = math.random() / 2
1112
            local zval = math.random() / 2
1113
            local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
1114
            table.insert(Effects, {
1115
                prt,
1116
                "Elec",
1117
                0.1,
1118
                x,
1119
                y,
1120
                z,
1121
                xval,
1122
                yval,
1123
                zval
1124
            })
1125
        end;
1126
1127
    };
1128
    
1129
    Ring = {
1130
        Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1131
            local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1132
            prt.Anchored = true
1133
            prt.CFrame = cframe
1134
            local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1135
            game:GetService("Debris"):AddItem(prt, 10)
1136
            table.insert(Effects, {
1137
                prt,
1138
                "Cylinder",
1139
                delay,
1140
                x3,
1141
                y3,
1142
                z3,
1143
                msh
1144
            })
1145
        end;
1146
    };
1147
1148
    Wave = {
1149
        Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1150
            local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1151
            prt.Anchored = true
1152
            prt.CFrame = cframe
1153
            local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1154
            game:GetService("Debris"):AddItem(prt, 10)
1155
            table.insert(Effects, {
1156
                prt,
1157
                "Cylinder",
1158
                delay,
1159
                x3,
1160
                y3,
1161
                z3,
1162
                msh
1163
            })
1164
        end;
1165
    };
1166
1167
    Break = {
1168
        Create = function(brickcolor, cframe, x1, y1, z1)
1169
            local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
1170
            prt.Anchored = true
1171
            prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1172
            local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1173
            local num = math.random(10, 50) / 1000
1174
            game:GetService("Debris"):AddItem(prt, 10)
1175
            table.insert(Effects, {
1176
                prt,
1177
                "Shatter",
1178
                num,
1179
                prt.CFrame,
1180
                math.random() - math.random(),
1181
                0,
1182
                math.random(50, 100) / 100
1183
            })
1184
        end;
1185
    };
1186
    
1187
    Fire = {
1188
        Create = function(brickcolor, cframe, x1, y1, z1, delay)
1189
            local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1190
            prt.Anchored = true
1191
            prt.CFrame = cframe
1192
            msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1193
            game:GetService("Debris"):AddItem(prt, 10)
1194
            table.insert(Effects, {
1195
                prt,
1196
                "Fire",
1197
                delay,
1198
                1,
1199
                1,
1200
                1,
1201
                msh
1202
            })
1203
        end;
1204
    };
1205
    
1206
    FireWave = {
1207
        Create = function(brickcolor, cframe, x1, y1, z1)
1208
            local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
1209
            prt.Anchored = true
1210
            prt.CFrame = cframe
1211
            msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1212
            local d = Create("Decal"){
1213
                Parent = prt,
1214
                Texture = "rbxassetid://26356434",
1215
                Face = "Top",
1216
            }
1217
            local d = Create("Decal"){
1218
                Parent = prt,
1219
                Texture = "rbxassetid://26356434",
1220
                Face = "Bottom",
1221
            }
1222
            game:GetService("Debris"):AddItem(prt, 10)
1223
            table.insert(Effects, {
1224
                prt,
1225
                "FireWave",
1226
                1,
1227
                30,
1228
                math.random(400, 600) / 100,
1229
                msh
1230
            })
1231
        end;
1232
    };
1233
1234
    Lightning = {
1235
        Create = function(p0, p1, tym, ofs, col, th, tra, last)
1236
            local magz = (p0 - p1).magnitude
1237
            local curpos = p0
1238
            local trz = {
1239
                -ofs,
1240
                ofs
1241
            }
1242
            for i = 1, tym do
1243
                local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
1244
                local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
1245
                local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
1246
                li.Material = "Neon"
1247
                if tym == i then
1248
                    local magz2 = (curpos - p1).magnitude
1249
                    li.Size = Vector3.new(th, th, magz2)
1250
                    li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
1251
                    table.insert(Effects, {
1252
                        li,
1253
                        "Disappear",
1254
                        last
1255
                    })
1256
                else
1257
                    do
1258
                        do
1259
                            li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
1260
                            curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
1261
                            game.Debris:AddItem(li, 10)
1262
                            table.insert(Effects, {
1263
                                li,
1264
                                "Disappear",
1265
                                last
1266
                            })
1267
                        end
1268
                    end
1269
                end
1270
            end
1271
        end
1272
    };
1273
1274
    EffectTemplate = {
1275
1276
    };
1277
}
1278
1279
local Invisible = true
1280
1281
function Reappear()
1282
    for _, i in pairs(AdvancingFortress:children()) do
1283
        if i:IsA("BasePart") then
1284
            coroutine.resume(coroutine.create(function(Part) 
1285
                for i = 0, 1, 0.3 do
1286
                    swait()
1287
                    Part.Transparency = - i
1288
                end
1289
                Part.Transparency = 0
1290
            end), i)
1291
        end
1292
    end
1293
    for _, i in pairs(m:children()) do
1294
        if i:IsA("BasePart") then
1295
            coroutine.resume(coroutine.create(function(Part) 
1296
                for i = 0, 1, 0.3 do
1297
                    swait()
1298
                    Part.Transparency = i
1299
                end
1300
                Part.Transparency = 0
1301
            end), i)
1302
        end
1303
    end
1304
end
1305
1306
function ReappearArmorOnly()
1307
    for _, i in pairs(m:children()) do
1308
        if i:IsA("BasePart") then
1309
            coroutine.resume(coroutine.create(function(Part) 
1310
                for i = 0, 1, 0.3 do
1311
                    swait()
1312
                    Part.Transparency = i
1313
                end
1314
                Part.Transparency = 0.5
1315
            end), i)
1316
        end
1317
    end
1318
end
1319
1320
function Disappear()
1321
    for _, i in pairs(AdvancingFortress:children()) do
1322
        if i:IsA("BasePart") then
1323
            coroutine.resume(coroutine.create(function(Part) 
1324
                for i = 0, 1, 0.3 do
1325
                    swait()
1326
                    Part.Transparency = i
1327
                end
1328
                Part.Transparency = 1
1329
            end), i)
1330
        end
1331
    end
1332
    for _, i in pairs(m:children()) do
1333
        if i:IsA("BasePart") then
1334
            coroutine.resume(coroutine.create(function(Part) 
1335
                for i = 0, 1, 0.3 do
1336
                    swait()
1337
                    Part.Transparency = i
1338
                end
1339
                Part.Transparency = 1
1340
            end), i)
1341
        end
1342
    end
1343
end
1344
1345
function DisappearArmorOnly()
1346
    for _, i in pairs(m:children()) do
1347
        if i:IsA("BasePart") then
1348
            coroutine.resume(coroutine.create(function(Part) 
1349
                for i = 0, 1, 0.3 do
1350
                    swait()
1351
                    Part.Transparency = i
1352
                end
1353
                Part.Transparency = 1
1354
            end), i)
1355
        end
1356
    end
1357
end
1358
1359
function CamShake(time, freq)
1360
    coroutine.resume(coroutine.create(function()
1361
        local cam = game:GetService("Workspace").CurrentCamera
1362
        local time = 10
1363
        local seed = Vector3.new(math.random(100, 200) / freq, math.random(100, 200) / freq, 0)
1364
        if math.random(1, 2) == 1 then seed = Vector3.new(-seed.x, seed.y, 0) end
1365
        if math.random(1, 2) == 1 then seed = Vector3.new(seed.x, -seed.y, 0) end
1366
        cam.CoordinateFrame = (CFrame.new(cam.Focus.p) * (cam.CoordinateFrame - cam.CoordinateFrame.p) * CFrame.fromEulerAnglesXYZ(seed.x * time, seed.y * time, 0)) * CFrame.new(0, 0, (cam.CoordinateFrame.p - cam.Focus.p).magnitude)
1367
        for i = 1, time do
1368
            cam.CoordinateFrame = (CFrame.new(cam.Focus.p) * (cam.CoordinateFrame - cam.CoordinateFrame.p) * CFrame.fromEulerAnglesXYZ(-seed.x, -seed.y, 0)) * CFrame.new(0, 0, (cam.CoordinateFrame.p - cam.Focus.p).magnitude)
1369
            wait()
1370
        end
1371
    end))
1372
end
1373
1374
Mouse.Button1Down:connect(function()
1375
    if attack == false and attacktype == 1 then
1376
        attacktype = 2
1377
        attackone()
1378
    elseif attack == false and attacktype == 2 then
1379
        attacktype = 1
1380
        attacktwo()
1381
    end
1382
end)
1383
1384
game.Lighting.Outlines = false
1385
1386
function attackone()
1387
    attack = true
1388
    for i = 0, 1, 0.12 do
1389
        swait()
1390
        PlayAnimationFromTable({
1391
            CFrame.new(0.000151857734, -0.310488015, -0.087417841, 0.707106054, 5.26835073e-008, -0.707107484, 0.122787014, 0.984807968, 0.122786865, 0.696365058, -0.173646957, 0.696363688) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1392
            CFrame.new(0.101928703, 1.50244772, -0.0383823365, 0.76589334, 0.0762532279, 0.638430059, -0.0196644422, 0.995256186, -0.095281601, -0.642666996, 0.0604211651, 0.763759375) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1393
            CFrame.new(1.01774633, 0.557527065, -0.776187301, 0.541353703, 0.741649806, 0.396095604, 0.711713314, -0.153383806, -0.685520053, -0.447661191, 0.653015316, -0.610876858) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1394
            CFrame.new(-1.07208586, 0.264054269, -0.716768324, 0.529938459, -0.260122895, -0.807156265, -0.752277017, 0.295165181, -0.589030504, 0.39146477, 0.919355154, -0.039265126) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1395
            CFrame.new(0.81415844, -1.89738977, 0.144144416, 0.866025925, -0.171008825, 0.469845951, -1.40815973e-006, 0.939692497, 0.342020512, -0.499999285, -0.296199232, 0.813797772) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1396
            CFrame.new(-0.818738878, -1.59999573, -0.397991776, 0.642786622, 0.0667650178, 0.763130188, 4.3399632e-007, 0.99619472, -0.0871558338, -0.766045213, 0.0560229495, 0.640340626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1397
        }, .3, false)
1398
        LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),0.3)
1399
        RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),0.3)
1400
        RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),0.3)
1401
        LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),0.3)
1402
    end
1403
    MagnitudeDamage(HitboxR, 5, 10, 20, math.random(0, 0), "Normal", "260430079", 1)
1404
    CFuncs.Sound.Create("200632136", HitboxR, 1, 1)
1405
    RootPart.Velocity = RootPart.CFrame.lookVector * 40
1406
    for i = 0, 1, 0.11 do
1407
        swait()
1408
        PlayAnimationFromTable({
1409
            CFrame.new(0.31380862, -0.320521832, 0.0252371654, 0.249517962, -0.150383011, 0.956622124, -0.0458769947, 0.984923244, 0.166798219, -0.967282891, -0.0855060965, 0.238856897) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1410
            CFrame.new(0.101926193, 1.50244832, -0.0383800864, 0.337979913, 0.0762555003, -0.938059092, -0.0828148723, 0.995255768, 0.051067099, 0.937502801, 0.0604255944, 0.342691481) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1411
            CFrame.new(1.96121001, 0.774859428, -0.462411612, 0.340120375, -0.92077136, 0.191045195, 0.466549307, -0.0111669078, -0.884424806, 0.816486418, 0.389942825, 0.42578721) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1412
            CFrame.new(-1.36170578, 0.526111126, -0.597925961, 0.81348151, -0.212761745, -0.541276693, -0.539894938, 0.0697831511, -0.838834763, 0.216243982, 0.974609077, -0.0581016839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1413
            CFrame.new(0.970680714, -1.68610644, -0.0975568295, 0.579166114, -0.127570763, -0.805166125, 0.110368893, 0.990856647, -0.0776019096, 0.807703912, -0.0439208932, 0.587950349) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1414
            CFrame.new(-0.827146292, -1.8113209, -0.0556658059, 0.816036701, 0.217413262, -0.535551846, -0.0871567726, 0.962250471, 0.257832885, 0.571391284, -0.163724124, 0.804180741) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1415
        }, .45, false)
1416
        LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),0.3)
1417
        RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),0.3)
1418
        RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),0.3)
1419
        LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),0.3)
1420
    end
1421
    attack = false
1422
end
1423
1424
function attacktwo()
1425
    attack = true
1426
    for i = 0, 1, 0.8 do
1427
        swait()
1428
        PlayAnimationFromTable({
1429
            CFrame.new(0.00015424937, -0.0303910244, 0.172732353, 0.707106054, -1.36977135e-007, -0.707107484, -0.241844028, 0.939693153, -0.241843715, 0.664464056, 0.342018902, 0.664462626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1430
            CFrame.new(-0.0900346041, 1.53916931, -0.0900347233, 0.707106054, -0.241844028, 0.664464056, -1.36977135e-007, 0.939693153, 0.342018902, -0.707107484, -0.241843715, 0.664462626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1431
            CFrame.new(1.54832983, 0.2894032, 0.329475105, 0.910240293, -0.411981106, -0.0416468978, 0.371504784, 0.768086612, 0.521562576, -0.182885468, -0.490219176, 0.852196038) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1432
            CFrame.new(-1.68712711, 0.311459482, 0.3278009, 0.836423278, 0.536408186, -0.11252743, -0.403283268, 0.741368711, 0.536409497, 0.371158689, -0.403284907, 0.836422443) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1433
            CFrame.new(0.788507879, -1.88569379, 0.155615538, 0.891722381, -0.274265081, 0.360013813, 0.116977148, 0.908105969, 0.402069658, -0.437204301, -0.316421092, 0.841861069) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1434
            CFrame.new(-0.70507884, -0.807403564, -0.520998418, 0.734425247, 0.0872097909, 0.673063159, -0.0274242759, 0.994713306, -0.0989620388, -0.678135276, 0.0542218834, 0.732934237) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1435
        }, .8, false)
1436
        LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),0.3)
1437
        RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),0.3)
1438
        RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),0.3)
1439
        LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),0.3)
1440
    end
1441
    CFuncs.Sound.Create("200632136", LeftLeg, .3, math.random(1, 1.2))
1442
    MagnitudeDamage(LeftLeg, 7, 10, 15, 0, "Normal", "260430060", 1)
1443
    for i = 0, 1, 0.8 do
1444
        swait()
1445
        PlayAnimationFromTable({
1446
            CFrame.new(0.000153645873, -0.22751689, 0.07635656, 0.707106054, -5.26835073e-008, -0.707107484, -0.122787014, 0.984807968, -0.122786865, 0.696365058, 0.173646957, 0.696363688) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1447
            CFrame.new(-0.0900349915, 1.53916812, -0.0900349319, 0.707106054, -0.241843998, 0.664464056, -5.26835073e-008, 0.939693153, 0.342018783, -0.707107484, -0.241843611, 0.664462686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1448
            CFrame.new(1.71330678, 0.609134197, 0.494451642, 0.798460722, -0.570534825, -0.192225158, 0.525007725, 0.503572106, 0.68613565, -0.294665128, -0.648771942, 0.701617837) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1449
            CFrame.new(-1.5747292, 0.538585067, 0.559931517, 0.823553085, 0.541512251, 0.168892533, -0.481333375, 0.509595573, 0.713183403, 0.300130665, -0.668637991, 0.680326998) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1450
            CFrame.new(0.761081278, -1.79488313, 0.123973221, 0.891722023, -0.241844088, 0.382548481, 0.116976976, 0.939693153, 0.321392685, -0.437205136, -0.241843581, 0.866235197) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1451
            CFrame.new(-1.52726746, -1.01843166, -0.946048379, 0.710156322, 0.662300229, -0.238822937, -0.508035719, 0.247218758, -0.825095534, -0.487419516, 0.707277417, 0.512036085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.random(math.rad(-20),math.rad(20)), math.random(math.rad(-30),math.rad(60))), 
1452
        }, .8, false)
1453
        LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),0.3)
1454
        RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),0.3)
1455
        RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),0.3)
1456
        LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),0.3)
1457
    end
1458
    attack = false
1459
end
1460
1461
findNearestTorso = function(pos)
1462
    local list = (game.Workspace:children())
1463
    local torso = nil
1464
    local dist = 1000
1465
    local temp, human, temp2 = nil, nil, nil
1466
    for x = 1, #list do
1467
        temp2 = list[x]
1468
        if temp2.className == "Model" and temp2.Name ~= Character.Name then
1469
            temp = temp2:findFirstChild("Torso")
1470
            human = temp2:findFirstChild("Humanoid")
1471
            if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
1472
                local dohit = true
1473
                if dohit == true then
1474
                    torso = temp
1475
                    dist = (temp.Position - pos).magnitude
1476
                end
1477
            end
1478
        end
1479
    end
1480
    return torso, dist
1481
end
1482
1483
function MultiOrbAttack()
1484
    attack = true
1485
    for i = 0, 1, 0.1 do
1486
        swait()
1487
        PlayAnimationFromTable({
1488
         CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1489
         CFrame.new(-0.162433833, 1.49999774, 0, 0.978860497, -0.204539478, 0, 0.204539478, 0.978860497, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1490
         CFrame.new(1.50000381, 1.96567178, 0.133120686, 1, 0, 0, 0, -0.997715592, 0.0675679892, 0, -0.0675679147, -0.997717202) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1491
         CFrame.new(-1.59766746, 0.00914002955, 0, 0.995649457, 0.0931791961, 0, -0.0931792036, 0.995649457, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1492
         CFrame.new(0.5, -1.99999702, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1493
         CFrame.new(-0.5, -1.99999702, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1494
        }, .3, false)
1495
        LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),0.3)
1496
        RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),0.3)
1497
        RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),0.3)
1498
        LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),0.3)
1499
    end
1500
    for i = 0, 1, 0.06 do
1501
        swait()
1502
        PlayAnimationFromTable({
1503
         CFrame.new(0, 0.162510097, 0.38895905, 1, 0, 0, 0, 0.571922064, 0.820308089, 0, -0.820308089, 0.571922064) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1504
         CFrame.new(2.57045031e-07, 1.49998784, 1.30534172e-05, 0.984818339, -0.164854109, 0.0543694124, 0.165525496, 0.797479153, -0.580197155, 0.0522894673, 0.580389142, 0.812659144) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1505
         CFrame.new(1.47650206, 1.26494956, -0.688362539, 0.997335255, -0.00380637683, 0.0728777125, 0.0417370051, -0.789443731, -0.612404227, 0.0598638915, 0.613813102, -0.787179589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1506
         CFrame.new(-1.4608196, 0.0444534346, 0.407487094, 0.997198284, 0.00275915279, 0.0747666731, -0.0427889042, 0.840790749, 0.53966701, -0.061374139, -0.541353226, 0.838552773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1507
         CFrame.new(0.46225813, -1.74063933, -1.42632961, 0.999477983, 0.0315875225, 0.00679107849, -0.0135056023, 0.599403679, -0.800333142, -0.0293511394, 0.799823582, 0.599517345) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1508
         CFrame.new(-0.452492714, -1.98169518, 0.319369018, 0.999324262, 0.00178822386, 0.0367270075, -0.0210306682, 0.847118855, 0.530988216, -0.0301626045, -0.531401694, 0.846583188) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1509
        }, .3, false)
1510
        LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),0.3)
1511
        RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),0.3)
1512
        RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),0.3)
1513
        LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),0.3)
1514
    end
1515
    for i = 1,15 do
1516
    spawn(function()     
1517
   
1518
   -- if canproj == true then
1519
       -- canproj = false
1520
     mse = game.Players.LocalPlayer:GetMouse()  
1521
local posishun = Vector3.new(math.random(-100,100),math.random(100,500),math.random(-100,100))
1522
local anotherposition=findNearestTorso(Torso.Position)
1523
local ball = Instance.new("Part",game.Players.LocalPlayer.Character)
1524
1525
ball.Size = Vector3.new(1.5,1.5,1.5)
1526
ball.CanCollide = false
1527
ball.BrickColor = BrickColor.new("Institutional white")
1528
ball.CFrame = RightArm.CFrame * CFrame.new(0,-10,0)
1529
ball.Anchored = true
1530
ball.TopSurface = 0
1531
ball.BottomSurface = 0
1532
ball.Material = "Neon"
1533
local ballm = Instance.new("SpecialMesh",ball)
1534
ballm.MeshType = "Sphere"
1535
1536
local bp1 = Instance.new("BodyPosition",ball)
1537
bp1.MaxForce = Vector3.new(10000,10000,10000)
1538
bp1.Position = posishun + Vector3.new(math.random(-100,100),0,math.random(-100,100))
1539
bp1.P  = 10000
1540
bp1.D = 1000
1541
if bp1.Position == nil then bp1.Position = Vector3.new(math.random(-10,10),math.random(0,20),math.random(-10,10))
1542
else
1543
1544
--[[ball.Velocity = CFrame.new(ball.Position,bp.Position).lookVector * 500
1545
local bodyforc = Instance.new("BodyForce", ball)
1546
bodyforc.force = Vector3.new(0, ball:GetMass() * 196.1, 0)]]--
1547
1548
repeat wait() until (ball.Position-bp1.Position).magnitude < 10
1549
1550
bp1.Position = anotherposition.Position + Vector3.new(math.random(-15,15),0,math.random(-15,15))
1551
1552
repeat wait() bp1.Position = anotherposition.Position + Vector3.new(math.random(-15,15),0,math.random(-15,15)) until (ball.Position-bp1.Position).magnitude < 10
1553
1554
local sound = Instance.new("Sound",ball)
1555
        sound.Pitch = 0.5
1556
 sound.SoundId="http://www.roblox.com/asset/?id=165970126"
1557
wait()
1558
sound:Play()
1559
MagnitudeDamage(ball, 20, 10, 30, 100, "Normal", "610359515", 1)
1560
1561
for i = 1,50,5 do 
1562
1563
ballm.Scale = Vector3.new(i,i,i)
1564
1565
ball.Transparency= i/50
1566
1567
1568
wait()
1569
end
1570
ball:Remove()
1571
wait()
1572
end
1573
--end
1574
1575
end)
1576
end
1577
attack = false
1578
end
1579
1580
function OrbAttack()
1581
    attack = true
1582
    for i = 0, 1, 0.1 do
1583
        swait()
1584
        PlayAnimationFromTable({
1585
         CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1586
         CFrame.new(-0.162433833, 1.49999774, 0, 0.978860497, -0.204539478, 0, 0.204539478, 0.978860497, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1587
         CFrame.new(1.50000381, 1.96567178, 0.133120686, 1, 0, 0, 0, -0.997715592, 0.0675679892, 0, -0.0675679147, -0.997717202) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1588
         CFrame.new(-1.59766746, 0.00914002955, 0, 0.995649457, 0.0931791961, 0, -0.0931792036, 0.995649457, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1589
         CFrame.new(0.5, -1.99999702, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1590
         CFrame.new(-0.5, -1.99999702, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1591
        }, .3, false)
1592
        LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),0.3)
1593
        RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),0.3)
1594
        RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),0.3)
1595
        LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),0.3)
1596
    end
1597
    for i = 0, 1, 0.06 do
1598
        swait()
1599
        PlayAnimationFromTable({
1600
         CFrame.new(0, 0.162510097, 0.38895905, 1, 0, 0, 0, 0.571922064, 0.820308089, 0, -0.820308089, 0.571922064) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1601
         CFrame.new(2.57045031e-07, 1.49998784, 1.30534172e-05, 0.984818339, -0.164854109, 0.0543694124, 0.165525496, 0.797479153, -0.580197155, 0.0522894673, 0.580389142, 0.812659144) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1602
         CFrame.new(1.47650206, 1.26494956, -0.688362539, 0.997335255, -0.00380637683, 0.0728777125, 0.0417370051, -0.789443731, -0.612404227, 0.0598638915, 0.613813102, -0.787179589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1603
         CFrame.new(-1.4608196, 0.0444534346, 0.407487094, 0.997198284, 0.00275915279, 0.0747666731, -0.0427889042, 0.840790749, 0.53966701, -0.061374139, -0.541353226, 0.838552773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1604
         CFrame.new(0.46225813, -1.74063933, -1.42632961, 0.999477983, 0.0315875225, 0.00679107849, -0.0135056023, 0.599403679, -0.800333142, -0.0293511394, 0.799823582, 0.599517345) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1605
         CFrame.new(-0.452492714, -1.98169518, 0.319369018, 0.999324262, 0.00178822386, 0.0367270075, -0.0210306682, 0.847118855, 0.530988216, -0.0301626045, -0.531401694, 0.846583188) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1606
        }, .3, false)
1607
        LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),0.3)
1608
        RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),0.3)
1609
        RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),0.3)
1610
        LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),0.3)
1611
    end
1612
    spawn(function()     
1613
   
1614
   -- if canproj == true then
1615
       -- canproj = false
1616
     mse = game.Players.LocalPlayer:GetMouse()  
1617
local posishun = Vector3.new(math.random(-100,100),math.random(100,500),math.random(-100,100))
1618
local anotherposition=findNearestTorso(mse.Hit.p)
1619
local ball = Instance.new("Part",game.Players.LocalPlayer.Character)
1620
1621
ball.Size = Vector3.new(2.5,2.5,2.5)
1622
ball.CanCollide = false
1623
ball.BrickColor = BrickColor.new("Institutional white")
1624
ball.CFrame = RightArm.CFrame * CFrame.new(0,-10,0)
1625
ball.Anchored = true
1626
ball.TopSurface = 0
1627
ball.BottomSurface = 0
1628
ball.Material = "Neon"
1629
local ballm = Instance.new("SpecialMesh",ball)
1630
ballm.MeshType = "Sphere"
1631
1632
local bp1 = Instance.new("BodyPosition",ball)
1633
bp1.MaxForce = Vector3.new(10000,10000,10000)
1634
bp1.Position = posishun + Vector3.new(math.random(-100,100),0,math.random(-100,100))
1635
bp1.P  = 10000
1636
bp1.D = 1000
1637
if bp1.Position == nil then bp1.Position = Vector3.new(math.random(-10,10),math.random(0,20),math.random(-10,10))
1638
else
1639
1640
--[[ball.Velocity = CFrame.new(ball.Position,bp.Position).lookVector * 500
1641
local bodyforc = Instance.new("BodyForce", ball)
1642
bodyforc.force = Vector3.new(0, ball:GetMass() * 196.1, 0)]]--
1643
1644
repeat wait() until (ball.Position-bp1.Position).magnitude < 10
1645
1646
bp1.Position = anotherposition.Position + Vector3.new(math.random(-15,15),0,math.random(-15,15))
1647
1648
repeat wait() bp1.Position = anotherposition.Position + Vector3.new(math.random(-15,15),0,math.random(-15,15)) until (ball.Position-bp1.Position).magnitude < 10
1649
1650
local sound = Instance.new("Sound",ball)
1651
        sound.Pitch = 0.5
1652
 sound.SoundId="http://www.roblox.com/asset/?id=165970126"
1653
wait()
1654
sound:Play()
1655
MagnitudeDamage(ball, 50, 50, 70, 100, "Normal", "610359515", 1)
1656
1657
for i = 1,50,5 do 
1658
1659
ballm.Scale = Vector3.new(i,i,i)
1660
1661
ball.Transparency= i/50
1662
1663
1664
wait()
1665
end
1666
ball:Remove()
1667
wait()
1668
end
1669
--end
1670
1671
end)
1672
attack = false
1673
end
1674
1675
Mouse.KeyDown:connect(function(k)
1676
    k = k:lower()
1677
    if attack == false and k == 'q' then
1678
        OrbAttack()        
1679
    end
1680
    if attack == false and k == 'e' then
1681
        MultiOrbAttack()        
1682
    end
1683
end)
1684
1685
coroutine.resume(coroutine.create(function(Part, Part2)
1686
    while Part.Parent ~= nil do
1687
        swait(math.random(100, 150))
1688
        for i = 0, 1, 0.2 do
1689
            wait()
1690
            Eye1.Mesh.Scale = Vector3.new(1, .7 - 1 * i, 1)
1691
            Eye2.Mesh.Scale = Vector3.new(1, .7 - 1 * i, 1)
1692
        end
1693
        for i = 0, 1, 0.2 do
1694
            swait()
1695
            Eye1.Mesh.Scale = Vector3.new(1, .7 + .3 * i, 1)
1696
            Eye2.Mesh.Scale = Vector3.new(1, .7 + .3 * i, 1)
1697
        end
1698
    end
1699
end), Eye1, Eye2)
1700
1701
game:GetService("RunService").RenderStepped:connect(function()
1702
      if attack == false then
1703
        for i, v in pairs(Character:children()) do
1704
          if v.ClassName == "Accessory" then
1705
            for i, v2 in pairs(v:children()) do
1706
              if v2.ClassName == "Part" then
1707
                v2.Anchored = false
1708
              end
1709
            end
1710
          end
1711
        end
1712
        for i, v in pairs(Character:children()) do
1713
          if v.ClassName == "Part" then
1714
            v.Anchored = false
1715
          end
1716
        end
1717
    end
1718
end)
1719
1720
recurses2 = function(n)
1721
    for i, v in pairs(n:GetChildren()) do
1722
        if v:isA'BasePart' and v:IsDescendantOf(char) and v.Name ~= 'HumanoidRootPart' and v.Name ~= "Base" then
1723
            v.Anchored = false
1724
        end
1725
        recurses2(v)
1726
    end
1727
end
1728
local sine = 0
1729
local change = 1
1730
local t = 0
1731
local FlyHeight = 0
1732
while true do
1733
    if Character.Humanoid.Health == 0 then
1734
        print("Dead again")
1735
    else
1736
        swait()
1737
        for i,v in pairs(Character:children()) do
1738
            if v:IsA("Part") then
1739
                v.Anchored = false
1740
            end
1741
        end
1742
        sine = sine + change
1743
        HHandle.Transparency = 1
1744
        THandle.Transparency = 1
1745
        AHandleR.Transparency = 1
1746
        AHandleL.Transparency = 1
1747
        LHandleR.Transparency = 1
1748
        LHandleL.Transparency = 1
1749
        RootPart.Transparency = 1
1750
        HitboxR.Transparency = 1
1751
        HitboxL.Transparency = 1
1752
        Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
1753
        velocity = RootPart.Velocity.y
1754
        sine = sine + change
1755
        Shield.Anchored = true
1756
        Shield.CFrame = Shield.CFrame:lerp(RootPart.CFrame * CFrame.new(0, 0, -3.2), 1)
1757
        local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
1758
        local RightLeg = CFrame.new(0.5,-1,0)
1759
        local LeftLeg = CFrame.new(-0.5,-1,0)
1760
1761
        local lefth = (Torso.CFrame*LeftLeg)
1762
        local righth = (Torso.CFrame*RightLeg)
1763
1764
        local speed = Vector3.new(Torso.Velocity.X,0,Torso.Velocity.Z)
1765
1766
        local TiltOnAxis = (Torso.CFrame-Torso.CFrame.p):vectorToObjectSpace(speed/100)
1767
1768
        local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
1769
        local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
1770
        if RootPart.Velocity.y > 1 and hit == nil then 
1771
            Anim = "Jump"
1772
            if attack == false then
1773
                change = 1
1774
                PlayAnimationFromTable({
1775
                    CFrame.new(0, 0.00872418843, 0.0292903651, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, FlyHeight - math.sin(sine/39)/16, 0) * CFrame.Angles(0, 0, 0), 
1776
                    CFrame.new(0, 1.49999177, -1.49011612e-007, 1, 0, 0, 0, 0.98480767, 0.173648626, -0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1777
                    CFrame.new(1.64140427, 0.273908556, 0.192029893, 0.946035206, -0.31541416, 0.0743736848, 0.284469575, 0.91821146, 0.275617331, -0.155224368, -0.239586651, 0.958386064) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1778
                    CFrame.new(-1.59350562, 0.239538491, 0.192243189, 0.935008764, 0.347148597, -0.0724328309, -0.312019885, 0.902400434, 0.297181845, 0.168529674, -0.255267143, 0.952069581) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1779
                    CFrame.new(0.602718651, -1.95556056, 0.410092652, 0.978475571, 0.0150757888, -0.205834776, 0.0853612274, 0.878464639, 0.470120817, 0.187906027, -0.477568805, 0.85826844) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1780
                    CFrame.new(-0.41903314, -1.41877925, -0.229210436, 0.962251842, -0.0299757104, 0.270510197, -0.084186092, 0.912393093, 0.400567293, -0.258819073, -0.408219665, 0.875425339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1781
                }, .06, false)
1782
                LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),0.08)
1783
                RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),0.08)
1784
                RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),0.08)
1785
                LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),0.08)
1786
            end
1787
        elseif RootPart.Velocity.y < -1 and hit == nil then 
1788
            Anim = "Fall"
1789
            if attack == false then
1790
                change = 1
1791
                PlayAnimationFromTable({
1792
                    CFrame.new(-0, -0.0366669223, -0.0478199311, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, FlyHeight - math.sin(sine/39)/16, 0) * CFrame.Angles(0, 0, 0), 
1793
                    CFrame.new(0, 1.58110774, -0.115850762, 1, 0, 0, 0, 0.98480767, 0.173647821, 0, -0.173647821, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1794
                    CFrame.new(1.72150326, 0.610064566, 0.0891361833, 0.724097908, -0.685675204, 0.0743751749, 0.645872176, 0.711960018, 0.275611937, -0.241932437, -0.151533186, 0.958387375) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1795
                    CFrame.new(-1.69228244, 0.568353653, 0.082095027, 0.759895504, 0.646005511, -0.0724337399, -0.601845145, 0.741260946, 0.297183931, 0.24567467, -0.182231784, 0.952074111) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1796
                    CFrame.new(0.60271728, -1.95556188, 0.410093039, 0.978470623, -0.00292155147, -0.206365243, 0.0853614658, 0.916095972, 0.391767859, 0.187905625, -0.400949359, 0.896622121) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1797
                    CFrame.new(-0.453899324, -1.81726217, -0.229221463, 0.962255239, -0.00628663599, 0.272094905, -0.0841865242, 0.943832874, 0.319526881, -0.258820891, -0.33037129, 0.90767473) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1798
                }, .06, false)
1799
                LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),0.08)
1800
                RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),0.08)
1801
                RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),0.08)
1802
                LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),0.08)
1803
            end
1804
        elseif Torsovelocity < 1 and hit ~= nil then
1805
            Anim = "Idle"
1806
            if attack == false then
1807
                change = 1
1808
                PlayAnimationFromTable({
1809
                    CFrame.new(0, -0.00190299738, -0.0435779989, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, FlyHeight - math.asin(math.sin(sine/39)/16), 0) * CFrame.Angles(0 - 0.5 * math.asin(math.sin(sine / 39)/16), 0, 0), 
1810
                    CFrame.new(0, 1.49999213, 3.27825546e-007, 1, 0, 0, 0, 0.99619478, 0.0871553123, 0, -0.0871553123, 0.99619478) * CFrame.new(0, 0, 0) * CFrame.Angles(math.asin(math.cos(sine / 39)/16), 0, 0), 
1811
                    CFrame.new(0.674782097, 0.0130032599, 0.484848171, 0.628647685, 0.777698636, -5.20126468e-06, -0.740642428, 0.598692894, 0.305006236, 0.237205386, -0.191735595, 0.952355981) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1812
                    CFrame.new(-0.820904791, -0.110713258, 0.524471462, 0.743363142, -0.668888152, -9.41837641e-07, 0.637014925, 0.707940757, 0.30501157, -0.204017937, -0.226734951, 0.952348709) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1813
                    CFrame.new(0.602711678, -1.89952374, -0.0967197716, 0.978471398, -0.0562333167, -0.198576227, 0.0853610933, 0.986278713, 0.141314447, 0.187904745, -0.155223012, 0.969844699) * CFrame.new(0, 0 - 1 * math.asin(math.sin(sine / 39)/16), 0) * CFrame.Angles(math.asin(math.sin(sine / 39)/16), 0,math.asin(-math.cos(sine / 39)/16)), 
1814
                    CFrame.new(-0.619029164, -1.90815639, -0.0860156417, 0.962250412, 0.0410595387, 0.269051194, -0.0841863081, 0.984977186, 0.150772721, -0.258818805, -0.167731494, 0.951251626) * CFrame.new(0, 0 - 1 * math.asin(math.sin(sine / 39)/16), 0) * CFrame.Angles(math.asin(math.sin(sine / 39)/16), 0,math.asin(math.cos(sine / 39)/16)), 
1815
                }, .08, false)
1816
                LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),0.08)
1817
                RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),0.08)
1818
                RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),0.08)
1819
                LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),0.08)
1820
            end
1821
        elseif Torsovelocity > 2 and hit ~= nil then
1822
            Anim = "Walk"
1823
            if attack == false then
1824
                change = 0.5
1825
                RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+RootPart.RotVelocity.Y/30, math.rad(0)+RootPart.RotVelocity.Y/30), 0.4)
1826
                Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1827
                RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+RootPart.RotVelocity.Y/30)), 0.4)
1828
                RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
1829
                LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+RootPart.RotVelocity.Y/30)), 0.4)
1830
                LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
1831
                RH.C0 = RH.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-RootPart.RotVelocity.Y/20),0.8)
1832
                RH.C1 = RH.C1:lerp(CFrame.new(0, 1, 0),.8)
1833
                
1834
                --RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1835
                LH.C0 = LH.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-RootPart.RotVelocity.Y/20),0.8)
1836
                LH.C1 = LH.C1:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
1837
                
1838
                --LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1839
            end
1840
        end
1841
    end
1842
    if 0 < #Effects then
1843
        for e = 1, #Effects do
1844
            if Effects[e] ~= nil then
1845
                local Thing = Effects[e]
1846
                if Thing ~= nil then
1847
                    local Part = Thing[1]
1848
                    local Mode = Thing[2]
1849
                    local Delay = Thing[3]
1850
                    local IncX = Thing[4]
1851
                    local IncY = Thing[5]
1852
                    local IncZ = Thing[6]
1853
                    if Thing[2] == "Shoot" then
1854
                        local Look = Thing[1]
1855
                        local move = 30
1856
                        if Thing[8] == 3 then
1857
                            move = 10
1858
                        end
1859
                        local hit, pos = rayCast(Thing[4], Thing[1], move, m)
1860
                        if Thing[10] ~= nil then
1861
                            da = pos
1862
                            cf2 = CFrame.new(Thing[4], Thing[10].Position)
1863
                            cfa = CFrame.new(Thing[4], pos)
1864
                            tehCF = cfa:lerp(cf2, 0.2)
1865
                            Thing[1] = tehCF.lookVector
1866
                        end
1867
                        local mag = (Thing[4] - pos).magnitude
1868
                        Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
1869
                        if Thing[8] == 2 then
1870
                            Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
1871
                        end
1872
                        Thing[4] = Thing[4] + Look * move
1873
                        Thing[3] = Thing[3] - 1
1874
                        if 2 < Thing[5] then
1875
                            Thing[5] = Thing[5] - 0.3
1876
                            Thing[6] = Thing[6] - 0.3
1877
                        end
1878
                        if hit ~= nil then
1879
                            Thing[3] = 0
1880
                            if Thing[8] == 1 or Thing[8] == 3 then
1881
                                Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
1882
                            else
1883
                                if Thing[8] == 2 then
1884
                                    Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
1885
                                    if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
1886
                                        ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
1887
                                        ref.Anchored = true
1888
                                        ref.CFrame = CFrame.new(pos)
1889
                                        CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
1890
                                        game:GetService("Debris"):AddItem(ref, 0.2)
1891
                                        Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
1892
                                        Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
1893
                                        MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
1894
                                    end
1895
                                end
1896
                            end
1897
                            ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
1898
                            ref.Anchored = true
1899
                            ref.CFrame = CFrame.new(pos)
1900
                            Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
1901
                            game:GetService("Debris"):AddItem(ref, 1)
1902
                        end
1903
                        if Thing[3] <= 0 then
1904
                            table.remove(Effects, e)
1905
                        end
1906
                    end
1907
                    do
1908
                        do
1909
                            if Thing[2] == "FireWave" then
1910
                                if Thing[3] <= Thing[4] then
1911
                                    Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
1912
                                    Thing[3] = Thing[3] + 1
1913
                                    Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
1914
                                else
1915
                                    Part.Parent = nil
1916
                                    table.remove(Effects, e)
1917
                                end
1918
                            end
1919
                            if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
1920
                                if Thing[1].Transparency <= 1 then
1921
                                    if Thing[2] == "Block1" then
1922
                                        Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1923
                                        Mesh = Thing[7]
1924
                                        Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1925
                                        Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1926
                                    else
1927
                                        if Thing[2] == "Block2" then
1928
                                            Thing[1].CFrame = Thing[1].CFrame
1929
                                            Mesh = Thing[7]
1930
                                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1931
                                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1932
                                        else
1933
                                            if Thing[2] == "Fire" then
1934
                                                Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
1935
                                                Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1936
                                                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1937
                                            else
1938
                                                if Thing[2] == "Cylinder" then
1939
                                                    Mesh = Thing[7]
1940
                                                    Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1941
                                                    Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1942
                                                else
1943
                                                    if Thing[2] == "Blood" then
1944
                                                        Mesh = Thing[7]
1945
                                                        Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
1946
                                                        Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1947
                                                        Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1948
                                                    else
1949
                                                        if Thing[2] == "Elec" then
1950
                                                            Mesh = Thing[10]
1951
                                                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1952
                                                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1953
                                                        else
1954
                                                            if Thing[2] == "Disappear" then
1955
                                                                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1956
                                                            end
1957
                                                        end
1958
                                                    end
1959
                                                end
1960
                                            end
1961
                                        end
1962
                                    end
1963
                                else
1964
                                    Part.Parent = nil
1965
                                    table.remove(Effects, e)
1966
                                end
1967
                            end
1968
                        end
1969
                    end
1970
                end
1971
            end
1972
        end
1973
    end
1974
end