View difference between Paste ID: zAdU2jAN and Gyc8gRTJ
SHOW: | | - or go back to the newest paste.
1
-- BurnLegion strikes again!
2
-- wongxd, this is why you DON'T goto Voidacity's
3
-- SLPM has been absent, so I've taken it upon myself to make something
4
5
--------------------------------------------------------
6
7
        pls = game:GetService'Players'
8
        rs = game:GetService'RunService'
9
        uinps = game:GetService'UserInputService'
10
        lp = pls.LocalPlayer
11
        mouse = lp:GetMouse()
12
        c = lp.Character
13
        human = c.Humanoid
14
        human.MaxHealth = 10000
15
        wait()
16
        human.Health = 10000
17
        c.Health:Destroy()
18
19
--------------------------------------------------------
20
21
        Debounces = {
22
                AnimationCycles = 0;
23
                FPS = 0;
24
                scalingDamage = false;
25
                damageLevel = 0;
26
                attackNumber = 0;
27
                isAttacking = false;
28
                isMoving = false;
29
                isSprinting = false;
30
                isBoosting = false;
31
                isPassive = false;
32
                isTyping = false;
33
        }
34
35
--------------------------------------------------------
36
37
        numLerp = function(start, goal, alpha)
38
                return(((goal - start) * alpha) + start)
39
        end
40
41
        CFrameZero = function()
42
                return CFrame.new(Vector3.new())
43
        end
44
45
        rad = function(value)
46
                return math.rad(value)
47
        end
48
49
        CFAngles = function(Vector)
50
                return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
51
        end
52
53
--------------------------------------------------------
54
55
        AnimStat = {
56
                lerpSpeed = .2;
57
                lerpSpeed2 = .35;
58
                lerpTween = 0;
59
        }
60
61
        Joints = {
62
                c.HumanoidRootPart.RootJoint;
63
                c.Torso.Neck;
64
                c.Torso['Left Shoulder'];
65
                c.Torso['Right Shoulder'];
66
                c.Torso['Left Hip'];
67
                c.Torso['Right Hip'];
68
        }
69
70
        JointTargets = {
71
                CFrameZero();
72
                CFrameZero();
73
                CFrameZero();
74
                CFrameZero();
75
                CFrameZero();
76
                CFrameZero();
77
        }
78
79
--------------------------------------------------------
80
81
        BodyColors = {
82
                HeadColor = BrickColor.new("Institutional white");
83
                LeftArmColor = BrickColor.new("Institutional white");
84
                RightArmColor = BrickColor.new("Institutional white");
85
                LeftLegColor = BrickColor.new("Institutional white");
86
                RightLegColor = BrickColor.new("Institutional white");
87
                TorsoColor = BrickColor.new("Mid gray");
88
        }
89
90
        Customs = {
91-
                Face = "http://www.roblox.com/asset/?id=8560915";
91+
               shirt = Instance.new("Shirt", char)
92-
                Shirt = "http://www.roblox.com/asset/?id=334781688";
92+
               shirt.Name = "Shirt"
93-
                Pants = "http://www.roblox.com/asset/?id=335237283";
93+
               pants = Instance.new("Pants", char)
94
               pants.Name = "Pants"
95
               char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=427552705"
96
               char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=181515886"
97
               z=Instance.new('Decal',hed)
98
               z.Face = 'Front'
99
               z.Texture='rbxassetid://702109486'
100
               hed.BrickColor = BrickColor.new("White")
101
        }
102
103
--------------------------------------------------------
104
105
        prepareCharacter = function()
106
                local transPoints = {
107
                        NumberSequenceKeypoint.new(0,.819,.0375),
108
                        NumberSequenceKeypoint.new(.207,.594,.0187),
109
                        NumberSequenceKeypoint.new(.4,.55,.031),
110
                        NumberSequenceKeypoint.new(.57,.619,.05),
111
                        NumberSequenceKeypoint.new(.76,.8,.0375),
112
                        NumberSequenceKeypoint.new(1,1,0),
113
                }
