View difference between Paste ID: piYAHEV8 and 63mcQDKY
SHOW: | | - or go back to the newest paste.
1-
-- FridgeClan strikes again!
1+
--Enjoy little skids :)
2-
-- Sensuke, this is why you DON'T goto Voidacity's
2+
dot = false
3-
-- Jaja has been absent, so I've taken it upon myself to steal something
3+
des = false
4
local ChatService = game:GetService("Chat")
5
local player = game.Players.LocalPlayer
6
char = player.Character
7
hum = char.Humanoid
8
torso = hum.Torso
9
lig = Instance.new("PointLight",player.Character.Torso)
10
lig.Color=Color3.new(0,255,255)
11
m=player:GetMouse()
12
bb = Instance.new("BillboardGui",player.Character.Head)
13
bb.Enabled = true
14
bb.AlwaysOnTop = true
15
bb.Size = UDim2.new(0,200,00,50)
16
bb.StudsOffset = Vector3.new(0,1,0)
17
gui=Instance.new("TextBox",bb)
18
gui.Text = "Sans: "
19
gui.Size = UDim2.new(0,400,0,100)
20
gui.Position=UDim2.new(0,-95,0,-85)
21
gui.TextColor3 = Color3.new(255,255,255)
22
gui.BackgroundColor3=Color3.new(0,0,0) --another
23
gui.TextWrapped = true
24
gui.TextScaled = true
25
gui.FontSize = "Size14"
26
gui.TextXAlignment = "Left"
27
gui.TextYAlignment = "Top"
28
gui.Visible = false
29
gui.BorderColor3 = Color3.new(255,255,255)
30
gui.BorderSizePixel = 5
31
32
gui1=Instance.new("TextButton",bb)
33
gui1.Position=UDim2.new(0,5,0,-43)
34
gui1.Size = UDim2.new(0,190,0,51)
35
gui1.Text = ""
36
37
gui1.TextColor3 = Color3.new(255,255,255)
38
gui1.BackgroundColor3=Color3.new(0,0,0) --shotCUT
39
gui1.BackgroundTransparency = 1
40
41
gui1.Visible = false
42
img = Instance.new("ImageLabel",bb)
43
img.Size = UDim2.new(0,0,0,0)
44
img.Position = UDim2.new(0,10,0,-41)
45
img.BackgroundTransparency = 1
46
img.BorderColor3 = Color3.new(0,0,0)
47
img.Visible = false
48
asd = Instance.new("Sound",player.Character.Torso)
49
asd.SoundId = "http://www.roblox.com/asset/?id = 358280695"
50
51
asd1 = Instance.new("Sound",player.Character.Torso)
52
asd1.SoundId = "http://www.roblox.com/asset/?id = 0"
53
54
asd2 = Instance.new("Sound",player.Character.Torso)
55
asd2.SoundId = "http://www.roblox.com/asset/?id = 306370481"
56
asd2.Looped = true
57
asd3 = Instance.new("Sound",player.Character.Torso)
58
asd3.SoundId = "http://www.roblox.com/asset/?id = 316014309"
59
asd3.Looped = true
60
asd4 = Instance.new("Sound",player.Character.Torso)
61
asd4.SoundId = "http://www.roblox.com/asset/?id = 388938813"
62
asd4.Looped = false
63
asd5 = Instance.new("Sound",player.Character.Torso)
64
asd5.SoundId = "http://www.roblox.com/asset/?id = 563368924"
65
asd5.Looped = true
66
dunkd = Instance.new("Sound",player.Character.Torso)
67
dunkd.SoundId = "http://www.roblox.com/asset/?id = 261303790"
68
dunkd.Pitch=1.25
69
dunkd.Looped = false
70
function play(play)
71
asd:Play()
72
asd1:Play()
73
end
74
eye = Instance.new("Part",player.Character)
75
eye.BrickColor = BrickColor.new("Toothpaste")
76
eye.Material = "Neon"
77
eye.FormFactor = 3
78
eye.Shape = "Ball"
79
eye.Size = Vector3.new(0.37,0.37,0.1)
80
weld = Instance.new("Weld",eye)
81
weld.Part0 = eye
82
weld.Part1 = player.Character.Head
83
weld.C0 = CFrame.new(0.1,-0.2,0.45)
84
eye.Transparency = 1
85
-- listen for their chatting
86
player.Chatted:connect(function(message)
87
a = string.len(message)
88
gui.Text = "Sans: "
89
gui.Visible = true
90
gui1.Visible = true
91
des = false
92
img.Visible = false
93
print(a)
94
if dot == false then
95
for i = 1,string.len(message) do wait(0.07)
96
gui.Text =gui.Text..message:sub(i,i)
97
98
play()
99
end
100
end
101
102
des = true
103
end)
104
m.KeyDown:connect(function(k)
105
if k == "g" then
106
asd2:Play()
107
eye.Transparency = 1
108
109
end
110
end)
111
m.KeyDown:connect(function(k)
112
if k == "p" then
113
eye.Transparency = 1
114
asd3:Play()
115
end
116
end)
117
m.KeyDown:connect(function(k)
118
if k == "r" then
119
eye.Transparency = 1
120
asd4:Play()
121
end
122
end)
123
m.KeyDown:connect(function(k)
124
if k == "t" then
125
eye.Transparency = 1
126
asd5:Play()
127
end
128
end)
129
m.KeyDown:connect(function(k)
130
if k == "z" then
131
132
img.Image = "rbxassetid://"
133
end
134
end)
135
m.KeyDown:connect(function(k)
136
if k == "c" then
137
cool = Instance.new("Sound",player.Character.Torso)
138
cool.SoundId = "http://www.roblox.com/asset/?id = 392201535"
139
wait()
140
cool:Play()
141
human.Health = human.Health - math.random(150,300) --cool short
142
end
143
end)
144
m.KeyDown:connect(function(k)
145
if k == "n" then
146
healy = Instance.new("Sound",player.Character.Torso)
147
healy.SoundId = "http://www.roblox.com/asset/?id = 435185931"
148
wait()
149
healy:Play()
150
human.Health = human.Health + 300 --cool short
151
gui.Visible = true
152
wait()
153
gui.Text = "* You ate the PopCorn.           * Pop secret!                           * You recovered 300 HP!"
154
wait(5)
155
gui.Visible = false
156
end
157
end)
158
m.KeyDown:connect(function(k)
159
if k == "b" then
160
healy = Instance.new("Sound",player.Character.Torso)
161
healy.SoundId = "http://www.roblox.com/asset/?id = 435185931"
162
wait()
163
healy:Play()
164
human.Health = human.Health + 600 --cool short
165
gui.Visible = true
166
wait()
167
gui.Text = "* You ate the FaceSteak.         * You like it alot...                     * You recovered 600 HP!"
168
wait(5)
169
gui.Visible = false
170
end
171
end)
172
m.KeyDown:connect(function(k)
173
if k == "m" then
174
healy = Instance.new("Sound",player.Character.Torso)
175
healy.SoundId = "http://www.roblox.com/asset/?id = 435185931"
176
wait()
177
healy:Play()
178
human.Health = 7500 --cool short
179
gui.Visible = true
180
wait()
181
gui.Text = "* You ate the Spaghetti. Slurp!   * Your HP was maxed out."
182
wait(5)
183
gui.Visible = false
184
end
185
end)
186
m.KeyDown:connect(function(k)
187
if k == "v" then
188
healy = Instance.new("Sound",player.Character.Torso)
189
healy.SoundId = "http://www.roblox.com/asset/?id = 435185931"
190
wait()
191
healy:Play()
192
human.Health = human.Health + 750 --cool short
193
gui.Visible = true
194
wait()
195
gui.Text = "* You drank a MrPibb. Ahhh... * You recovered 750 HP!"
196
wait(5)
197
gui.Visible = false
198
end
199
end)
200
m.KeyDown:connect(function(k)
201
if k == "h" then
202
img.Image = "rbxassetid://"
203
end
204
end)
205
m.KeyDown:connect(function(k)
206
if k == "j" then
207
img.Image = "rbxassetid://"
208
end
209
end)
210
m.KeyDown:connect(function(k)
211
if k == "l" then
212
img.Image = "rbxassetid://"
213
print("You take your very last breath...")
214
asdd = Instance.new("Sound",player.Character.Torso)
215
asdd.SoundId = "http://www.roblox.com/asset/?id = 392201535"
216
asdd.Looped = false
217
spawn(function()
218
wait()
219
asdd:Play()
220
human.Health = 1
221
human.Parent["Right Arm"].BrickColor = BrickColor.new("Really red")
222
end)
223
wait(0.1)
224
asddd = Instance.new("Sound",player.Character.Torso)
225
asddd.SoundId = "http://www.roblox.com/asset/?id = 186311262"
226
asddd.Looped = false
227
spawn(function()
228
wait()
229
asddd:Play()
230
end)
231
wait(30)
232
asdded = Instance.new("Sound",player.Character.Torso)
233
asdded.SoundId = "http://www.roblox.com/asset/?id = 387187707"
234
asdded.Looped = false
235
spawn(function()
236
wait()
237
asdded:Play()
238
end)
239
char:BreakJoints()
240
end
241
end) 
242
m.KeyDown:connect(function(k)
243
if k == "x" then
244
if des == true then
245
gui.Visible = false
246
gui.Text = "Sans: "
247
gui1.Visible = false
248
img.Visible = false
249
end
250
end
251
end)
252
m.KeyDown:connect(function(k)
253
if k == "f" then
254
asd1:Stop()
255
asd3:Stop()
256
asd2:Stop()
257
asd4:Stop()
258
dunkd:Stop()
259
eye.Transparency = 1
260
asd5:Stop()
261
end
262
end)
263
m.KeyDown:connect(function(k)
264
if k == "u" then
265
dunkd = Instance.new("Sound",player.Character.Torso)
266
dunkd.SoundId = "http://www.roblox.com/asset/?id = 313256816"
267
dunkd.Pitch=1.25
268
dunkd.Looped = false
269
dunkd:Play()
270
gui.Text = "Sans: GETTTTTTTTTTTTTTTTTTTTTTTTTTTT DUNKED ON!"
271
end
272
end)
273
m.KeyDown:connect(function(k)
274
if k == "y" then
275
img.Image = "rbxassetid://"
276
end
277
end)
278
--------------------------------------------------------
279
280
        pls = game:GetService'Players'
