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