114
                local sizePoints = {
115
                        NumberSequenceKeypoint.new(0,.687,0),
116
                        NumberSequenceKeypoint.new(.111,.875,0),
117
                        NumberSequenceKeypoint.new(.327,1.19,0),
118
                        NumberSequenceKeypoint.new(.646,1.56,0),
119
                        NumberSequenceKeypoint.new(.805,1.37,0),
120
                        NumberSequenceKeypoint.new(.905,1.06,0),
121
                        NumberSequenceKeypoint.new(.968,.938,0),
122
                        NumberSequenceKeypoint.new(.984,1.13,0),
123
                        NumberSequenceKeypoint.new(1,1.62,0),
124
                }
125
                local Size = NumberSequence.new(sizePoints)
126
                local Transparency = NumberSequence.new(transPoints)
127
                rayModel = Instance.new("Model",c)
128
                efxBlock = Instance.new("Part",c)
129
                efxBlock.BrickColor = BrickColor.new("Maroon")
130
                efxBlock.Material = "Neon"
131
                efxBlock.FormFactor = "Custom"
132
                efxBlock.Transparency = .3
133
                efxBlock.Size = Vector3.new(.3,.3,.3)
134
                local mesh = Instance.new("SpecialMesh",efxBlock)
135
                mesh.MeshType = Enum.MeshType.Sphere
136
                mesh.Scale = Vector3.new(1,1,1)
137
                light = Instance.new("PointLight",c.Head)
138
                light.Range = 10
139
                light.Color = Color3.new(332,0/332,0)
140
                light.Shadows = false
141
                local particles = Instance.new("ParticleEmitter",efxBlock)
142
                particles.Color = ColorSequence.new(Color3.new(0,0,332/332),Color3.new(332/332,332/332,332/332))
143
                particles.LightEmission = .95
144
                particles.Size = Size
145
                particles.Name = "Fire"
146
                particles.Transparency = Transparency
147
                particles.LockedToPart = true
148
                particles.VelocityInheritance = .5
149
                particles.LockedToPart = true
150
                particles.Rate = 95
151
                particles.Texture = "rbxassetid://114518563"
152
                particles.Lifetime = NumberRange.new(2,2)
153
                particles.RotSpeed = NumberRange.new(100,100)
154
                particles.Speed = NumberRange.new(7,7)
155
                script.Parent = efxBlock
156
                fire = particles
157
                local offset = Vector3.new(-0.11, .23, -0.5)
158
                local weld = Instance.new("Weld",c.Head)
159
                weld.Part0 = c.Head
160
                weld.Part1 = efxBlock
161
                weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
162
                efxBlock.Parent = c
163
                local music = Instance.new("Sound",c)
164
                music.Parent = c.Torso.Neck;
165
                music.SoundId = "rbxassetid://320309854"
166
                music.Looped = true
167
                music.Volume = 3
168
                music.Pitch = 0.6
169
                fight = music
170
                local music2 = Instance.new("Sound",c)
171
                music2.SoundId = "rbxassetid://477519375"
172
                music2.Looped = true
173
                music2.Volume = 3
174
                music2.Pitch = 0.8
175
                sans = music2
176
                pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
177
                pointGyro.P = 1e7
178
                pointGyro.D = 1e3
179
                pointGyro.MaxTorque = Vector3.new(0,1e7,0)
180
                animator = c.Humanoid:FindFirstChild("Animator")
181
                if animator then
182
                        animator:Destroy()
183
                end
184
                c.Torso.roblox:Destroy()
185
                for i,v in pairs (c.Head:children()) do
186
                        if v.ClassName == "Sound" then
187
                                v:Destroy()
188
                        end
189
                end
190
                for i = 1,#Joints do
191
                        Joints[i].C1 = CFrame.new(Vector3.new())
192
                end
193
                human.WalkSpeed = 0
194
                human.JumpPower = 0
195
        end
196
197
        uinps.InputBegan:connect(function(InputObject)
198
                if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
199
                        Debounces.isPassive = not Debounces.isPassive
200
                end
201
        end)
202
203
        setJointCFrames = function(table)
204
                for i = 1,#table do
205
                        JointTargets[i] = table[i]
206
                end
207
                AnimationCycles = 0
208
        end
209
210
        setLerp = function(speed)
211
                AnimStat.lerpSpeed = speed