281
        rs = game:GetService'RunService'
282
        uinps = game:GetService'UserInputService'
283
        lp = pls.LocalPlayer
284
        mouse = lp:GetMouse()
285
        c = lp.Character
286
        human = c.Humanoid
287
        human.MaxHealth = 50
288
        wait()
289
        human.Health = 50
290
        c.Health:Destroy()
291
292
--------------------------------------------------------
293
294
        Debounces = {
295
                AnimationCycles = 0;
296
                FPS = 0;
297
                scalingDamage = false;
298
                damageLevel = 0;
299
                attackNumber = 0;
300
                isAttacking = false;
301
                isMoving = false;
302
                isSprinting = false;
303
                isBoosting = false;
304
                isPassive = false;
305
                isTyping = false;
306
        }
307
308
--------------------------------------------------------
309
310
        numLerp = function(start, goal, alpha)
311
                return(((goal - start) * alpha) + start)
312
        end
313
314
        CFrameZero = function()
315
                return CFrame.new(Vector3.new())
316
        end
317
318
        rad = function(value)
319
                return math.rad(value)
320
        end
321
322
        CFAngles = function(Vector)
323
                return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
324
        end
325
326
--------------------------------------------------------
327
328
        AnimStat = {
329
                lerpSpeed = .2;
330
                lerpSpeed2 = .35;
331
                lerpTween = 0;
332
        }
