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