212
        end
213
214
        setTween = function(tween)
215
                AnimStat.lerpTween = tween
216
        end
217
218
        takeDamage = function(position,damage,distance,platformStand)
219
                for i,v in pairs (pls:children()) do
220
                        if v.ClassName == "Player" and v:FindFirstChild("Character") then
221
                                local torso = v.Character:FindFirstChild("Torso")
222
                                if torso and (torso.Position - position).magnitude < distance then
223
                                        v.Character.Humanoid:TakeDamage(damage)
224
                                        if platformStand == true then
225
                                                v.Character.PlatformStand = platformStand
226
                                        end
227
                                end
228
                        end
229
                end
230
        end
231
232
--------------------------------------------------------
233
234
        prepareCharacter()
235
236
--------------------------------------------------------
237
238
        spawn(function()
239
                local sine = 0
240
                while wait() do
241
                        pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
242
                        if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
243
                                setLerp(.1)
244
                                if Debounces.isPassive == true then
245
                                        setJointCFrames({
246
                                                CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
247
                                                CFrame.new(Vector3.new(-0.001, 1.52 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(-10.861 + math.sin((-tick() + 2) * 1.5) * 5, 13.765, -1.658));
248
                                                CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
249
                                                CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
250
                                                CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
251
                                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
252
                                        })
253
                                else
254
                                        setJointCFrames({
255
                                                CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
256
                                                CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) * 1.5) * 5, -0.001, -0.001));
257
                                                CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
258
                                                CFrame.new(Vector3.new(1.059, -0.031 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511));
259
                                                CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
260
                                                CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
261
                                        })
262
                                end
263
                        elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
264
                                sine = sine + math.rad(12)
265
                                human.WalkSpeed = 15
266
                                setLerp(.15)
267
                                setJointCFrames({
268
                                        CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
269
                                        CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
270
                                        CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0, 0));
271
                                        CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, 0));
272
                                        CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0));
273
                                        CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0));
274
                                })
275
                        end
276
                        if Debounces.scalingDamage == true then
277
                                takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
278
                        end
279
                end
280
        end)
281
282
        human.Changed:connect(function(prop)
283
                if prop == "MoveDirection" then
284
                        if human.MoveDirection.magnitude > .02 then
285
                                Debounces.isMoving = true
286
                        else
287
                                Debounces.isMoving = false
288
                        end
289
                end
290
        end)
291
292
        uinps.InputBegan:connect(function(InputObject)
293
                if InputObject.KeyCode == Enum.KeyCode.A and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
294
                        Debounces.isBoosting = true
295
                        Debounces.damageLevel = 10
296
                        Debounces.scalingDamage = true
297
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
298
                        setLerp(.15)
299
                        setJointCFrames({
300
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
301
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
302
                                CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
303
                                CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
304
                                CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
305
                                CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
306
                        })
307
                        local boostSpeed = 250
308
                        local efx = Instance.new("Sound",c.Head)
309
                        efx.SoundId = "rbxassetid://200632875"
310
                        efx.Pitch = math.random(1100,1300)/1000
311
                        efx.Volume = .5
312
                        efx:Play()
313
                        spawn(function()
314
                                wait(5)
315
                                efx:Destroy()
316
                        end)
317
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
318
                        vel.P = 1e3
319
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
320
                        wait(.15)
321
                        vel.P = 1000
322
                        vel.MaxForce = Vector3.new(3000,0,3000)
323
                        vel.Velocity = Vector3.new()
324
                        wait(.3)
325
                        setLerp(.3)
326
                        setJointCFrames({
327
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
328
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
329
                                CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
330
                                CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
331
                                CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
332
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
333
                        })
334
                        wait(.2)
335
                        vel:Destroy()
336
                        Debounces.damageLevel = 0
337
                        Debounces.scalingDamage = false
338
                        Debounces.isBoosting = false
339
                end
340
        end)