333
334
        Joints = {
335
                c.HumanoidRootPart.RootJoint;
336
                c.Torso.Neck;
337
                c.Torso['Left Shoulder'];
338
                c.Torso['Right Shoulder'];
339
                c.Torso['Left Hip'];
340
                c.Torso['Right Hip'];
341
        }
342
343
        JointTargets = {
344
                CFrameZero();
345
                CFrameZero();
346
                CFrameZero();
347
                CFrameZero();
348
                CFrameZero();
349
                CFrameZero();
350
        }
351
352
--------------------------------------------------------
353
354
        BodyColors = {
355
                HeadColor = BrickColor.new("Institutional white");
356
                LeftArmColor = BrickColor.new("Institutional white");
357
                RightArmColor = BrickColor.new("Institutional white");
358
                LeftLegColor = BrickColor.new("Institutional white");
359
                RightLegColor = BrickColor.new("Institutional white");
360
                TorsoColor = BrickColor.new("Mid gray");
361
        }
362
363
        Customs = {
364
                Face = "http://www.roblox.com/asset/?id=8560915";
365
                Shirt = "http://www.roblox.com/asset/?id=334781688";
366
                Pants = "http://www.roblox.com/asset/?id=335237283";
367
        }
368
369
--------------------------------------------------------
370
371
        prepareCharacter = function()
372
                local transPoints = {
373
                        NumberSequenceKeypoint.new(0,.819,.0375),
374
                        NumberSequenceKeypoint.new(.207,.594,.0187),
375
                        NumberSequenceKeypoint.new(.4,.55,.031),
376
                        NumberSequenceKeypoint.new(.57,.619,.05),
377
                        NumberSequenceKeypoint.new(.76,.8,.0375),
378
                        NumberSequenceKeypoint.new(1,1,0),
379
                }
380
                local sizePoints = {
381
                        NumberSequenceKeypoint.new(0,.687,0),
382
                        NumberSequenceKeypoint.new(.111,.875,0),
383
                        NumberSequenceKeypoint.new(.327,1.19,0),
384
                        NumberSequenceKeypoint.new(.646,1.56,0),
385
                        NumberSequenceKeypoint.new(.805,1.37,0),
386
                        NumberSequenceKeypoint.new(.905,1.06,0),
387
                        NumberSequenceKeypoint.new(.968,.938,0),
388
                        NumberSequenceKeypoint.new(.984,1.13,0),
389
                        NumberSequenceKeypoint.new(1,1.62,0),
390
                }
