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