341
342
        uinps.InputBegan:connect(function(InputObject)
343
                if InputObject.KeyCode == Enum.KeyCode.D and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
344
                        Debounces.isBoosting = true
345
                        Debounces.damageLevel = 10
346
                        Debounces.scalingDamage = true
347
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
348
                        setLerp(.15)
349
                        setJointCFrames({
350
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
351
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
352
                                CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
353
                                CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
354
                                CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
355
                                CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
356
                        })
357
                        local boostSpeed = 250
358
                        local efx = Instance.new("Sound",c.Head)
359
                        efx.SoundId = "rbxassetid://200632875"
360
                        efx.Pitch = math.random(1100,1300)/1000
361
                        efx.Volume = .5
362
                        efx:Play()
363
                        spawn(function()
364
                                wait(5)
365
                                efx:Destroy()
366
                        end)
367
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
368
                        vel.P = 1e3
369
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
370
                        wait(.15)
371
                        vel.P = 1000
372
                        vel.MaxForce = Vector3.new(3000,0,3000)
373
                        vel.Velocity = Vector3.new()
374
                        wait(.3)
375
                        setLerp(.3)
376
                        setJointCFrames({
377
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
378
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
379
                                CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
380
                                CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
381
                                CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
382
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
383
                        })
384
                        wait(.2)
385
                        vel:Destroy()
386
                        Debounces.damageLevel = 0
387
                        Debounces.scalingDamage = false
388
                        Debounces.isBoosting = false
389
                end
390
        end)
391
392
        uinps.InputBegan:connect(function(InputObject)
393
                if InputObject.KeyCode == Enum.KeyCode.W and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
394
                        Debounces.isBoosting = true
395
                        Debounces.damageLevel = 10
396
                        Debounces.scalingDamage = true
397
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
398
                        setLerp(.15)
399
                        setJointCFrames({
400
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
401
                                CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
402
                                CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
403
                                CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
404
                                CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
405
                                CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
406
                        })
407
                        local boostSpeed = 250
408
                        local efx = Instance.new("Sound",c.Head)
409
                        efx.SoundId = "rbxassetid://200632875"
410
                        efx.Pitch = math.random(1100,1300)/1000
411
                        efx.Volume = .5
412
                        efx:Play()
413
                        spawn(function()
414
                                wait(5)
415
                                efx:Destroy()
416
                        end)
417
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
418
                        vel.P = 1e3
419
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
420
                        wait(.15)
421
                        vel.P = 1000
422
                        vel.MaxForce = Vector3.new(3000,0,3000)
423
                        vel.Velocity = Vector3.new()
424
                        wait(.3)
425
                        setLerp(.3)
426
                        setJointCFrames({
427
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
428
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
429
                                CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
430
                                CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
431
                                CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
432
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
433
                        })
434
                        wait(.2)
435
                        vel:Destroy()
436
                        Debounces.damageLevel = 0
437
                        Debounces.scalingDamage = false
438
                        Debounces.isBoosting = false
439
                end
440
        end)
441
442
        uinps.InputBegan:connect(function(InputObject)
443
                if InputObject.KeyCode == Enum.KeyCode.S and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
444
                        Debounces.isBoosting = true
445
                        Debounces.damageLevel = 10
446
                        Debounces.scalingDamage = true
447
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
448
                        setLerp(.15)
449
                        setJointCFrames({
450
                                CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
451
                                CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
452
                                CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
453
                                CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
454
                                CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
455
                                CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
456
                        })
457
                        local boostSpeed = 150
458
                        local boostSpeed = 250
459
                        local efx = Instance.new("Sound",c.Head)
460
                        efx.SoundId = "rbxassetid://200632875"
461
                        efx.Pitch = math.random(1100,1300)/1000
462
                        efx.Volume = .5
463
                        efx:Play()
464
                        spawn(function()
465
                                wait(5)
466
                                efx:Destroy()
467
                        end)
468
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
469
                        vel.P = 1e3
470
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
471
                        wait(.15)
472
                        vel.P = 1000
473
                        vel.MaxForce = Vector3.new(3000,0,3000)
474
                        vel.Velocity = Vector3.new()
475
                        wait(.3)
476
                        setLerp(.3)
477
                        setJointCFrames({
478
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
479
                                CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
480
                                CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
481
                                CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
482
                                CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
483
                                CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
484
                        })
485
                        wait(.2)
486
                        vel:Destroy()
487
                        Debounces.damageLevel = 0
488
                        Debounces.scalingDamage = false
489
                        Debounces.isBoosting = false
490
                end
491
        end)