391
                local Size = NumberSequence.new(sizePoints)
392
                local Transparency = NumberSequence.new(transPoints)
393
                rayModel = Instance.new("Model",c)
394
                efxBlock = Instance.new("Part",c)
395
                efxBlock.BrickColor = BrickColor.new("Cyan")
396
                efxBlock.Material = "Neon"
397
                efxBlock.FormFactor = "Custom"
398
                efxBlock.Transparency = .3
399
                efxBlock.Size = Vector3.new(.3,.3,.3)
400
                local mesh = Instance.new("SpecialMesh",efxBlock)
401
                mesh.MeshType = Enum.MeshType.Sphere
402
                mesh.Scale = Vector3.new(1,1,1)
403
                light = Instance.new("PointLight",c.Head)
404
                light.Range = 10
405
                light.Color = Color3.new(0,200/255,1)
406
                light.Shadows = false
407
                local particles = Instance.new("ParticleEmitter",efxBlock)
408
                particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
409
                particles.LightEmission = .95
410
                particles.Size = Size
411
                particles.Name = "Fire"
412
                particles.Transparency = Transparency
413
                particles.LockedToPart = true
414
                particles.VelocityInheritance = .5
415
                particles.LockedToPart = true
416
                particles.Rate = 70
417
                particles.Texture = "rbxassetid://56561915"
418
                particles.Lifetime = NumberRange.new(2,2)
419
                particles.RotSpeed = NumberRange.new(100,100)
420
                particles.Speed = NumberRange.new(7,7)
421
                script.Parent = efxBlock
422
                fire = particles
423
                local offset = Vector3.new(-0.11, .23, -0.5)
424
                local weld = Instance.new("Weld",c.Head)
425
                weld.Part0 = c.Head
426
                weld.Part1 = efxBlock
427
                weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
428
                efxBlock.Parent = c
429
                local music = Instance.new("Sound",c)
430
                music.SoundId = "rbxassetid://316012176"
431
                music.Looped = true
432
                music.Volume = 0
433
                fight = music
434
                local music2 = Instance.new("Sound",c)
435
                music2.SoundId = "rbxassetid://316014309"
436
                music2.Looped = true
437
                music2.Volume = 0
438
                sans = music2
439
                pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
440
                pointGyro.P = 1e7
441
                pointGyro.D = 1e3
442
                pointGyro.MaxTorque = Vector3.new(0,1e7,0)
443
                animator = c.Humanoid:FindFirstChild("Animator")
444
                if animator then
445
                        animator:Destroy()
446
                end
447
                c.Torso.roblox:Destroy()
448
                for i,v in pairs (c.Head:children()) do
449
                        if v.ClassName == "Sound" then
450
                                v:Destroy()
451
                        end
452
                end
453
                for i = 1,#Joints do
454
                        Joints[i].C1 = CFrame.new(Vector3.new())
455
                end
456
                human.WalkSpeed = 0
457
                human.JumpPower = 0
458
        end
459
460
        uinps.InputBegan:connect(function(InputObject)
461
                if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
462
                        Debounces.isPassive = not Debounces.isPassive
463
                end
464
        end)
465
466
        setJointCFrames = function(table)
467
                for i = 1,#table do
468
                        JointTargets[i] = table[i]
469
                end
470
                AnimationCycles = 0
471
        end
472
473
        setLerp = function(speed)
474
                AnimStat.lerpSpeed = speed
475
        end
476
477
        setTween = function(tween)
478
                AnimStat.lerpTween = tween
479
        end
480
481
        takeDamage = function(position,damage,distance,platformStand)
482
                for i,v in pairs (pls:children()) do
483
                        if v.ClassName == "Player" and v:FindFirstChild("Character") then
484
                                local torso = v.Character:FindFirstChild("Torso")
485
                                if torso and (torso.Position - position).magnitude < distance then
486
                                        v.Character.Humanoid:TakeDamage(damage)
487
                                        if platformStand == true then
488
                                                v.Character.PlatformStand = platformStand
489
                                        end
490
                                end
491
                        end
492
                end
493
        end
494
495
--------------------------------------------------------
496
497
        prepareCharacter()
498
499
--------------------------------------------------------
500
501
        spawn(function()
502
                local sine = 0
503
                while wait() do
504
                        pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
505
                        if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
506
                                setLerp(.1)
507
                                if Debounces.isPassive == true then
508
                                        setJointCFrames({
509
                                                CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
510
                                                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));
511
                                                CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
512
                                                CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
513
                                                CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
514
                                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
515
                                        })
516
                                else
517
                                        setJointCFrames({
518
                                                CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
519
                                                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));
520
                                                CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
521
                                                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));
522
                                                CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
523
                                                CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
524
                                        })
525
                                end
526
                        elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