492
493
        uinps.InputBegan:connect(function(InputObject)
494
                if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
495
                        local isLooping = true
496
                        uinps.InputEnded:connect(function(InputObject2)
497
                                if InputObject2.KeyCode == Enum.KeyCode.Q then
498
                                        isLooping = false
499
                                end
500
                        end)
501
                        while true do
502
                                if isLooping == false then
503
                                        break
504
                                end
505
                                Debounces.attackNumber = Debounces.attackNumber + 1
506
                                local aimPos = mouse.Hit.p
507
                                local head = Instance.new("Part",c)
508
                                head.Size = Vector3.new(12,.2,12)
509
                                head.CanCollide = false
510
                                head.Anchored = true
511
                                head.Transparency = 1
512
                                for i = 1,2 do
513
                                        local decal = Instance.new("Decal",head)
514
                                        decal.Texture = "rbxassetid://821363611"
515
                                        if i == 1 then
516
                                                decal.Face = Enum.NormalId.Top
517
                                        else
518
                                                decal.Face = Enum.NormalId.Bottom
519
                                        end
520
                                end
521
                                if Debounces.attackNumber%2 == 1 then
522
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
523
                                else
524
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
525
                                end
526
                                spawn(function()
527
                                        local timer = 0
528
                                        while rs.RenderStepped:wait() do
529
                                                if timer >= 1.55 then
530
                                                        break
531
                                                end
532
                                                head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
533
                                                timer = timer + 1/30/(Debounces.FPS/60)
534
                                        end
535
                                        head.CFrame = CFrame.new(head.CFrame.p,aimPos)
536
                                        local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
537
                                        local hit, pos = workspace:FindPartOnRay(ray,c)
538
                                        local dis = (head.CFrame.p - pos).magnitude
539
                                        local rayPart = Instance.new("Part",rayModel)
540
                                        rayPart.Material = "Neon"
541
                                        rayPart.FormFactor = "Custom"
542
                                        rayPart.BrickColor = BrickColor.new(327,0,0)
543
                                        rayPart.Anchored = true
544
                                        rayPart.CanCollide = false
545
                                        rayPart.Size = Vector3.new(7,7,dis + 400)
546
                                        local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
547
                                        rayPart.CFrame = rayCFrame
548
                                        head:Destroy()
549
                                end)
550
                                wait()
551
                                local s = Instance.new("Sound",head)
552
                                s.Volume = 1
553
                                s.SoundId = "rbxassetid://332223043"
554
                                s:Play()
555
                                wait(.04)
556
                        end
557
                end
558
        end)
559
560
        uinps.InputBegan:connect(function(InputObj)
561
                if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
562
                        Debounces.isAttacking = true
563
                        local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
564
                        local head = Instance.new("Part",c)
565
                        head.Size = Vector3.new(18,.2,18)
566
                        head.CanCollide = false
567
                        head.Anchored = true
568
                        head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
569
                        head.Transparency = 1
570
                        for i = 1,2 do
571
                                local decal = Instance.new("Decal",head)
572
                                decal.Texture = "rbxassetid://822856633"
573
                                if i == 1 then
574
                                        decal.Face = Enum.NormalId.Top
575
                                else
576
                                        decal.Face = Enum.NormalId.Bottom
577
                                end
578
                        end
579
                        setLerp(.1)
580
                        setJointCFrames({
581
                                CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
582
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
583
                                CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
584
                                CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
585
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
586
                                CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
587
                        })
588
                        spawn(function()
589
                                local timer = 0
590
                                while rs.RenderStepped:wait() do
591
                                        if timer >= 1.55/.8 then
592
                                                break
593
                                        end
594
                                        head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
595
                                        timer = timer + 1/30/(Debounces.FPS/60)
596
                                end
597
                                head.CFrame = CFrame.new(head.CFrame.p,aimPos)
598
                                local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
599
                                local hit, pos = workspace:FindPartOnRay(ray,c)
600
                                local dis = (head.CFrame.p - pos).magnitude
601
                                local rayPart = Instance.new("Part",rayModel)
602
                                rayPart.Material = "Neon"
603
                                rayPart.FormFactor = "Custom"
604
                                rayPart.Name = "Punch"
605
                                rayPart.BrickColor = BrickColor.new(21,0,0)
606
                                rayPart.Anchored = true
607
                                rayPart.CanCollide = false
608
                                rayPart.Size = Vector3.new(28,28,dis + 400)
609
                                local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
610
                                rayPart.CFrame = rayCFrame
611
                                head:Destroy()
612
                        end)
613
                        wait()
614
                        local s = Instance.new("Sound",head)
615
                        s.Volume = 1
616
                        s.SoundId = "rbxassetid://332223043"
617
                        s.Pitch = .8
618
                        s:Play()
619
                        wait(.75)
620
                        setLerp(.17)
621
                        setJointCFrames({
622
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
623
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
624
                                CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
625
                                CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
626
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
627
                                CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
628
                        })
629
                        wait(.5)
630
                        Debounces.isAttacking = false
631
                end
632
        end)
633
        
634
        reflect = function(d,n)
635
                local i, n = -1 * d.unit, n.unit
636
                local dot = n:Dot(i)
637
                return 2*dot*n - i
638
        end
639
640
        makeReflectionBeam = function(pos,look,isCrit)
641
                local ray = Ray.new(pos,look)
642
                local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
643
                local e = Instance.new("Part",rayModel)
644
                e.Anchored = true
645
                e.CanCollide = false
646
                e.BrickColor = BrickColor.new("Maroon")
647
                e.Material = "Neon"
648
                e.FormFactor = "Custom"
649
                e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
650
                if isCrit == true then
651
                        e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
652
                        e.Name = "Punch"
653
                end
654
                e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
655
                local e = Instance.new("Sound",c)
656
                if isCrit == true then
657
                        e.Volume = .5
658
                else
659
                        e.Volume = .3
660
                        e.Pitch = 1.5
661
                end
662
                e.SoundId = "rbxassetid://200632875"
663
                e:Play()
664
                spawn(function()
665
                        wait(6)
666
                        e:Destroy()
667
                end)
668
                wait(.05)
669
                if hit ~= nil then
670
                        newDir = reflect(look.unit,norm,isCrit)
671
                        makeReflectionBeam(hitpos,newDir * 999,isCrit)
672
                end
673
        end
674
675
        uinps.InputBegan:connect(function(InputObject)
676
                if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
677
                        local isLooping = true
678
                        uinps.InputEnded:connect(function(InputObject2)
679
                                if InputObject2.KeyCode == Enum.KeyCode.Q then
680
                                        isLooping = false
681
                                end
682
                        end)
683
                        while true do
684
                                if isLooping == false then
685
                                        break
686
                                end
687
                                Debounces.attackNumber = Debounces.attackNumber + 1
688
                                local aimPos = mouse.Hit.p
689
                                local head = Instance.new("Part",c)
690
                                head.Size = Vector3.new(12,.2,12)
691
                                head.CanCollide = false
692
                                head.Anchored = true
693
                                head.Transparency = 1
694
                                for i = 1,2 do
695
                                        local decal = Instance.new("Decal",head)
696
                                        decal.Texture = "rbxassetid://821373560"
697
                                        if i == 1 then
698
                                                decal.Face = Enum.NormalId.Top
699
                                        else
700
                                                decal.Face = Enum.NormalId.Bottom
701
                                        end
702
                                end
703
                                if Debounces.attackNumber%2 == 1 then
704
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
705
                                else
706
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
707
                                end
708
                                spawn(function()
709
                                        local timer = 0
710
                                        while rs.RenderStepped:wait() do
711
                                                if timer >= 1.55 then
712
                                                        break
713
                                                end
714
                                                head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
715
                                                timer = timer + 1/30/(Debounces.FPS/60)
716
                                        end
717
                                        head.CFrame = CFrame.new(head.CFrame.p,aimPos)
718
                                        head:Destroy()
719
                                        makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)        
720
                                end)
721
                                
722
                                wait()
723
                                local s = Instance.new("Sound",head)
724
                                s.Volume = 1
725
                                s.SoundId = "rbxassetid://332223043"