527
                                sine = sine + math.rad(12)
528
                                human.WalkSpeed = 15
529
                                setLerp(.15)
530
                                setJointCFrames({
531
                                        CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
532
                                        CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
533
                                        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));
534
                                        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));
535
                                        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));
536
                                        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));
537
                                })
538
                        end
539
                        if Debounces.scalingDamage == true then
540
                                takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
541
                        end
542
                end
543
        end)
544
545
        human.Changed:connect(function(prop)
546
                if prop == "MoveDirection" then
547
                        if human.MoveDirection.magnitude > .02 then
548
                                Debounces.isMoving = true
549
                        else
550
                                Debounces.isMoving = false
551
                        end
552
                end
553
        end)
554
555
        uinps.InputBegan:connect(function(InputObject)
556
                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
557
                        Debounces.isBoosting = true
558
                        Debounces.damageLevel = 10
559
                        Debounces.scalingDamage = true
560
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
561
                        setLerp(.15)
562
                        setJointCFrames({
563
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
564
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
565
                                CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
566
                                CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
567
                                CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
568
                                CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
569
                        })
570
                        local boostSpeed = 250
571
                        local efx = Instance.new("Sound",c.Head)
572
                        efx.SoundId = "rbxassetid://200632875"
573
                        efx.Pitch = math.random(1100,1300)/1000
574
                        efx.Volume = .5
575
                        efx:Play()
576
                        spawn(function()
577
                                wait(5)
578
                                efx:Destroy()
579
                        end)
580
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
581
                        vel.P = 1e3
582
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
583
                        wait(.15)
584
                        vel.P = 1000
585
                        vel.MaxForce = Vector3.new(3000,0,3000)
586
                        vel.Velocity = Vector3.new()
587
                        wait(.3)
588
                        setLerp(.3)
589
                        setJointCFrames({
590
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
591
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
592
                                CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
593
                                CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
594
                                CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
595
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
596
                        })
597
                        wait(.2)
598
                        vel:Destroy()
599
                        Debounces.damageLevel = 0
600
                        Debounces.scalingDamage = false
601
                        Debounces.isBoosting = false
602
                end
603
        end)
604
605
        uinps.InputBegan:connect(function(InputObject)
606
                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
607
                        Debounces.isBoosting = true
608
                        Debounces.damageLevel = 10
609
                        Debounces.scalingDamage = true
610
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
611
                        setLerp(.15)
612
                        setJointCFrames({
613
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
614
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
615
                                CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
616
                                CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
617
                                CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
618
                                CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
619
                        })
620
                        local boostSpeed = 250
621
                        local efx = Instance.new("Sound",c.Head)
622
                        efx.SoundId = "rbxassetid://200632875"
623
                        efx.Pitch = math.random(1100,1300)/1000
624
                        efx.Volume = .5
625
                        efx:Play()
626
                        spawn(function()
627
                                wait(5)
628
                                efx:Destroy()
629
                        end)
630
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
631
                        vel.P = 1e3
632
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
633
                        wait(.15)
634
                        vel.P = 1000
635
                        vel.MaxForce = Vector3.new(3000,0,3000)
636
                        vel.Velocity = Vector3.new()
637
                        wait(.3)
638
                        setLerp(.3)
639
                        setJointCFrames({
640
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
641
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
642
                                CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
643
                                CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
644
                                CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
645
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
646
                        })
647
                        wait(.2)
648
                        vel:Destroy()
649
                        Debounces.damageLevel = 0
650
                        Debounces.scalingDamage = false
651
                        Debounces.isBoosting = false
652
                end
653
        end)
654
655
        uinps.InputBegan:connect(function(InputObject)
656
                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
657
                        Debounces.isBoosting = true
658
                        Debounces.damageLevel = 10
659
                        Debounces.scalingDamage = true
660
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
661
                        setLerp(.15)
662
                        setJointCFrames({
663
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
664
                                CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
665
                                CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
666
                                CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
667
                                CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
668
                                CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
669
                        })
670
                        local boostSpeed = 250
671
                        local efx = Instance.new("Sound",c.Head)
672
                        efx.SoundId = "rbxassetid://200632875"
673
                        efx.Pitch = math.random(1100,1300)/1000
674
                        efx.Volume = .5
675
                        efx:Play()
676
                        spawn(function()
677
                                wait(5)
678
                                efx:Destroy()
679
                        end)
680
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
681
                        vel.P = 1e3
682
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
683
                        wait(.15)
684
                        vel.P = 1000
685
                        vel.MaxForce = Vector3.new(3000,0,3000)
686
                        vel.Velocity = Vector3.new()
687
                        wait(.3)
688
                        setLerp(.3)
689
                        setJointCFrames({
690
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
691
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
692
                                CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
693
                                CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
694
                                CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
695
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
696
                        })
697
                        wait(.2)
698
                        vel:Destroy()
699
                        Debounces.damageLevel = 0
700
                        Debounces.scalingDamage = false
701
                        Debounces.isBoosting = false
702
                end
703
        end)
704
705
        uinps.InputBegan:connect(function(InputObject)
706
                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
707
                        Debounces.isBoosting = true
708
                        Debounces.damageLevel = 10
709
                        Debounces.scalingDamage = true
710
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
711
                        setLerp(.15)
712
                        setJointCFrames({
713
                                CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
714
                                CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
715
                                CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
716
                                CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
717
                                CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
718
                                CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
719
                        })
720
                        local boostSpeed = 150
721
                        local boostSpeed = 250
722
                        local efx = Instance.new("Sound",c.Head)
723
                        efx.SoundId = "rbxassetid://200632875"
724
                        efx.Pitch = math.random(1100,1300)/1000
725
                        efx.Volume = .5
726
                        efx:Play()
727
                        spawn(function()
728
                                wait(5)
729
                                efx:Destroy()
730
                        end)
731
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
732
                        vel.P = 1e3
733
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
734
                        wait(.15)
735
                        vel.P = 1000
736
                        vel.MaxForce = Vector3.new(3000,0,3000)
737
                        vel.Velocity = Vector3.new()
738
                        wait(.3)
739
                        setLerp(.3)
740
                        setJointCFrames({
741
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
742
                                CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
743
                                CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
744
                                CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
745
                                CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
746
                                CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
747
                        })
748
                        wait(.2)
749
                        vel:Destroy()
750
                        Debounces.damageLevel = 0
751
                        Debounces.scalingDamage = false
752
                        Debounces.isBoosting = false
753
                end
754
        end)
755
756
        uinps.InputBegan:connect(function(InputObject)
757
                if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
758
                        local isLooping = true
759
                        uinps.InputEnded:connect(function(InputObject2)
760
                                if InputObject2.KeyCode == Enum.KeyCode.Q then
761
                                        isLooping = false
762
                                end
763
                        end)
764
                        while true do
765
                                if isLooping == false then
766
                                        break
767
                                end
768
                                Debounces.attackNumber = Debounces.attackNumber + 1
769
                                local aimPos = mouse.Hit.p
770
                                local head = Instance.new("Part",c)
771
                                head.Size = Vector3.new(12,.2,12)
772
                                head.CanCollide = false
773
                                head.Anchored = true
774
                                head.Transparency = 1
775
                                for i = 1,2 do
776
                                        local decal = Instance.new("Decal",head)
777
                                        decal.Texture = "rbxassetid://323497117"
778
                                        if i == 1 then
779
                                                decal.Face = Enum.NormalId.Top
780
                                        else
781
                                                decal.Face = Enum.NormalId.Bottom
782
                                        end
783
                                end
784
                                if Debounces.attackNumber%2 == 1 then
785
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
786
                                else
787
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
788
                                end
789
                                spawn(function()
790
                                        local timer = 0
791
                                        while rs.RenderStepped:wait() do
792
                                                if timer >= 1.55 then
793
                                                        break
794
                                                end
795
                                                head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
796
                                                timer = timer + 1/30/(Debounces.FPS/60)
797
                                        end
798
                                        head.CFrame = CFrame.new(head.CFrame.p,aimPos)
799
                                        local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
800
                                        local hit, pos = workspace:FindPartOnRay(ray,c)
801
                                        local dis = (head.CFrame.p - pos).magnitude
802
                                        local rayPart = Instance.new("Part",rayModel)
803
                                        rayPart.Material = "Neon"
804
                                        rayPart.FormFactor = "Custom"
805
                                        rayPart.BrickColor = BrickColor.new(1,1,1)
806
                                        rayPart.Anchored = true
807
                                        rayPart.CanCollide = false
808
                                        rayPart.Size = Vector3.new(7,7,dis + 400)
809
                                        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)
810
                                        rayPart.CFrame = rayCFrame
811
                                        head:Destroy()
812
                                end)
813
                                wait()
814
                                local s = Instance.new("Sound",head)
815
                                s.Volume = 1
816
                                s.SoundId = "rbxassetid://332223043"
817
                                s:Play()
818
                                wait(.04)
819
                        end
820
                end
821
        end)