726
                                s.Pitch = 1.02
727
                                s:Play()
728
                                wait(.2)
729
                        end
730
                end
731
        end)
732
733
        uinps.InputBegan:connect(function(InputObj)
734
                if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
735
                        Debounces.isAttacking = true
736
                        local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
737
                        local head = Instance.new("Part",c)
738
                        head.Size = Vector3.new(18,.2,18)
739
                        head.CanCollide = false
740
                        head.Anchored = true
741
                        head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
742
                        head.Transparency = 1
743
                        for i = 1,2 do
744
                                local decal = Instance.new("Decal",head)
745
                                decal.Texture = "rbxassetid://822856633"
746
                                if i == 1 then
747
                                        decal.Face = Enum.NormalId.Top
748
                                else
749
                                        decal.Face = Enum.NormalId.Bottom
750
                                end
751
                        end
752
                        setLerp(.1)
753
                        setJointCFrames({
754
                                CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
755
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
756
                                CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
757
                                CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
758
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
759
                                CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
760
                        })
761
                        spawn(function()
762
                                local timer = 0
763
                                while rs.RenderStepped:wait() do
764
                                        if timer >= 1.55/.8 then
765
                                                break
766
                                        end
767
                                        head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
768
                                        timer = timer + 1/30/(Debounces.FPS/60)
769
                                end
770
                                head.CFrame = CFrame.new(head.CFrame.p,aimPos)
771
                                head:Destroy()
772
                                makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
773
                        end)
774
                        wait()
775
                        local s = Instance.new("Sound",head)
776
                        s.Volume = 2
777
                        s.SoundId = "rbxassetid://822856633"
778
                        s.Pitch = .8
779
                        s:Play()
780
                        wait(.75)
781
                        setLerp(.17)
782
                        setJointCFrames({
783
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
784
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
785
                                CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
786
                                CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
787
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
788
                                CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
789
                        })
790
                        wait(.5)
791
                        Debounces.isAttacking = false
792
                end
793
        end)
794
795
        uinps.InputBegan:connect(function(InputObj)
796
                if InputObj.KeyCode == Enum.KeyCode.Slash then
797
                        local finishEvent = nil
798
                        Debounces.isTyping = true
799
                        finishEvent = uinps.InputBegan:connect(function(InputObj)
800
                                if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
801
                                        Debounces.isTyping = false
802
                                        finishEvent:disconnect()
803
                                end
804
                        end)
805
                end
806
        end)
807
808
        uinps.InputBegan:connect(function(InputObj)
809
                if InputObj.KeyCode == Enum.KeyCode.LeftShift then
810
                        Debounces.isSprinting = true
811
                end
812
        end)
813
814
        uinps.InputEnded:connect(function(InputObj)
815
                if InputObj.KeyCode == Enum.KeyCode.LeftShift then
816
                        Debounces.isSprinting = false
817
                end
818
        end)
819
820
        rs.RenderStepped:connect(function()
821
                Debounces.FPS = 1/rs.RenderStepped:wait()
822
                local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
823
                if Debounces.isPassive == false then
824
                        fire.Enabled = false
825
                        light.Range = 0
826
                        fight:Pause()
827
                        sans:Resume()
828
                        efxBlock.Transparency = 1
829
                else
830
                        fire.Enabled = true
831
                        light.Range = 10
832
                        fight:Resume()
833
                        sans:Pause()
834
                        efxBlock.Transparency = 0
835
                end
836
                for i,v in pairs (rayModel:children()) do
837
                        if v.Transparency >= 1 then
838
                                v:Destroy()
839
                        else
840
                                v.CanCollide = true
841
                                local parts = v:GetTouchingParts()
842
                                v.CanCollide = false
843
                                for i = 1,#parts do
844
                                        if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
845
                                                parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
846
                                        elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
847
                                                parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
848
                                        end
849
                                end
850
                                v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
851
                                v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
852
                        end
853
                end
854
                for i = 1,#Joints do
855
                        Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
856
                end
857
                local sineval = math.sin(tick() * 2) * 3
858
                fire.Acceleration = Vector3.new(sineval,1,sineval)
859
                light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
860
        end)