822
823
        uinps.InputBegan:connect(function(InputObj)
824
                if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
825
                        Debounces.isAttacking = true
826
                        local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
827
                        local head = Instance.new("Part",c)
828
                        head.Size = Vector3.new(18,.2,18)
829
                        head.CanCollide = false
830
                        head.Anchored = true
831
                        head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
832
                        head.Transparency = 1
833
                        for i = 1,2 do
834
                                local decal = Instance.new("Decal",head)
835
                                decal.Texture = "rbxassetid://323497117"
836
                                if i == 1 then
837
                                        decal.Face = Enum.NormalId.Top
838
                                else
839
                                        decal.Face = Enum.NormalId.Bottom
840
                                end
841
                        end
842
                        setLerp(.1)
843
                        setJointCFrames({
844
                                CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
845
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
846
                                CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
847
                                CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
848
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
849
                                CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
850
                        })
851
                        spawn(function()
852
                                local timer = 0
853
                                while rs.RenderStepped:wait() do
854
                                        if timer >= 1.55/.8 then
855
                                                break
856
                                        end
857
                                        head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
858
                                        timer = timer + 1/30/(Debounces.FPS/60)
859
                                end
860
                                head.CFrame = CFrame.new(head.CFrame.p,aimPos)
861
                                local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
862
                                local hit, pos = workspace:FindPartOnRay(ray,c)
863
                                local dis = (head.CFrame.p - pos).magnitude
864
                                local rayPart = Instance.new("Part",rayModel)
865
                                rayPart.Material = "Neon"
866
                                rayPart.FormFactor = "Custom"
867
                                rayPart.Name = "Punch"
868
                                rayPart.BrickColor = BrickColor.new(1,1,1)
869
                                rayPart.Anchored = true
870
                                rayPart.CanCollide = false
871
                                rayPart.Size = Vector3.new(28,28,dis + 400)
872
                                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)
873
                                rayPart.CFrame = rayCFrame
874
                                head:Destroy()
875
                        end)
876
                        wait()
877
                        local s = Instance.new("Sound",head)
878
                        s.Volume = 1
879
                        s.SoundId = "rbxassetid://332223043"
880
                        s.Pitch = .8
881
                        s:Play()
882
                        wait(.75)
883
                        setLerp(.17)
884
                        setJointCFrames({
885
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
886
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
887
                                CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
888
                                CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
889
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
890
                                CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
891
                        })
892
                        wait(.5)
893
                        Debounces.isAttacking = false
894
                end
895
        end)
896
        
897
        reflect = function(d,n)
898
                local i, n = -1 * d.unit, n.unit
899
                local dot = n:Dot(i)
900
                return 2*dot*n - i
901
        end
902
903
        makeReflectionBeam = function(pos,look,isCrit)
904
                local ray = Ray.new(pos,look)
905
                local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
906
                local e = Instance.new("Part",rayModel)
907
                e.Anchored = true
908
                e.CanCollide = false
909
                e.BrickColor = BrickColor.new("White")
910
                e.Material = "Neon"
911
                e.FormFactor = "Custom"
912
                e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
913
                if isCrit == true then
914
                        e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
915
                        e.Name = "Punch"
916
                end
917
                e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
918
                local e = Instance.new("Sound",c)
919
                if isCrit == true then
920
                        e.Volume = .5
921
                else
922
                        e.Volume = .3
923
                        e.Pitch = 1.5
924
                end
925
                e.SoundId = "rbxassetid://200632875"
926
                e:Play()
927
                spawn(function()
928
                        wait(6)
929
                        e:Destroy()
930
                end)
931
                wait(.05)
932
                if hit ~= nil then
933
                        newDir = reflect(look.unit,norm,isCrit)
934
                        makeReflectionBeam(hitpos,newDir * 999,isCrit)
935
                end
936
        end
937
938
        uinps.InputBegan:connect(function(InputObject)
939
                if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
940
                        local isLooping = true
941
                        uinps.InputEnded:connect(function(InputObject2)
942
                                if InputObject2.KeyCode == Enum.KeyCode.Q then
943
                                        isLooping = false
944
                                end
945
                        end)
946
                        while true do
947
                                if isLooping == false then
948
                                        break
949
                                end
950
                                Debounces.attackNumber = Debounces.attackNumber + 1
951
                                local aimPos = mouse.Hit.p
952
                                local head = Instance.new("Part",c)
953
                                head.Size = Vector3.new(12,.2,12)
954
                                head.CanCollide = false
955
                                head.Anchored = true
956
                                head.Transparency = 1
957
                                for i = 1,2 do
958
                                        local decal = Instance.new("Decal",head)
959
                                        decal.Texture = "rbxassetid://323497117"
960
                                        if i == 1 then
961
                                                decal.Face = Enum.NormalId.Top
962
                                        else
963
                                                decal.Face = Enum.NormalId.Bottom
964
                                        end
965
                                end
966
                                if Debounces.attackNumber%2 == 1 then
967
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
968
                                else
969
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
970
                                end
971
                                spawn(function()
972
                                        local timer = 0
973
                                        while rs.RenderStepped:wait() do
974
                                                if timer >= 1.55 then
975
                                                        break
976
                                                end
977
                                                head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
978
                                                timer = timer + 1/30/(Debounces.FPS/60)
979
                                        end
980
                                        head.CFrame = CFrame.new(head.CFrame.p,aimPos)
981
                                        head:Destroy()
982
                                        makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)        
983
                                end)
984
                                
985
                                wait()
986
                                local s = Instance.new("Sound",head)
987
                                s.Volume = 1
988
                                s.SoundId = "rbxassetid://332223043"
989
                                s.Pitch = 1.02
990
                                s:Play()
991
                                wait(.2)
992
                        end
993
                end
994
        end)
995
996
        uinps.InputBegan:connect(function(InputObj)
997
                if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
998
                        Debounces.isAttacking = true
999
                        local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
1000
                        local head = Instance.new("Part",c)
1001
                        head.Size = Vector3.new(18,.2,18)
1002
                        head.CanCollide = false
1003
                        head.Anchored = true
1004
                        head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
1005
                        head.Transparency = 1
1006
                        for i = 1,2 do
1007
                                local decal = Instance.new("Decal",head)
1008
                                decal.Texture = "rbxassetid://323497117"
1009
                                if i == 1 then
1010
                                        decal.Face = Enum.NormalId.Top
1011
                                else
1012
                                        decal.Face = Enum.NormalId.Bottom
1013
                                end
1014
                        end
1015
                        setLerp(.1)
1016
                        setJointCFrames({
1017
                                CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
1018
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
1019
                                CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
1020
                                CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
1021
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
1022
                                CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
1023
                        })
1024
                        spawn(function()
1025
                                local timer = 0
1026
                                while rs.RenderStepped:wait() do
1027
                                        if timer >= 1.55/.8 then
1028
                                                break
1029
                                        end
1030
                                        head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
1031
                                        timer = timer + 1/30/(Debounces.FPS/60)
1032
                                end
1033
                                head.CFrame = CFrame.new(head.CFrame.p,aimPos)
1034
                                head:Destroy()
1035
                                makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
1036
                        end)
1037
                        wait()
1038
                        local s = Instance.new("Sound",head)
1039
                        s.Volume = 2
1040
                        s.SoundId = "rbxassetid://332223043"
1041
                        s.Pitch = .8
1042
                        s:Play()
1043
                        wait(.75)
1044
                        setLerp(.17)
1045
                        setJointCFrames({
1046
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
1047
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
1048
                                CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
1049
                                CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
1050
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
1051
                                CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
1052
                        })
1053
                        wait(.5)
1054
                        Debounces.isAttacking = false
1055
                end
1056
        end)
1057
1058
        uinps.InputBegan:connect(function(InputObj)
1059
                if InputObj.KeyCode == Enum.KeyCode.Slash then
1060
                        local finishEvent = nil
1061
                        Debounces.isTyping = true
1062
                        finishEvent = uinps.InputBegan:connect(function(InputObj)
1063
                                if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
1064
                                        Debounces.isTyping = false
1065
                                        finishEvent:disconnect()
1066
                                end
1067
                        end)
1068
                end
1069
        end)
1070
1071
        uinps.InputBegan:connect(function(InputObj)
1072
                if InputObj.KeyCode == Enum.KeyCode.LeftShift then
1073
                        Debounces.isSprinting = true
1074
                end
1075
        end)
1076
1077
        uinps.InputEnded:connect(function(InputObj)
1078
                if InputObj.KeyCode == Enum.KeyCode.LeftShift then
1079
                        Debounces.isSprinting = false
1080
                end
1081
        end)
1082
1083
        rs.RenderStepped:connect(function()
1084
                Debounces.FPS = 1/rs.RenderStepped:wait()
1085
                local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
1086
                if Debounces.isPassive == false then
1087
                        fire.Enabled = false
1088
                        light.Range = 0
1089
                        fight:Pause()
1090
                        sans:Resume()
1091
                        efxBlock.Transparency = 1
1092
                else
1093
                        fire.Enabled = true
1094
                        light.Range = 10
1095
                        fight:Resume()
1096
                        sans:Pause()
1097
                        efxBlock.Transparency = 0
1098
                end
1099
                for i,v in pairs (rayModel:children()) do
1100
                        if v.Transparency >= 1 then
1101
                                v:Destroy()
1102
                        else
1103
                                v.CanCollide = true
1104
                                local parts = v:GetTouchingParts()
1105
                                v.CanCollide = false
1106
                                for i = 1,#parts do
1107
                                        if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
1108
                                                parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
1109
                                        elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
1110
                                                parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
1111
                                        end
1112
                                end
1113
                                v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
1114
                                v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
1115
                        end
1116
                end
1117
                for i = 1,#Joints do
1118
                        Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
1119
                end
1120
                local sineval = math.sin(tick() * 2) * 3
1121
                fire.Acceleration = Vector3.new(sineval,1,sineval)
1122
                light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
1123
        end)