View difference between Paste ID: uGnrRpUU and Dj9Cfda8
SHOW: | | - or go back to the newest paste.
1
wait(1)
2-
player = game.Players.LocalPlayer
2+
player = owner
3
torso = player.Character:WaitForChild("Torso")
4-
mouse = player:GetMouse()
4+
5
mouse.KeyDown:connect(function(key)
6
	if key == "c" then
7
		dist = (torso.Position - mouse.Hit.p).magnitude
8
		if dist <= 100 then
9
			torso.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,3,0)
10
		end
11
	end
12
end)
13
-- BurnLegion strikes again!
14
-- wongxd, this is why you DON'T goto Voidacity's
15
-- SLPM has been absent, so I've taken it upon myself to make something
16
17
--------------------------------------------------------
18
19
        pls = game:GetService'Players'
20
        rs = game:GetService'RunService'
21
        uinps = game:GetService'UserInputService'
22
        lp = pls.LocalPlayer
23
        mouse = lp:GetMouse()
24
        c = lp.Character
25
        human = c.Humanoid
26
        human.MaxHealth = 50
27
        wait()
28
        human.Health = 50
29
        c.Health:Destroy()
30
31
--------------------------------------------------------
32
33
        Debounces = {
34
                AnimationCycles = 0;
35
                FPS = 0;
36
                scalingDamage = false;
37
                damageLevel = 0;
38
                attackNumber = 0;
39
                isAttacking = false;
40
                isMoving = false;
41
                isSprinting = false;
42
                isBoosting = false;
43
                isPassive = false;
44
                isTyping = false;
45
        }
46
47
--------------------------------------------------------
48
49
        numLerp = function(start, goal, alpha)
50
                return(((goal - start) * alpha) + start)
51
        end
52
53
        CFrameZero = function()
54
                return CFrame.new(Vector3.new())
55
        end
56
57
        rad = function(value)
58
                return math.rad(value)
59
        end
60
61
        CFAngles = function(Vector)
62
                return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
63
        end
64
65
--------------------------------------------------------
66
67
        AnimStat = {
68
                lerpSpeed = .2;
69
                lerpSpeed2 = .35;
70
                lerpTween = 0;
71
        }
72
73
        Joints = {
74
                c.HumanoidRootPart.RootJoint;
75
                c.Torso.Neck;
76
                c.Torso['Left Shoulder'];
77
                c.Torso['Right Shoulder'];
78
                c.Torso['Left Hip'];
79
                c.Torso['Right Hip'];
80
        }
81
82
        JointTargets = {
83
                CFrameZero();
84
                CFrameZero();
85
                CFrameZero();
86
                CFrameZero();
87
                CFrameZero();
88
                CFrameZero();
89
        }
90
91
--------------------------------------------------------
92
93
        BodyColors = {
94
                HeadColor = BrickColor.new("Institutional white");
95
                LeftArmColor = BrickColor.new("Institutional white");
96
                RightArmColor = BrickColor.new("Institutional white");
97
                LeftLegColor = BrickColor.new("Institutional white");
98
                RightLegColor = BrickColor.new("Institutional white");
99
                TorsoColor = BrickColor.new("Mid gray");
100
        }
101
102
        Customs = {
103
                Face = "http://www.roblox.com/asset/?id=8560915";
104
                Shirt = "http://www.roblox.com/asset/?id=334781688";
105
                Pants = "http://www.roblox.com/asset/?id=335237283";
106
        }
107
108
--------------------------------------------------------
109
110
ypcall(function()
111
char.Shirt:Destroy()
112
char.Pants:Destroy()
113
shirt = Instance.new("Shirt", char)
114
shirt.Name = "Shirt"
115
pants = Instance.new("Pants", char)
116
pants.Name = "Pants"
117
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=334755544"
118
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=315964941"
119
end)
120
121
--------------------------------------------------------
122
123
        prepareCharacter = function()
124
                local transPoints = {
125
                        NumberSequenceKeypoint.new(0,.819,.0375),
126
                        NumberSequenceKeypoint.new(.207,.594,.0187),
127
                        NumberSequenceKeypoint.new(.4,.55,.031),
128
                        NumberSequenceKeypoint.new(.57,.619,.05),
129
                        NumberSequenceKeypoint.new(.76,.8,.0375),
130
                        NumberSequenceKeypoint.new(1,1,0),
131
                }
132
                local sizePoints = {
133
                        NumberSequenceKeypoint.new(0,.687,0),
134
                        NumberSequenceKeypoint.new(.111,.875,0),
135
                        NumberSequenceKeypoint.new(.327,1.19,0),
136
                        NumberSequenceKeypoint.new(.646,1.56,0),
137
                        NumberSequenceKeypoint.new(.805,1.37,0),
138
                        NumberSequenceKeypoint.new(.905,1.06,0),
139
                        NumberSequenceKeypoint.new(.968,.938,0),
140
                        NumberSequenceKeypoint.new(.984,1.13,0),
141
                        NumberSequenceKeypoint.new(1,1.62,0),
142
                }
143
                local Size = NumberSequence.new(sizePoints)
144
                local Transparency = NumberSequence.new(transPoints)
145
                rayModel = Instance.new("Model",c)
146
                efxBlock = Instance.new("Part",c)
147
                efxBlock.BrickColor = BrickColor.new("Cyan")
148
                efxBlock.Material = "Neon"
149
                efxBlock.FormFactor = "Custom"
150
                efxBlock.Transparency = .3
151
                efxBlock.Size = Vector3.new(.3,.3,.3)
152
                local mesh = Instance.new("SpecialMesh",efxBlock)
153
                mesh.MeshType = Enum.MeshType.Sphere
154
                mesh.Scale = Vector3.new(1,1,1)
155
                light = Instance.new("PointLight",c.Head)
156
                light.Range = 10
157
                light.Color = Color3.new(0,200/255,1)
158
                light.Shadows = false
159
                local particles = Instance.new("ParticleEmitter",efxBlock)
160
                particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
161
                particles.LightEmission = .95
162
                particles.Size = Size
163
                particles.Name = "Fire"
164
                particles.Transparency = Transparency
165
                particles.LockedToPart = true
166
                particles.VelocityInheritance = .5
167
                particles.LockedToPart = true
168
                particles.Rate = 70
169
                particles.Texture = "rbxassetid://56561915"
170
                particles.Lifetime = NumberRange.new(2,2)
171
                particles.RotSpeed = NumberRange.new(100,100)
172
                particles.Speed = NumberRange.new(7,7)
173
                script.Parent = efxBlock
174
                fire = particles
175
                local offset = Vector3.new(-0.11, .23, -0.5)
176
                local weld = Instance.new("Weld",c.Head)
177
                weld.Part0 = c.Head
178
                weld.Part1 = efxBlock
179
                weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
180
                efxBlock.Parent = c
181
                local music = Instance.new("Sound",c)
182
                music.SoundId = "rbxassetid://316012176"
183
                music.Looped = true
184
                music.Volume = 0
185
                fight = music
186
                local music2 = Instance.new("Sound",c)
187
                music2.SoundId = "rbxassetid://316014309"
188
                music2.Looped = true
189
                music2.Volume = 0
190
                sans = music2
191
                pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
192
                pointGyro.P = 1e7
193
                pointGyro.D = 1e3
194
                pointGyro.MaxTorque = Vector3.new(0,1e7,0)
195
                animator = c.Humanoid:FindFirstChild("Animator")
196
                if animator then
197
                        animator:Destroy()
198
                end
199
                c.Torso.roblox:Destroy()
200
                for i,v in pairs (c.Head:children()) do
201
                        if v.ClassName == "Sound" then
202
                                v:Destroy()
203
                        end
204
                end
205
                for i = 1,#Joints do
206
                        Joints[i].C1 = CFrame.new(Vector3.new())
207
                end
208
                human.WalkSpeed = 0
209
                human.JumpPower = 0
210
        end
211
212
        uinps.InputBegan:connect(function(InputObject)
213
                if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
214
                        Debounces.isPassive = not Debounces.isPassive
215
                end
216
        end)
217
218
        setJointCFrames = function(table)
219
                for i = 1,#table do
220
                        JointTargets[i] = table[i]
221
                end
222
                AnimationCycles = 0
223
        end
224
225
        setLerp = function(speed)
226
                AnimStat.lerpSpeed = speed
227
        end
228
229
        setTween = function(tween)
230
                AnimStat.lerpTween = tween
231
        end
232
233
        takeDamage = function(position,damage,distance,platformStand)
234
                for i,v in pairs (pls:children()) do
235
                        if v.ClassName == "Player" and v:FindFirstChild("Character") then
236
                                local torso = v.Character:FindFirstChild("Torso")
237
                                if torso and (torso.Position - position).magnitude < distance then
238
                                        v.Character.Humanoid:TakeDamage(damage)
239
                                        if platformStand == true then
240
                                                v.Character.PlatformStand = platformStand
241
                                        end
242
                                end
243
                        end
244
                end
245
        end
246
247
--------------------------------------------------------
248
249
        prepareCharacter()
250
251
--------------------------------------------------------
252
253
        spawn(function()
254
                local sine = 0
255
                while wait() do
256
                        pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
257
                        if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
258
                                setLerp(.1)
259
                                if Debounces.isPassive == true then
260
                                        setJointCFrames({
261
                                                CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
262
                                                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));
263
                                                CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
264
                                                CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
265
                                                CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
266
                                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
267
                                        })
268
                                else
269
                                        setJointCFrames({
270
                                                CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
271
                                                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));
272
                                                CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
273
                                                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));
274
                                                CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
275
                                                CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
276
                                        })
277
                                end
278
                        elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
279
                                sine = sine + math.rad(12)
280
                                human.WalkSpeed = 15
281
                                setLerp(.15)
282
                                setJointCFrames({
283
                                        CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
284
                                        CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
285
                                        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));
286
                                        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));
287
                                        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));
288
                                        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));
289
                                })
290
                        end
291
                        if Debounces.scalingDamage == true then
292
                                takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
293
                        end
294
                end
295
        end)
296
297
        human.Changed:connect(function(prop)
298
                if prop == "MoveDirection" then
299
                        if human.MoveDirection.magnitude > .02 then
300
                                Debounces.isMoving = true
301
                        else
302
                                Debounces.isMoving = false
303
                        end
304
                end
305
        end)
306
307
        uinps.InputBegan:connect(function(InputObject)
308
                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
309
                        Debounces.isBoosting = true
310
                        Debounces.damageLevel = 10
311
                        Debounces.scalingDamage = true
312
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
313
                        setLerp(.15)
314
                        setJointCFrames({
315
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
316
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
317
                                CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
318
                                CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
319
                                CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
320
                                CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
321
                        })
322
                        local boostSpeed = 250
323
                        local efx = Instance.new("Sound",c.Head)
324
                        efx.SoundId = "rbxassetid://200632875"
325
                        efx.Pitch = math.random(1100,1300)/1000
326
                        efx.Volume = .5
327
                        efx:Play()
328
                        spawn(function()
329
                                wait(5)
330
                                efx:Destroy()
331
                        end)
332
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
333
                        vel.P = 1e3
334
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
335
                        wait(.15)
336
                        vel.P = 1000
337
                        vel.MaxForce = Vector3.new(3000,0,3000)
338
                        vel.Velocity = Vector3.new()
339
                        wait(.3)
340
                        setLerp(.3)
341
                        setJointCFrames({
342
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
343
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
344
                                CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
345
                                CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
346
                                CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
347
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
348
                        })
349
                        wait(.2)
350
                        vel:Destroy()
351
                        Debounces.damageLevel = 0
352
                        Debounces.scalingDamage = false
353
                        Debounces.isBoosting = false
354
                end
355
        end)
356
357
        uinps.InputBegan:connect(function(InputObject)
358
                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
359
                        Debounces.isBoosting = true
360
                        Debounces.damageLevel = 10
361
                        Debounces.scalingDamage = true
362
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
363
                        setLerp(.15)
364
                        setJointCFrames({
365
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
366
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
367
                                CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
368
                                CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
369
                                CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
370
                                CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
371
                        })
372
                        local boostSpeed = 250
373
                        local efx = Instance.new("Sound",c.Head)
374
                        efx.SoundId = "rbxassetid://200632875"
375
                        efx.Pitch = math.random(1100,1300)/1000
376
                        efx.Volume = .5
377
                        efx:Play()
378
                        spawn(function()
379
                                wait(5)
380
                                efx:Destroy()
381
                        end)
382
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
383
                        vel.P = 1e3
384
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
385
                        wait(.15)
386
                        vel.P = 1000
387
                        vel.MaxForce = Vector3.new(3000,0,3000)
388
                        vel.Velocity = Vector3.new()
389
                        wait(.3)
390
                        setLerp(.3)
391
                        setJointCFrames({
392
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
393
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
394
                                CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
395
                                CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
396
                                CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
397
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
398
                        })
399
                        wait(.2)
400
                        vel:Destroy()
401
                        Debounces.damageLevel = 0
402
                        Debounces.scalingDamage = false
403
                        Debounces.isBoosting = false
404
                end
405
        end)
406
407
        uinps.InputBegan:connect(function(InputObject)
408
                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
409
                        Debounces.isBoosting = true
410
                        Debounces.damageLevel = 10
411
                        Debounces.scalingDamage = true
412
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
413
                        setLerp(.15)
414
                        setJointCFrames({
415
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
416
                                CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
417
                                CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
418
                                CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
419
                                CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
420
                                CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
421
                        })
422
                        local boostSpeed = 250
423
                        local efx = Instance.new("Sound",c.Head)
424
                        efx.SoundId = "rbxassetid://200632875"
425
                        efx.Pitch = math.random(1100,1300)/1000
426
                        efx.Volume = .5
427
                        efx:Play()
428
                        spawn(function()
429
                                wait(5)
430
                                efx:Destroy()
431
                        end)
432
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
433
                        vel.P = 1e3
434
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
435
                        wait(.15)
436
                        vel.P = 1000
437
                        vel.MaxForce = Vector3.new(3000,0,3000)
438
                        vel.Velocity = Vector3.new()
439
                        wait(.3)
440
                        setLerp(.3)
441
                        setJointCFrames({
442
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
443
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
444
                                CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
445
                                CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
446
                                CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
447
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
448
                        })
449
                        wait(.2)
450
                        vel:Destroy()
451
                        Debounces.damageLevel = 0
452
                        Debounces.scalingDamage = false
453
                        Debounces.isBoosting = false
454
                end
455
        end)
456
457
        uinps.InputBegan:connect(function(InputObject)
458
                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
459
                        Debounces.isBoosting = true
460
                        Debounces.damageLevel = 10
461
                        Debounces.scalingDamage = true
462
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
463
                        setLerp(.15)
464
                        setJointCFrames({
465
                                CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
466
                                CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
467
                                CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
468
                                CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
469
                                CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
470
                                CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
471
                        })
472
                        local boostSpeed = 150
473
                        local boostSpeed = 250
474
                        local efx = Instance.new("Sound",c.Head)
475
                        efx.SoundId = "rbxassetid://200632875"
476
                        efx.Pitch = math.random(1100,1300)/1000
477
                        efx.Volume = .5
478
                        efx:Play()
479
                        spawn(function()
480
                                wait(5)
481
                                efx:Destroy()
482
                        end)
483
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
484
                        vel.P = 1e3
485
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
486
                        wait(.15)
487
                        vel.P = 1000
488
                        vel.MaxForce = Vector3.new(3000,0,3000)
489
                        vel.Velocity = Vector3.new()
490
                        wait(.3)
491
                        setLerp(.3)
492
                        setJointCFrames({
493
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
494
                                CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
495
                                CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
496
                                CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
497
                                CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
498
                                CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
499
                        })
500
                        wait(.2)
501
                        vel:Destroy()
502
                        Debounces.damageLevel = 0
503
                        Debounces.scalingDamage = false
504
                        Debounces.isBoosting = false
505
                end
506
        end)
507
508
        uinps.InputBegan:connect(function(InputObject)
509
                if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
510
                        local isLooping = true
511
                        uinps.InputEnded:connect(function(InputObject2)
512
                                if InputObject2.KeyCode == Enum.KeyCode.Q then
513
                                        isLooping = false
514
                                end
515
                        end)
516
                        while true do
517
                                if isLooping == false then
518
                                        break
519
                                end
520
                                Debounces.attackNumber = Debounces.attackNumber + 1
521
                                local aimPos = mouse.Hit.p
522
                                local head = Instance.new("Part",c)
523
                                head.Size = Vector3.new(12,.2,12)
524
                                head.CanCollide = false
525
                                head.Anchored = true
526
                                head.Transparency = 1
527
                                for i = 1,2 do
528
                                        local decal = Instance.new("Decal",head)
529
                                        decal.Texture = "rbxassetid://323497117"
530
                                        if i == 1 then
531
                                                decal.Face = Enum.NormalId.Top
532
                                        else
533
                                                decal.Face = Enum.NormalId.Bottom
534
                                        end
535
                                end
536
                                if Debounces.attackNumber%2 == 1 then
537
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
538
                                else
539
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
540
                                end
541
                                spawn(function()
542
                                        local timer = 0
543
                                        while rs.RenderStepped:wait() do
544
                                                if timer >= 1.55 then
545
                                                        break
546
                                                end
547
                                                head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
548
                                                timer = timer + 1/30/(Debounces.FPS/60)
549
                                        end
550
                                        head.CFrame = CFrame.new(head.CFrame.p,aimPos)
551
                                        local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
552
                                        local hit, pos = workspace:FindPartOnRay(ray,c)
553
                                        local dis = (head.CFrame.p - pos).magnitude
554
                                        local rayPart = Instance.new("Part",rayModel)
555
                                        rayPart.Material = "Neon"
556
                                        rayPart.FormFactor = "Custom"
557
                                        rayPart.BrickColor = BrickColor.new(1,1,1)
558
                                        rayPart.Anchored = true
559
                                        rayPart.CanCollide = false
560
                                        rayPart.Size = Vector3.new(7,7,dis + 400)
561
                                        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)
562
                                        rayPart.CFrame = rayCFrame
563
                                        head:Destroy()
564
                                end)
565
                                wait()
566
                                local s = Instance.new("Sound",head)
567
                                s.Volume = 1
568
                                s.SoundId = "rbxassetid://332223043"
569
                                s:Play()
570
                                wait(.04)
571
                        end
572
                end
573
        end)
574
575
        uinps.InputBegan:connect(function(InputObj)
576
                if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
577
                        Debounces.isAttacking = true
578
                        local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
579
                        local head = Instance.new("Part",c)
580
                        head.Size = Vector3.new(18,.2,18)
581
                        head.CanCollide = false
582
                        head.Anchored = true
583
                        head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
584
                        head.Transparency = 1
585
                        for i = 1,2 do
586
                                local decal = Instance.new("Decal",head)
587
                                decal.Texture = "rbxassetid://323497117"
588
                                if i == 1 then
589
                                        decal.Face = Enum.NormalId.Top
590
                                else
591
                                        decal.Face = Enum.NormalId.Bottom
592
                                end
593
                        end
594
                        setLerp(.1)
595
                        setJointCFrames({
596
                                CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
597
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
598
                                CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
599
                                CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
600
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
601
                                CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
602
                        })
603
                        spawn(function()
604
                                local timer = 0
605
                                while rs.RenderStepped:wait() do
606
                                        if timer >= 1.55/.8 then
607
                                                break
608
                                        end
609
                                        head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
610
                                        timer = timer + 1/30/(Debounces.FPS/60)
611
                                end
612
                                head.CFrame = CFrame.new(head.CFrame.p,aimPos)
613
                                local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
614
                                local hit, pos = workspace:FindPartOnRay(ray,c)
615
                                local dis = (head.CFrame.p - pos).magnitude
616
                                local rayPart = Instance.new("Part",rayModel)
617
                                rayPart.Material = "Neon"
618
                                rayPart.FormFactor = "Custom"
619
                                rayPart.Name = "Punch"
620
                                rayPart.BrickColor = BrickColor.new(1,1,1)
621
                                rayPart.Anchored = true
622
                                rayPart.CanCollide = false
623
                                rayPart.Size = Vector3.new(28,28,dis + 400)
624
                                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)
625
                                rayPart.CFrame = rayCFrame
626
                                head:Destroy()
627
                        end)
628
                        wait()
629
                        local s = Instance.new("Sound",head)
630
                        s.Volume = 1
631
                        s.SoundId = "rbxassetid://332223043"
632
                        s.Pitch = .8
633
                        s:Play()
634
                        wait(.75)
635
                        setLerp(.17)
636
                        setJointCFrames({
637
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
638
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
639
                                CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
640
                                CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
641
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
642
                                CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
643
                        })
644
                        wait(.5)
645
                        Debounces.isAttacking = false
646
                end
647
        end)
648
        
649
        reflect = function(d,n)
650
                local i, n = -1 * d.unit, n.unit
651
                local dot = n:Dot(i)
652
                return 2*dot*n - i
653
        end
654
655
        makeReflectionBeam = function(pos,look,isCrit)
656
                local ray = Ray.new(pos,look)
657
                local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
658
                local e = Instance.new("Part",rayModel)
659
                e.Anchored = true
660
                e.CanCollide = false
661
                e.BrickColor = BrickColor.new("White")
662
                e.Material = "Neon"
663
                e.FormFactor = "Custom"
664
                e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
665
                if isCrit == true then
666
                        e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
667
                        e.Name = "Punch"
668
                end
669
                e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
670
                local e = Instance.new("Sound",c)
671
                if isCrit == true then
672
                        e.Volume = .5
673
                else
674
                        e.Volume = .3
675
                        e.Pitch = 1.5
676
                end
677
                e.SoundId = "rbxassetid://200632875"
678
                e:Play()
679
                spawn(function()
680
                        wait(6)
681
                        e:Destroy()
682
                end)
683
                wait(.05)
684
                if hit ~= nil then
685
                        newDir = reflect(look.unit,norm,isCrit)
686
                        makeReflectionBeam(hitpos,newDir * 999,isCrit)
687
                end
688
        end
689
690
        uinps.InputBegan:connect(function(InputObject)
691
                if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
692
                        local isLooping = true
693
                        uinps.InputEnded:connect(function(InputObject2)
694
                                if InputObject2.KeyCode == Enum.KeyCode.Q then
695
                                        isLooping = false
696
                                end
697
                        end)
698
                        while true do
699
                                if isLooping == false then
700
                                        break
701
                                end
702
                                Debounces.attackNumber = Debounces.attackNumber + 1
703
                                local aimPos = mouse.Hit.p
704
                                local head = Instance.new("Part",c)
705
                                head.Size = Vector3.new(12,.2,12)
706
                                head.CanCollide = false
707
                                head.Anchored = true
708
                                head.Transparency = 1
709
                                for i = 1,2 do
710
                                        local decal = Instance.new("Decal",head)
711
                                        decal.Texture = "rbxassetid://323497117"
712
                                        if i == 1 then
713
                                                decal.Face = Enum.NormalId.Top
714
                                        else
715
                                                decal.Face = Enum.NormalId.Bottom
716
                                        end
717
                                end
718
                                if Debounces.attackNumber%2 == 1 then
719
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
720
                                else
721
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
722
                                end
723
                                spawn(function()
724
                                        local timer = 0
725
                                        while rs.RenderStepped:wait() do
726
                                                if timer >= 1.55 then
727
                                                        break
728
                                                end
729
                                                head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
730
                                                timer = timer + 1/30/(Debounces.FPS/60)
731
                                        end
732
                                        head.CFrame = CFrame.new(head.CFrame.p,aimPos)
733
                                        head:Destroy()
734
                                        makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)        
735
                                end)
736
                                
737
                                wait()
738
                                local s = Instance.new("Sound",head)
739
                                s.Volume = 1
740
                                s.SoundId = "rbxassetid://332223043"
741
                                s.Pitch = 1.02
742
                                s:Play()
743
                                wait(.2)
744
                        end
745
                end
746
        end)
747
748
        uinps.InputBegan:connect(function(InputObj)
749
                if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
750
                        Debounces.isAttacking = true
751
                        local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
752
                        local head = Instance.new("Part",c)
753
                        head.Size = Vector3.new(18,.2,18)
754
                        head.CanCollide = false
755
                        head.Anchored = true
756
                        head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
757
                        head.Transparency = 1
758
                        for i = 1,2 do
759
                                local decal = Instance.new("Decal",head)
760
                                decal.Texture = "rbxassetid://323497117"
761
                                if i == 1 then
762
                                        decal.Face = Enum.NormalId.Top
763
                                else
764
                                        decal.Face = Enum.NormalId.Bottom
765
                                end
766
                        end
767
                        setLerp(.1)
768
                        setJointCFrames({
769
                                CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
770
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
771
                                CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
772
                                CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
773
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
774
                                CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
775
                        })
776
                        spawn(function()
777
                                local timer = 0
778
                                while rs.RenderStepped:wait() do
779
                                        if timer >= 1.55/.8 then
780
                                                break
781
                                        end
782
                                        head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
783
                                        timer = timer + 1/30/(Debounces.FPS/60)
784
                                end
785
                                head.CFrame = CFrame.new(head.CFrame.p,aimPos)
786
                                head:Destroy()
787
                                makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
788
                        end)
789
                        wait()
790
                        local s = Instance.new("Sound",head)
791
                        s.Volume = 2
792
                        s.SoundId = "rbxassetid://332223043"
793
                        s.Pitch = .8
794
                        s:Play()
795
                        wait(.75)
796
                        setLerp(.17)
797
                        setJointCFrames({
798
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
799
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
800
                                CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
801
                                CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
802
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
803
                                CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
804
                        })
805
                        wait(.5)
806
                        Debounces.isAttacking = false
807
                end
808
        end)
809
810
        uinps.InputBegan:connect(function(InputObj)
811
                if InputObj.KeyCode == Enum.KeyCode.Slash then
812
                        local finishEvent = nil
813
                        Debounces.isTyping = true
814
                        finishEvent = uinps.InputBegan:connect(function(InputObj)
815
                                if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
816
                                        Debounces.isTyping = false
817
                                        finishEvent:disconnect()
818
                                end
819
                        end)
820
                end
821
        end)
822
823
        uinps.InputBegan:connect(function(InputObj)
824
                if InputObj.KeyCode == Enum.KeyCode.LeftShift then
825
                        Debounces.isSprinting = true
826
                end
827
        end)
828
829
        uinps.InputEnded:connect(function(InputObj)
830
                if InputObj.KeyCode == Enum.KeyCode.LeftShift then
831
                        Debounces.isSprinting = false
832
                end
833
        end)
834
835
        rs.RenderStepped:connect(function()
836
                Debounces.FPS = 1/rs.RenderStepped:wait()
837
                local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
838
                if Debounces.isPassive == false then
839
                        fire.Enabled = false
840
                        light.Range = 0
841
                        fight:Pause()
842
                        sans:Resume()
843
                        efxBlock.Transparency = 1
844
                else
845
                        fire.Enabled = true
846
                        light.Range = 10
847
                        fight:Resume()
848
                        sans:Pause()
849
                        efxBlock.Transparency = 0
850
                end
851
                for i,v in pairs (rayModel:children()) do
852
                        if v.Transparency >= 1 then
853
                                v:Destroy()
854
                        else
855
                                v.CanCollide = true
856
                                local parts = v:GetTouchingParts()
857
                                v.CanCollide = false
858
                                for i = 1,#parts do
859
                                        if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
860
                                                parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
861
                                        elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
862
                                                parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
863
                                        end
864
                                end
865
                                v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
866
                                v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
867
                        end
868
                end
869
                for i = 1,#Joints do
870
                        Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
871
                end
872
                local sineval = math.sin(tick() * 2) * 3
873
                fire.Acceleration = Vector3.new(sineval,1,sineval)
874
                light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
875
        end)
876
--[[
877
~~ GENOCIDE SANS SCRIPT ~~
878
879
VERSION BETA V3.0.3
880
Whats New:
881
*1st attempt in adding skull (failed lol)
882
*Patched some more bugs
883
*1st attempt in adding bones (failed lol)
884
*removed ball spawning
885
- AzuLX
886
887
Genocide Sans script from the Undertale game Script is edited by Xeradius, Isaac and Pingu.
888
Full credit to whoever made the base
889
Please do not leak this script.
890
Full credit to 'KrystalTeam' and 'rocky2u' for the Telek script.
891
TeamAzuL2K16
892
]]--
893
ID = '319332735'
894
Looped = false
895
896
Music=Instance.new("Sound" ,workspace)
897
Music.Name = "Music"
898
if Looped == true then
899
Music.Looped = true
900
end
901
Music.SoundId = "http://roblox.com/asset/?id=319332735"
902
Music:Play() --Demonic Laugh. (Omega Flowey) You can remove if you wish. Its very loud (To not make play, remove 'Music:Play()')
903
904
--full credit to krystal and rocky2u for below
905
Fire = false
906
907
Sparkles = false
908
909
Box = false
910
911
local Players = game.Players
912
913
local Player = Players.LocalPlayer
914
915
local Mouse = Player:GetMouse()
916
917
	
918
local dist = 25
919
920
local trans = 0
921
922
local dwn=false
923
924
local Bin = Instance.new("HopperBin") 
925
926
Bin.Name = "Sans' Telekinesis" 
927
928
Bin.Parent = Player.Backpack
929
930
931
local ScreenGUI = Instance.new("ScreenGui", Player.PlayerGui)
932
933
local Color = Instance.new("Color3Value", ScreenGUI)
934
935
local ColorValue = Color.Value
936
937
local Blue = Instance.new("TextButton", ScreenGUI)
938
939
local Red = Instance.new("TextButton", ScreenGUI)
940
941
local Green = Instance.new("TextButton", ScreenGUI)
942
943
local Yellow = Instance.new("TextButton", ScreenGUI)
944
945
local Pink = Instance.new("TextButton", ScreenGUI)
946
947
local LightBlue = Instance.new("TextButton", ScreenGUI)
948
949
local White = Instance.new("TextButton", ScreenGUI)
950
951
local FireTrue = Instance.new("TextButton", ScreenGUI)
952
953
local FireFalse = Instance.new("TextButton", ScreenGUI)
954
955
local SparklesTrue = Instance.new("TextButton", ScreenGUI)
956
957
local SparklesFalse = Instance.new("TextButton", ScreenGUI)
958
959
local BoxTrue = Instance.new("TextButton", ScreenGUI)
960
961
local BoxFalse = Instance.new("TextButton", ScreenGUI)
962
963
Color.Name = "Color"
964
965
Blue.BackgroundColor3 = BrickColor.new("Bright blue").Color
966
967
Blue.Transparency = 0.5
968
969
Blue.Size = UDim2.new(0, 20 ,0, 20)
970
971
Blue.Position = UDim2.new(1, -35, 1, -35)
972
973
Blue.Name = "Blue"
974
975
Blue.Text = ""
976
977
Blue.Visible = false
978
979
Red.BackgroundColor3 = BrickColor.new("Bright red").Color
980
981
Red.Transparency = 0.5
982
983
Red.Size = UDim2.new(0, 20 ,0, 20)
984
985
Red.Position = UDim2.new(1,-65, 1, -35)
986
987
Red.Name = "Red"
988
989
Red.Text = ""
990
991
Red.Visible = false
992
993
Green.BackgroundColor3 = BrickColor.new("Bright green").Color
994
995
Green.Transparency = 0.5
996
997
Green.Size = UDim2.new(0, 20 ,0, 20)
998
999
Green.Position = UDim2.new(1,-95, 1, -35)
1000
1001
Green.Name = "Green"
1002
1003
Green.Text = ""
1004
1005
Green.Visible = false
1006
1007
Yellow.BackgroundColor3 = BrickColor.new("New Yeller").Color
1008
1009
Yellow.Transparency = 0.5
1010
1011
Yellow.Size = UDim2.new(0, 20 ,0, 20)
1012
1013
Yellow.Position = UDim2.new(1,-125, 1, -35)
1014
1015
Yellow.Name = "Yellow"
1016
1017
Yellow.Text = ""
1018
1019
Yellow.Visible = false
1020
1021
Pink.BackgroundColor3 = BrickColor.new("Hot pink").Color
1022
1023
Pink.Transparency = 0.5
1024
1025
Pink.Size = UDim2.new(0, 20 ,0, 20)
1026
1027
Pink.Position = UDim2.new(1,-155, 1, -35)
1028
1029
Pink.Name = "Pink"
1030
1031
Pink.Text = ""
1032
1033
Pink.Visible = false
1034
1035
LightBlue.BackgroundColor3 = BrickColor.new("Cyan").Color
1036
1037
LightBlue.Transparency = 0.5
1038
1039
LightBlue.Size = UDim2.new(0, 20 ,0, 20)
1040
1041
LightBlue.Position = UDim2.new(1,-185, 1, -35)
1042
1043
LightBlue.Name = "LightBlue"
1044
1045
LightBlue.Text = ""
1046
1047
LightBlue.Visible = false
1048
1049
White.BackgroundColor3 = BrickColor.new("White").Color
1050
1051
White.Transparency = 0.5
1052
1053
White.Size = UDim2.new(0, 20 ,0, 20)
1054
1055
White.Position = UDim2.new(1,-215, 1, -35)
1056
1057
White.Name = "White"
1058
1059
White.Text = ""
1060
1061
White.Visible = false
1062
1063
FireFalse.BackgroundColor3 = BrickColor.new("Really black").Color
1064
1065
FireFalse.Transparency = 0.5
1066
1067
FireFalse.Size = UDim2.new(0, 50 ,0, 20)
1068
1069
FireFalse.Position = UDim2.new(1,-65, 1, -65)
1070
1071
FireFalse.Name = "FireFalse"
1072
1073
FireFalse.Text = "Fire: F"
1074
1075
FireFalse.Visible = false
1076
1077
FireFalse.FontSize = "Size12"
1078
1079
FireFalse.Font = "ArialBold"
1080
1081
FireFalse.TextColor = BrickColor.new(255,255,255)
1082
1083
FireFalse.TextTransparency = 0
1084
1085
FireTrue.BackgroundColor3 = BrickColor.new("Really black").Color
1086
1087
FireTrue.Transparency = 0.5
1088
1089
FireTrue.Size = UDim2.new(0, 50 ,0, 20)
1090
1091
FireTrue.Position = UDim2.new(1,-65, 1, -65)
1092
1093
FireTrue.Name = "FireTrue"
1094
1095
FireTrue.Text = "Fire: T"
1096
1097
FireTrue.Visible = false
1098
1099
FireTrue.FontSize = "Size12"
1100
1101
FireTrue.Font = "ArialBold"
1102
1103
FireTrue.TextColor = BrickColor.new(255,255,255)
1104
1105
FireTrue.TextTransparency = 0
1106
1107
SparklesTrue.BackgroundColor3 = BrickColor.new("Really black").Color
1108
1109
SparklesTrue.Transparency = 0.5
1110
1111
SparklesTrue.Size = UDim2.new(0, 50 ,0, 20)
1112
1113
SparklesTrue.Position = UDim2.new(1,-125, 1, -65)
1114
1115
SparklesTrue.Name = "SparklesTrue"
1116
1117
SparklesTrue.Text = "SP: T"
1118
1119
SparklesTrue.Visible = false
1120
1121
SparklesTrue.FontSize = "Size12"
1122
1123
SparklesTrue.Font = "ArialBold"
1124
1125
SparklesTrue.TextColor = BrickColor.new(255,255,255)
1126
1127
SparklesTrue.TextTransparency = 0
1128
1129
SparklesFalse.BackgroundColor3 = BrickColor.new("Really black").Color
1130
1131
SparklesFalse.Transparency = 0.5
1132
1133
SparklesFalse.Size = UDim2.new(0, 50 ,0, 20)
1134
1135
SparklesFalse.Position = UDim2.new(1,-125, 1, -65)
1136
1137
SparklesFalse.Name = "SparklesFalse"
1138
1139
SparklesFalse.Text = "SP: F"
1140
1141
SparklesFalse.Visible = false
1142
1143
SparklesFalse.FontSize = "Size12"
1144
1145
SparklesFalse.Font = "ArialBold"
1146
1147
SparklesFalse.TextColor = BrickColor.new(255,255,255)
1148
1149
SparklesFalse.TextTransparency = 0
1150
1151
BoxTrue.BackgroundColor3 = BrickColor.new("Really black").Color
1152
1153
BoxTrue.Transparency = 0.5
1154
1155
BoxTrue.Size = UDim2.new(0, 50 ,0, 20)
1156
1157
BoxTrue.Position = UDim2.new(1,-185, 1, -65)
1158
1159
BoxTrue.Name = "BoxTrue"
1160
1161
BoxTrue.Text = "Box: T"
1162
1163
BoxTrue.Visible = false
1164
1165
BoxTrue.FontSize = "Size12"
1166
1167
BoxTrue.Font = "ArialBold"
1168
1169
BoxTrue.TextColor = BrickColor.new(255,255,255)
1170
1171
BoxTrue.TextTransparency = 0
1172
1173
BoxFalse.BackgroundColor3 = BrickColor.new("Really black").Color
1174
1175
BoxFalse.Transparency = 0.5
1176
1177
BoxFalse.Size = UDim2.new(0, 50 ,0, 20)
1178
1179
BoxFalse.Position = UDim2.new(1,-185, 1, -65)
1180
1181
BoxFalse.Name = "BoxFalse"
1182
1183
BoxFalse.Text = "Box: F"
1184
1185
BoxFalse.Visible = false
1186
1187
BoxFalse.FontSize = "Size12"
1188
1189
BoxFalse.Font = "ArialBold"
1190
1191
BoxFalse.TextColor = BrickColor.new(255, 255, 255)
1192
1193
BoxFalse.TextTransparency = 0
1194
1195
local Credits = Instance.new("ScreenGui",Player.PlayerGui)
1196
1197
local Text = Instance.new("TextLabel",Credits)
1198
1199
Text.BackgroundTransparency = 1
1200
1201
Text.Position = UDim2.new(0, 0, 1, -25)
1202
1203
Text.Size = UDim2.new(0, 200, 0, 25)
1204
1205
Text.Font = "SourceSans"
1206
1207
Text.FontSize = "Size24"
1208
1209
Text.Text = "By AzuLX, Issac and Pingu - GSans Script."
1210
1211
Text.TextColor3 = Color3.new(255, 255, 255)
1212
1213
Text.TextXAlignment = "Left"
1214
1215
local bawl = Instance.new("Part", game.Lighting)
1216
1217
bawl.Name="TelekinesisGrab"
1218
1219
local bp = Instance.new("BodyPosition", bawl)
1220
1221
local w = Instance.new("Weld", bawl) 
1222
1223
function onButton1Down(mouse)
1224
	
1225
	bawl.Size = Vector3.new(2,2,2) 
1226
	
1227
	bawl.Material="Neon"
1228
	
1229
	bawl.Shape=0
1230
	
1231
	bawl.Transparency=trans
1232
	
1233
	bawl.Name="TelekinesisGrab"
1234
	
1235
	bawl.CanCollide = false  
1236
	
1237
	bawl.Parent = game.Workspace
1238
	
1239
	w.Parent = bawl 
1240
	
1241
	w.Name = "Weld"
1242
	
1243
	bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) 
1244
	
1245
	bp.Parent = bawl
1246
	
1247
	bp.Name="lolx"
1248
	
1249
	bawl.Parent = workspace
1250
	
1251
	if mouse ~= nil then
1252
	
1253
		if mouse.Target ~= nil then
1254
	
1255
			w.Part0 = mouse.Target 
1256
			
1257
			w.Part1 = bawl 
1258
			
1259
			dwn = true
1260
	
1261
			if mouse.Target.Parent:FindFirstChild("Humanoid") then
1262
				
1263
				mouse.Target.Parent:FindFirstChild("Humanoid").PlatformStand=true
1264
				
1265
			else
1266
				
1267
				print('no humanoid')
1268
				
1269
			end
1270
	
1271
		end
1272
	
1273
	end
1274
	
1275
	spawn(function()
1276
		
1277
		while dwn == true do 
1278
			
1279
			ypcall(function()		
1280
			
1281
				bp.Parent = bawl 
1282
				
1283
				bp.position = Player.Character.Torso.Position + (mouse.Hit.lookVector*dist)
1284
				
1285
				wait()
1286
			
1287
			end)
1288
			
1289
	    end
1290
	
1291
	end)
1292
	
1293
end
1294
1295
function onButton1Up(mouse)
1296
		
1297
	dwn=false
1298
1299
	if bawl ~= nil then
1300
			
1301
		bawl.Parent=game.Lighting 
1302
			
1303
	else 
1304
			
1305
		print('not found') 
1306
			
1307
	end
1308
	
1309
end 
1310
	
1311
function onKeyDown(key, mouse) 
1312
		
1313
	key:lower() 
1314
		
1315
	if key == "r" then 
1316
			
1317
		if bawl ~= nil then
1318
				
1319
			--bawl.Parent=nil
1320
				
1321
		end
1322
			
1323
	elseif key == "e" then 
1324
			
1325
		local p = Instance.new("Part", workspace)
1326
			
1327
		p.Size = Vector3.new(3,3,3)
1328
			
1329
		p.Material = "Neon"
1330
			
1331
		p.Position = mouse.Hit.p + Vector3.new(0,2,0) 
1332
			
1333
		p.BrickColor = bawl.BrickColor
1334
			
1335
		p.Shape = "Ball"
1336
			
1337
		p.BottomSurface = "Smooth"
1338
			
1339
		p.TopSurface = "Smooth"
1340
			
1341
	elseif key == "h" then
1342
			
1343
		if bawl ~= nil then
1344
				
1345
			if bawl:FindFirstChild("Weld") ~= nil then
1346
				
1347
				if bawl:FindFirstChild("Weld").Part0 ~= nil then
1348
				
1349
					bawl:FindFirstChild("Weld").Part0.Anchored=false
1350
				
1351
				end
1352
				
1353
			end
1354
				
1355
		end
1356
			
1357
	elseif key == "g" then
1358
			
1359
		if bawl ~= nil then
1360
1361
			local x = Instance.new("Explosion",workspace)
1362
1363
			x.Position=bawl.Position
1364
				
1365
		else
1366
				
1367
			print('some sort of error')
1368
				
1369
		end
1370
			
1371
	elseif key == "x" then 
1372
			
1373
		dist=dist - 5
1374
			
1375
	elseif key == "c" then 
1376
			
1377
		dist=15
1378
			
1379
	elseif key == "v" then 
1380
			
1381
		dist=100
1382
			
1383
	elseif key == "z" then 
1384
			
1385
		dist=dist + 5
1386
			
1387
	end  
1388
		
1389
end
1390
1391
FireX = 0
1392
1393
FireY = 0
1394
1395
FireZ = 0
1396
1397
SPX = 0
1398
1399
SPY = 0
1400
1401
SPZ = 0
1402
1403
BoxColor = "White"
1404
1405
FireFalse.MouseButton1Down:connect(function ()
1406
	
1407
	local Fire = Instance.new("Fire", bawl)
1408
    Fire.Color = Color3.new(FireX,FireY,FireZ)
1409
1410
    Player.PlayerGui.ScreenGui.FireFalse.Visible = false
1411
1412
    Player.PlayerGui.ScreenGui.FireTrue.Visible = true
1413
1414
    Fire.Color = Color3.new(FireX,FireY,FireZ)
1415
	
1416
end)
1417
1418
FireTrue.MouseButton1Down:connect(function ()
1419
	
1420
	bawl.Fire:remove()
1421
1422
    Player.PlayerGui.ScreenGui.FireFalse.Visible = true
1423
1424
    Player.PlayerGui.ScreenGui.FireTrue.Visible = false
1425
	
1426
end)
1427
1428
SparklesFalse.MouseButton1Down:connect(function ()
1429
	
1430
	local SP = Instance.new("Sparkles", bawl)
1431
    SP.Color = Color3.new(SPX,SPY,SPZ)
1432
1433
    Player.PlayerGui.ScreenGui.SparklesFalse.Visible = false
1434
1435
    Player.PlayerGui.ScreenGui.SparklesTrue.Visible = true
1436
	
1437
end)
1438
1439
SparklesTrue.MouseButton1Down:connect(function ()
1440
	
1441
	bawl.Sparkles:remove()
1442
1443
    Player.PlayerGui.ScreenGui.SparklesFalse.Visible = true
1444
1445
    Player.PlayerGui.ScreenGui.SparklesTrue.Visible = false
1446
	
1447
end)
1448
1449
BoxFalse.MouseButton1Down:connect(function ()
1450
	
1451
	local Box = Instance.new("SelectionBox", bawl)
1452
    Box.Color = BrickColor.new(BoxColor)
1453
    Box.Adornee = Box.Parent
1454
1455
    Player.PlayerGui.ScreenGui.BoxFalse.Visible = false
1456
1457
    Player.PlayerGui.ScreenGui.BoxTrue.Visible = true
1458
	
1459
end)
1460
1461
BoxTrue.MouseButton1Down:connect(function ()
1462
	
1463
	bawl.SelectionBox:remove()
1464
1465
    Player.PlayerGui.ScreenGui.BoxFalse.Visible = true
1466
1467
    Player.PlayerGui.ScreenGui.BoxTrue.Visible = false
1468
	
1469
end)
1470
	
1471
Blue.MouseButton1Down:connect(function ()
1472
1473
	if bawl ~= nil then
1474
		
1475
		bawl.BrickColor = BrickColor.new("Bright blue")
1476
		
1477
		FireX = 0
1478
		FireY = 0
1479
		FireZ = 255
1480
		
1481
		SPX = 0
1482
		SPY = 0
1483
		SPZ = 255
1484
		
1485
		BoxColor = "Bright blue"
1486
		
1487
		game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(0,0,255)
1488
		
1489
		game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(0,0,255)
1490
		
1491
		game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Bright blue")
1492
1493
	end
1494
1495
end)
1496
	
1497
Red.MouseButton1Down:connect(function ()
1498
		
1499
	if bawl ~= nil then
1500
			
1501
		bawl.BrickColor = BrickColor.new("Bright red")
1502
		
1503
		FireX = 255
1504
		FireY = 0
1505
		FireZ = 0
1506
		
1507
		SPX = 255
1508
		SPY = 0
1509
		SPZ = 0
1510
		
1511
		BoxColor = "Bright red"
1512
		
1513
		game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,0,0)
1514
		
1515
		game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,0,0)
1516
		
1517
		game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Bright red")
1518
1519
	end
1520
		
1521
end)
1522
	
1523
Green.MouseButton1Down:connect(function ()
1524
1525
	if bawl ~= nil then
1526
1527
		bawl.BrickColor = BrickColor.new("Bright green")
1528
		
1529
		FireX = 0
1530
		FireY = 255
1531
		FireZ = 0
1532
		
1533
		SPX = 0
1534
		SPY = 255
1535
		SPZ = 0
1536
		
1537
		BoxColor = "Bright green"
1538
		
1539
		game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(0,255,0)
1540
		
1541
		game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(0,255,0)
1542
		
1543
		game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Bright green")
1544
		
1545
	end
1546
	
1547
end)
1548
	
1549
Yellow.MouseButton1Down:connect(function ()
1550
		
1551
	if bawl ~= nil then
1552
			
1553
		bawl.BrickColor = BrickColor.new("New Yeller")
1554
		
1555
		FireX = 255
1556
		FireY = 255
1557
		FireZ = 0
1558
		
1559
		SPX = 255
1560
		SPY = 255
1561
		SPZ = 0
1562
		
1563
		BoxColor = "New Yeller"
1564
		
1565
		game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,255,0)
1566
		
1567
		game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,255,0)
1568
		
1569
		game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("New Yeller")
1570
			
1571
	end
1572
		
1573
end)
1574
	
1575
Pink.MouseButton1Down:connect(function ()
1576
		
1577
	if bawl ~= nil then
1578
			
1579
		bawl.BrickColor = BrickColor.new("Hot pink")
1580
		
1581
		FireX = 255
1582
		FireY = 0
1583
		FireZ = 255
1584
		
1585
		SPX = 255
1586
		SPY = 0
1587
		SPZ = 255
1588
		
1589
		BoxColor = "Hot pink"
1590
		
1591
		game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,0,255)
1592
		
1593
		game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,0,255)
1594
		
1595
		game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Hot pink")
1596
		
1597
	end
1598
		
1599
end)
1600
	
1601
LightBlue.MouseButton1Down:connect(function ()
1602
		
1603
	if bawl ~= nil then
1604
			
1605
		bawl.BrickColor = BrickColor.new("Cyan")
1606
		
1607
		FireX = 0
1608
		FireY = 255
1609
		FireZ = 255
1610
		
1611
		SPX = 0
1612
		SPY = 255
1613
		SPZ = 255
1614
		
1615
		BoxColor = "Cyan"
1616
		
1617
		game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(0,255,255)
1618
		
1619
		game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(0,255,255)
1620
		
1621
		game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("Cyan")
1622
			
1623
	end
1624
		
1625
end)
1626
    
1627
	
1628
White.MouseButton1Down:connect(function ()
1629
1630
	if bawl ~= nil then
1631
			
1632
		bawl.BrickColor = BrickColor.new("White")
1633
		
1634
		FireX = 255
1635
		FireY = 255
1636
		FireZ = 255
1637
		
1638
		SPX = 255
1639
		SPY = 255
1640
		SPZ = 255
1641
		
1642
		BoxColor = "White"
1643
		
1644
		game.Lighting.TelekinesisGrab.Fire.Color = Color3.new(255,255,255)
1645
		
1646
		game.Lighting.TelekinesisGrab.Sparkles.Color = Color3.new(255,255,255)
1647
		
1648
		game.Lighting.TelekinesisGrab.SelectionBox.Color = BrickColor.new("White")
1649
			
1650
	end
1651
	
1652
end)
1653
1654
Bin.Selected:connect(function ()
1655
	
1656
	Fire = false
1657
	
1658
	Player.PlayerGui.ScreenGui.Blue.Visible = true
1659
	
1660
	Player.PlayerGui.ScreenGui.Red.Visible = true
1661
	
1662
	Player.PlayerGui.ScreenGui.Green.Visible = true
1663
	
1664
	Player.PlayerGui.ScreenGui.Yellow.Visible = true
1665
	
1666
	Player.PlayerGui.ScreenGui.Pink.Visible = true
1667
	
1668
	Player.PlayerGui.ScreenGui.LightBlue.Visible = true
1669
	
1670
	Player.PlayerGui.ScreenGui.White.Visible = true
1671
	
1672
	Player.PlayerGui.ScreenGui.FireFalse.Visible = true
1673
	
1674
	Player.PlayerGui.ScreenGui.FireTrue.Visible = false
1675
	
1676
	Player.PlayerGui.ScreenGui.SparklesFalse.Visible = true
1677
	
1678
	Player.PlayerGui.ScreenGui.SparklesTrue.Visible = false
1679
	
1680
	Player.PlayerGui.ScreenGui.BoxFalse.Visible = true
1681
	
1682
	Player.PlayerGui.ScreenGui.BoxTrue.Visible = false
1683
	
1684
end)
1685
1686
Bin.Deselected:connect(function ()
1687
	
1688
	Fire = false
1689
	
1690
	Player.PlayerGui.ScreenGui.Blue.Visible = false
1691
	
1692
	Player.PlayerGui.ScreenGui.Red.Visible = false
1693
	
1694
	Player.PlayerGui.ScreenGui.Green.Visible = false
1695
	
1696
	Player.PlayerGui.ScreenGui.Yellow.Visible = false
1697
	
1698
	Player.PlayerGui.ScreenGui.Pink.Visible = false
1699
	
1700
	Player.PlayerGui.ScreenGui.LightBlue.Visible = false
1701
	
1702
	Player.PlayerGui.ScreenGui.White.Visible = false
1703
	
1704
	Player.PlayerGui.ScreenGui.FireFalse.Visible = false
1705
	
1706
	Player.PlayerGui.ScreenGui.FireTrue.Visible = false
1707
	
1708
	Player.PlayerGui.ScreenGui.SparklesFalse.Visible = false
1709
	
1710
	Player.PlayerGui.ScreenGui.SparklesTrue.Visible = false
1711
	
1712
	Player.PlayerGui.ScreenGui.BoxFalse.Visible = false
1713
	
1714
	Player.PlayerGui.ScreenGui.BoxTrue.Visible = false
1715
	
1716
end)
1717
	
1718
Bin.Selected:connect(function(mouse)
1719
	
1720
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)
1721
	
1722
	mouse.Button1Up:connect(function() onButton1Up(mouse) end)
1723
	
1724
	mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end)
1725
	
1726
end)
1727
print 'Telek script has loaded, credit to Krystal and rocky2u'
1728
dot = false
1729
des = false
1730
local ChatService = game:GetService("Chat")
1731
local player = game.Players.LocalPlayer
1732
char = player.Character
1733
hum = char.Humanoid
1734
torso = hum.Torso
1735
lig = Instance.new("PointLight",player.Character.Torso)
1736
lig.Color=Color3.new(0,255,255)
1737
m=player:GetMouse()
1738
bb = Instance.new("BillboardGui",player.Character.Head)
1739
bb.Enabled = true
1740
bb.AlwaysOnTop = true
1741
bb.Size = UDim2.new(0,200,0,50)
1742
bb.StudsOffset = Vector3.new(0,1,0)
1743
gui=Instance.new("TextBox",bb)
1744
gui.Text = "* "
1745
gui.Size = UDim2.new(0,133,0,45)
1746
gui.Position=UDim2.new(0,57,0,-40)
1747
gui.TextColor3 = Color3.new(255,255,255)
1748
gui.BackgroundColor3=Color3.new(0,0,0)
1749
gui.TextWrapped = true
1750
gui.TextScaled = true
1751
gui.TextXAlignment = "Left"
1752
gui.TextYAlignment = "Top"
1753
gui.Visible = false
1754
gui.BorderColor3 = Color3.new(0,0,0)
1755
1756
gui1=Instance.new("TextButton",bb)
1757
gui1.Position=UDim2.new(0,5,0,-43)
1758
gui1.Size = UDim2.new(0,190,0,51)
1759
1760
gui1.TextColor3 = Color3.new(255,255,255)
1761
gui1.BackgroundColor3=Color3.new(255,255,255)
1762
1763
gui1.Visible = false
1764
img = Instance.new("ImageLabel",bb)
1765
img.Size = UDim2.new(0,46,0,47)
1766
img.Position = UDim2.new(0,10,0,-41)
1767
img.Image = "rbxassetid://388166921"
1768
img.BorderColor3 = Color3.new(0,0,0)
1769
img.Visible = false
1770
asd = Instance.new("Sound",player.Character.Torso)
1771
asd.SoundId = "http://www.roblox.com/asset/?id = 358280695"
1772
1773
asd1 = Instance.new("Sound",player.Character.Torso)
1774
asd1.SoundId = "http://www.roblox.com/asset/?id = 358280695"
1775
1776
asd2 = Instance.new("Sound",player.Character.Torso)
1777
asd2.SoundId = "http://www.roblox.com/asset/?id = 306370481"
1778
asd2.Looped = true
1779
asd3 = Instance.new("Sound",player.Character.Torso)
1780
asd3.SoundId = "http://www.roblox.com/asset/?id = 316014309"
1781
asd3.Looped = true
1782
asd4 = Instance.new("Sound",player.Character.Torso)
1783
asd4.SoundId = "http://www.roblox.com/asset/?id = 388938813"
1784
asd4.Looped = false
1785
asd5 = Instance.new("Sound",player.Character.Torso)
1786
asd5.SoundId = "http://www.roblox.com/asset/?id = 0"
1787
asd5.Looped = true
1788
dunkd = Instance.new("Sound",player.Character.Torso)
1789
dunkd.SoundId = "http://www.roblox.com/asset/?id = 333078694"
1790
dunkd.Looped = false
1791
function play(play)
1792
asd:Play()
1793
asd1:Play()
1794
end
1795
eye = Instance.new("Part",player.Character)
1796
eye.BrickColor = BrickColor.new("Toothpaste")
1797
eye.Material = "Neon"
1798
eye.FormFactor = 3
1799
eye.Shape = "Ball"
1800
eye.Size = Vector3.new(0.37,0.37,0.1)
1801
weld = Instance.new("Weld",eye)
1802
weld.Part0 = eye
1803
weld.Part1 = player.Character.Head
1804
weld.C0 = CFrame.new(0.1,-0.2,0.45)
1805
eye.Transparency = 1
1806
-- listen for their chatting
1807
player.Chatted:connect(function(message)
1808
a = string.len(message)
1809
gui.Text = "* "
1810
gui.Visible = true
1811
gui1.Visible = true
1812
des = false
1813
img.Visible = true
1814
print(a)
1815
if dot == false then
1816
for i = 1,string.len(message) do wait(0.07)
1817
gui.Text =gui.Text..message:sub(i,i)
1818
1819
play()
1820
end
1821
end
1822
1823
des = true
1824
end)
1825
m.KeyDown:connect(function(k)
1826
if k == "g" then
1827
asd2:Play()
1828
eye.Transparency = 0
1829
1830
end
1831
end)
1832
m.KeyDown:connect(function(k)
1833
if k == "p" then
1834
eye.Transparency = 1
1835
asd3:Play()
1836
end
1837
end)
1838
m.KeyDown:connect(function(k)
1839
if k == "r" then
1840
eye.Transparency = 0
1841
asd4:Play()
1842
end
1843
end)
1844
m.KeyDown:connect(function(k)
1845
if k == "q" then
1846
eye.Transparency = 1
1847
asd5:Play()
1848
end
1849
end)
1850
m.KeyDown:connect(function(k)
1851
if k == "z" then
1852
1853
img.Image = "rbxassetid://388167098"
1854
end
1855
end)
1856
m.KeyDown:connect(function(k)
1857
if k == "c" then
1858
img.Image = "rbxassetid://388166921"
1859
end
1860
end)
1861
m.KeyDown:connect(function(k)
1862
if k == "n" then
1863
img.Image = "rbxassetid://388166991"
1864
end
1865
end)
1866
m.KeyDown:connect(function(k)
1867
if k == "b" then
1868
img.Image = "rbxassetid://378060690"
1869
end
1870
end)
1871
m.KeyDown:connect(function(k)
1872
if k == "m" then
1873
img.Image = "rbxassetid://378609498"
1874
end
1875
end)
1876
m.KeyDown:connect(function(k)
1877
if k == "v" then
1878
img.Image = "rbxassetid://388166961"
1879
end
1880
end)
1881
m.KeyDown:connect(function(k)
1882
if k == "h" then
1883
img.Image = "rbxassetid://378577428"
1884
end
1885
end)
1886
m.KeyDown:connect(function(k)
1887
if k == "j" then
1888
img.Image = "rbxassetid://388167116"
1889
end
1890
end)
1891
m.KeyDown:connect(function(k)
1892
if k == "l" then
1893
img.Image = "rbxassetid://388167154"
1894
print("You take your very last breath...")
1895
asdd = Instance.new("Sound",player.Character.Torso)
1896
asdd.SoundId = "http://www.roblox.com/asset/?id = 357417055"
1897
asdd.Looped = false
1898
spawn(function()
1899
wait()
1900
asdd:Play()
1901
end)
1902
wait(2)
1903
asddd = Instance.new("Sound",player.Character.Torso)
1904
asddd.SoundId = "http://www.roblox.com/asset/?id = 387183672"
1905
asddd.Looped = false
1906
spawn(function()
1907
wait()
1908
asddd:Play()
1909
end)
1910
wait(2)
1911
asdded = Instance.new("Sound",player.Character.Torso)
1912
asdded.SoundId = "http://www.roblox.com/asset/?id = 387187707"
1913
asdded.Looped = false
1914
spawn(function()
1915
wait()
1916
asdded:Play()
1917
end)
1918
char:BreakJoints()
1919
end
1920
end) 
1921
m.KeyDown:connect(function(k)
1922
if k == "x" then
1923
if des == true then
1924
gui.Visible = false
1925
gui.Text = "* "
1926
gui1.Visible = false
1927
img.Visible = false
1928
end
1929
end
1930
end)
1931
m.KeyDown:connect(function(k)
1932
if k == "f" then
1933
asd3:Stop()
1934
asd2:Stop()
1935
asd4:Stop()
1936
dunkd:Stop()
1937
eye.Transparency = 1
1938
asd5:Stop()
1939
end
1940
end)
1941
m.KeyDown:connect(function(k)
1942
if k == "u" then
1943
dunkd = Instance.new("Sound",player.Character.Torso)
1944
dunkd.SoundId = "http://www.roblox.com/asset/?id = 333078694"
1945
dunkd.Looped = false
1946
dunkd:Play()
1947
end
1948
end)
1949
m.KeyDown:connect(function(k)
1950
if k == "y" then
1951
img.Image = "rbxassetid://378198656"
1952
end
1953
end)
1954
-- my god...
1955
-- Suck_HiyaThere moves to arizona
1956
1957
--------------------------------------------------------
1958
1959
        pls = game:GetService'Players'
1960
        rs = game:GetService'RunService'
1961
        uinps = game:GetService'UserInputService'
1962
        lp = pls.LocalPlayer
1963
        mouse = lp:GetMouse()
1964
        c = lp.Character
1965
        human = c.Humanoid
1966
        human.MaxHealth = 50
1967
        soundVol = 0
1968
        wait()
1969
        human.Health = 50
1970
        c.Health:Destroy()
1971
1972
--------------------------------------------------------
1973
1974
        Debounces = {
1975
                AnimationCycles = 0;
1976
                FPS = 0;
1977
                scalingDamage = false;
1978
                damageLevel = 0;
1979
                attackNumber = 0;
1980
                isAttacking = false;
1981
                isMoving = false;
1982
                isSprinting = false;
1983
                isBoosting = false;
1984
                isPassive = false;
1985
                isTyping = false;
1986
        }
1987
1988
--------------------------------------------------------
1989
1990
        numLerp = function(start, goal, alpha)
1991
                return(((goal - start) * alpha) + start)
1992
        end
1993
1994
        CFrameZero = function()
1995
                return CFrame.new(Vector3.new())
1996
        end
1997
1998
        rad = function(value)
1999
                return math.rad(value)
2000
        end
2001
2002
        CFAngles = function(Vector)
2003
                return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
2004
        end
2005
2006
--------------------------------------------------------
2007
2008
        AnimStat = {
2009
                lerpSpeed = .2;
2010
                lerpSpeed2 = .35;
2011
                lerpTween = 0;
2012
        }
2013
2014
        Joints = {
2015
                c.HumanoidRootPart.RootJoint;
2016
                c.Torso.Neck;
2017
                c.Torso['Left Shoulder'];
2018
                c.Torso['Right Shoulder'];
2019
                c.Torso['Left Hip'];
2020
                c.Torso['Right Hip'];
2021
        }
2022
2023
        JointTargets = {
2024
                CFrameZero();
2025
                CFrameZero();
2026
                CFrameZero();
2027
                CFrameZero();
2028
                CFrameZero();
2029
                CFrameZero();
2030
        }
2031
2032
--------------------------------------------------------
2033
2034
        BodyColors = {
2035
                HeadColor = BrickColor.new("Institutional white");
2036
                LeftArmColor = BrickColor.new("Institutional white");
2037
                RightArmColor = BrickColor.new("Institutional white");
2038
                LeftLegColor = BrickColor.new("Institutional white");
2039
                RightLegColor = BrickColor.new("Institutional white");
2040
                TorsoColor = BrickColor.new("Mid gray");
2041
        }
2042
2043
        Customs = {
2044
                Face = "http://www.roblox.com/asset/?id=8560915";
2045
                Shirt = "http://www.roblox.com/asset/?id=334781688";
2046
                Pants = "http://www.roblox.com/asset/?id=335237283";
2047
        }
2048
2049
--------------------------------------------------------
2050
2051
        prepareCharacter = function()
2052
                local transPoints = {
2053
                        NumberSequenceKeypoint.new(0,0,0),
2054
                        NumberSequenceKeypoint.new(.4,.05,0),
2055
                        NumberSequenceKeypoint.new(.8,.16,0),
2056
                        NumberSequenceKeypoint.new(1,.25,0)
2057
                }
2058
                local sizePoints = {
2059
                        NumberSequenceKeypoint.new(0,.5,0),
2060
                        NumberSequenceKeypoint.new(.18,.5,0),
2061
                        NumberSequenceKeypoint.new(.49,.69,0),
2062
                        NumberSequenceKeypoint.new(.74,.5,0),
2063
                        NumberSequenceKeypoint.new(.92,.25,0),
2064
                        NumberSequenceKeypoint.new(1,.0625,0)
2065
                }
2066
                local Size = NumberSequence.new(sizePoints)
2067
                local Transparency = NumberSequence.new(transPoints)
2068
                rayModel = Instance.new("Model",c)
2069
                efxBlock = Instance.new("Part",c)
2070
                efxBlock.Material = "Neon"
2071
                efxBlock.FormFactor = "Custom"
2072
                efxBlock.Size = Vector3.new(.3,.3,.3)
2073
                light = Instance.new("PointLight",c.Head)
2074
                light.Range = 8
2075
                light.Color = Color3.new(1,1,1)
2076
                light.Shadows = false
2077
                local particles = Instance.new("ParticleEmitter",efxBlock)
2078
                particles.Color = ColorSequence.new(Color3.new(.85,.85,.85),Color3.new(1,1,1))
2079
                particles.ZOffset = 1
2080
                particles.LightEmission = .96
2081
                particles.Size = Size
2082
                particles.Name = "Fire"
2083
                particles.Transparency = Transparency
2084
                particles.LockedToPart = true
2085
                particles.Rate = 25
2086
                particles.EmissionDirection = "Right"
2087
                particles.Acceleration = Vector3.new(-.5,0,0)
2088
                particles.Texture = "rbxassetid://24378732"
2089
                particles.Lifetime = NumberRange.new(.25,.25)
2090
                particles.Speed = NumberRange.new(-.5,5)
2091
                script.Parent = efxBlock
2092
                fire = particles
2093
                local offset = Vector3.new(0.2, .23, -0.5)
2094
                local weld = Instance.new("Weld",c.Head)
2095
                weld.Part0 = c.Head
2096
                weld.Part1 = efxBlock
2097
                weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
2098
                efxBlock.Parent = c
2099
                local music = Instance.new("Sound",c.Torso)
2100
                music.SoundId = "rbxassetid://316012176"
2101
                music.Looped = true
2102
                music.Volume = soundVol
2103
                fight = music
2104
                local music2 = Instance.new("Sound",c.Torso)
2105
                music2.SoundId = "rbxassetid://316014309"
2106
                music2.Looped = true
2107
                music2.Volume = soundVol
2108
                sans = music2
2109
                pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
2110
                pointGyro.P = 1e7
2111
                pointGyro.D = 1e3
2112
                pointGyro.MaxTorque = Vector3.new(0,1e7,0)
2113
                animator = c.Humanoid:FindFirstChild("Animator")
2114
                if animator then
2115
                        animator:Destroy()
2116
                end
2117
                c.Torso.roblox:Destroy()
2118
                for i,v in pairs (c.Head:children()) do
2119
                        if v.ClassName == "Sound" then
2120
                                v:Destroy()
2121
                        end
2122
                end
2123
                for i = 1,#Joints do
2124
                        Joints[i].C1 = CFrame.new(Vector3.new())
2125
                end
2126
                human.WalkSpeed = 0
2127
                human.JumpPower = 0
2128
        end
2129
2130
        uinps.InputBegan:connect(function(InputObject)
2131
                if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
2132
                        Debounces.isPassive = not Debounces.isPassive
2133
                end
2134
        end)
2135
2136
        setJointCFrames = function(table)
2137
                for i = 1,#table do
2138
                        JointTargets[i] = table[i]
2139
                end
2140
                AnimationCycles = 0
2141
        end
2142
2143
        setLerp = function(speed)
2144
                AnimStat.lerpSpeed = speed
2145
        end
2146
2147
        setTween = function(tween)
2148
                AnimStat.lerpTween = tween
2149
        end
2150
2151
        takeDamage = function(position,damage,distance,platformStand)
2152
                for i,v in pairs (pls:children()) do
2153
                        if v.ClassName == "Player" and v:FindFirstChild("Character") then
2154
                                local torso = v.Character:FindFirstChild("Torso")
2155
                                if torso and (torso.Position - position).magnitude < distance then
2156
                                if v.Character.Humanoid.MaxHealth > 1000 then
2157
                                    v.Character.Humanoid.MaxHealth = 100;
2158
                               v.Character.Humanoid.Breakjoints()
2159
                                end
2160
                                
2161
                            
2162
                                        v.Character.Humanoid:TakeDamage(damage)
2163
                                        if platformStand == true then
2164
                                                v.Character.PlatformStand = platformStand
2165
                                        end
2166
                                end
2167
                        end
2168
                end
2169
        end
2170
2171
--------------------------------------------------------
2172
2173
        prepareCharacter()
2174
2175
--------------------------------------------------------
2176
2177
        spawn(function()
2178
                local sine = 0
2179
                while wait() do
2180
                        pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
2181
                        if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
2182
                                setLerp(.1)
2183
                                if Debounces.isPassive == true then
2184
                                         setJointCFrames({
2185
                                                CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
2186
                                                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));
2187
                                                CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
2188
                                                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));
2189
                                                CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
2190
                                                CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
2191
                                        })
2192
                                else
2193
                                        setJointCFrames({
2194
                                                CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
2195
                                                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));
2196
                                                CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
2197
                                                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));
2198
                                                CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
2199
                                                CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
2200
                                        })
2201
                                end
2202
                        elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
2203
                                sine = sine + math.rad(12)
2204
                                human.WalkSpeed = 15
2205
                                setLerp(.15)
2206
                                setJointCFrames({
2207
                                        CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
2208
                                        CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
2209
                                        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));
2210
                                        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));
2211
                                        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));
2212
                                        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));
2213
                                })
2214
                        end
2215
                        if Debounces.scalingDamage == true then
2216
                                takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
2217
                        end
2218
                end
2219
        end)
2220
2221
        human.Changed:connect(function(prop)
2222
                if prop == "MoveDirection" then
2223
                        if human.MoveDirection.magnitude > .02 then
2224
                                Debounces.isMoving = true
2225
                        else
2226
                                Debounces.isMoving = false
2227
                        end
2228
                end
2229
        end)
2230
2231
        uinps.InputBegan:connect(function(InputObject)
2232
                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
2233
                        Debounces.isBoosting = true
2234
                        Debounces.damageLevel = 10
2235
                        Debounces.scalingDamage = true
2236
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
2237
                        setLerp(.15)
2238
                        setJointCFrames({
2239
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
2240
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
2241
                                CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
2242
                                CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
2243
                                CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
2244
                                CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
2245
                        })
2246
                        local boostSpeed = 250
2247
                        local efx = Instance.new("Sound",c.Head)
2248
                        efx.SoundId = "rbxassetid://200632875"
2249
                        efx.Pitch = math.random(1100,1300)/1000
2250
                        efx.Volume = .5
2251
                        efx:Play()
2252
                        spawn(function()
2253
                                wait(5)
2254
                                efx:Destroy()
2255
                        end)
2256
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
2257
                        vel.P = 1e3
2258
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
2259
                        wait(.15)
2260
                        vel.P = 1000
2261
                        vel.MaxForce = Vector3.new(3000,0,3000)
2262
                        vel.Velocity = Vector3.new()
2263
                        wait(.3)
2264
                        setLerp(.3)
2265
                        setJointCFrames({
2266
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
2267
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
2268
                                CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
2269
                                CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
2270
                                CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
2271
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
2272
                        })
2273
                        wait(.2)
2274
                        vel:Destroy()
2275
                        Debounces.damageLevel = 0
2276
                        Debounces.scalingDamage = false
2277
                        Debounces.isBoosting = false
2278
                end
2279
        end)
2280
2281
        uinps.InputBegan:connect(function(InputObject)
2282
                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
2283
                        Debounces.isBoosting = true
2284
                        Debounces.damageLevel = 10
2285
                        Debounces.scalingDamage = true
2286
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
2287
                        setLerp(.15)
2288
                        setJointCFrames({
2289
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
2290
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
2291
                                CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
2292
                                CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
2293
                                CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
2294
                                CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
2295
                        })
2296
                        local boostSpeed = 250
2297
                        local efx = Instance.new("Sound",c.Head)
2298
                        efx.SoundId = "rbxassetid://200632875"
2299
                        efx.Pitch = math.random(1100,1300)/1000
2300
                        efx.Volume = .5
2301
                        efx:Play()
2302
                        spawn(function()
2303
                                wait(5)
2304
                                efx:Destroy()
2305
                        end)
2306
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
2307
                        vel.P = 1e3
2308
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
2309
                        wait(.15)
2310
                        vel.P = 1000
2311
                        vel.MaxForce = Vector3.new(3000,0,3000)
2312
                        vel.Velocity = Vector3.new()
2313
                        wait(.3)
2314
                        setLerp(.3)
2315
                        setJointCFrames({
2316
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
2317
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
2318
                                CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
2319
                                CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
2320
                                CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
2321
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
2322
                        })
2323
                        wait(.2)
2324
                        vel:Destroy()
2325
                        Debounces.damageLevel = 0
2326
                        Debounces.scalingDamage = false
2327
                        Debounces.isBoosting = false
2328
                end
2329
        end)
2330
2331
        uinps.InputBegan:connect(function(InputObject)
2332
                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
2333
                        Debounces.isBoosting = true
2334
                        Debounces.damageLevel = 10
2335
                        Debounces.scalingDamage = true
2336
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
2337
                        setLerp(.15)
2338
                        setJointCFrames({
2339
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
2340
                                CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
2341
                                CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
2342
                                CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
2343
                                CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
2344
                                CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
2345
                        })
2346
                        local boostSpeed = 250
2347
                        local efx = Instance.new("Sound",c.Head)
2348
                        efx.SoundId = "rbxassetid://200632875"
2349
                        efx.Pitch = math.random(1100,1300)/1000
2350
                        efx.Volume = .5
2351
                        efx:Play()
2352
                        spawn(function()
2353
                                wait(5)
2354
                                efx:Destroy()
2355
                        end)
2356
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
2357
                        vel.P = 1e3
2358
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
2359
                        wait(.15)
2360
                        vel.P = 1000
2361
                        vel.MaxForce = Vector3.new(3000,0,3000)
2362
                        vel.Velocity = Vector3.new()
2363
                        wait(.3)
2364
                        setLerp(.3)
2365
                        setJointCFrames({
2366
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
2367
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
2368
                                CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
2369
                                CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
2370
                                CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
2371
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
2372
                        })
2373
                        wait(.2)
2374
                        vel:Destroy()
2375
                        Debounces.damageLevel = 0
2376
                        Debounces.scalingDamage = false
2377
                        Debounces.isBoosting = false
2378
                end
2379
        end)
2380
2381
        uinps.InputBegan:connect(function(InputObject)
2382
                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
2383
                        Debounces.isBoosting = true
2384
                        Debounces.damageLevel = 10
2385
                        Debounces.scalingDamage = true
2386
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
2387
                        setLerp(.15)
2388
                        setJointCFrames({
2389
                                CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
2390
                                CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
2391
                                CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
2392
                                CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
2393
                                CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
2394
                                CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
2395
                        })
2396
                        local boostSpeed = 150
2397
                        local boostSpeed = 250
2398
                        local efx = Instance.new("Sound",c.Head)
2399
                        efx.SoundId = "rbxassetid://200632875"
2400
                        efx.Pitch = math.random(1100,1300)/1000
2401
                        efx.Volume = .5
2402
                        efx:Play()
2403
                        spawn(function()
2404
                                wait(5)
2405
                                efx:Destroy()
2406
                        end)
2407
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
2408
                        vel.P = 1e3
2409
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
2410
                        wait(.15)
2411
                        vel.P = 1000
2412
                        vel.MaxForce = Vector3.new(3000,0,3000)
2413
                        vel.Velocity = Vector3.new()
2414
                        wait(.3)
2415
                        setLerp(.3)
2416
                        setJointCFrames({
2417
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
2418
                                CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
2419
                                CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
2420
                                CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
2421
                                CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
2422
                                CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
2423
                        })
2424
                        wait(.2)
2425
                        vel:Destroy()
2426
                        Debounces.damageLevel = 0
2427
                        Debounces.scalingDamage = false
2428
                        Debounces.isBoosting = false
2429
                end
2430
        end)
2431
2432
        uinps.InputBegan:connect(function(InputObject)
2433
                if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
2434
                        local isLooping = true
2435
                        uinps.InputEnded:connect(function(InputObject2)
2436
                                if InputObject2.KeyCode == Enum.KeyCode.Q then
2437
                                        isLooping = false
2438
                                end
2439
                        end)
2440
                        while true do
2441
                                if isLooping == false then
2442
                                        break
2443
                                end
2444
                                Debounces.attackNumber = Debounces.attackNumber + 1
2445
                                local aimPos = mouse.Hit.p
2446
                                local head = Instance.new("Part",c)
2447
                                head.Size = Vector3.new(12,.2,12)
2448
                                head.CanCollide = false
2449
                                head.Anchored = true
2450
                                head.Transparency = 1
2451
                                for i = 1,2 do
2452
                                        local decal = Instance.new("Decal",head)
2453
                                        decal.Texture = "rbxassetid://323497117"
2454
                                        if i == 1 then
2455
                                                decal.Face = Enum.NormalId.Top
2456
                                        else
2457
                                                decal.Face = Enum.NormalId.Bottom
2458
                                        end
2459
                                end
2460
                                if Debounces.attackNumber%2 == 1 then
2461
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
2462
                                else
2463
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
2464
                                end
2465
                                spawn(function()
2466
                                        local timer = 0
2467
                                        while rs.RenderStepped:wait() do
2468
                                                if timer >= 1.55 then
2469
                                                        break
2470
                                                end
2471
                                                head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
2472
                                                timer = timer + 1/30/(Debounces.FPS/60)
2473
                                        end
2474
                                        head.CFrame = CFrame.new(head.CFrame.p,aimPos)
2475
                                        local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
2476
                                        local hit, pos = workspace:FindPartOnRay(ray,c)
2477
                                        local dis = (head.CFrame.p - pos).magnitude
2478
                                        local rayPart = Instance.new("Part",rayModel)
2479
                                        rayPart.Material = "Neon"
2480
                                        rayPart.FormFactor = "Custom"
2481
                                        rayPart.BrickColor = BrickColor.new(1,1,1)
2482
                                        rayPart.Anchored = true
2483
                                        rayPart.CanCollide = false
2484
                                        rayPart.Size = Vector3.new(7,7,dis + 400)
2485
                                        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)
2486
                                        rayPart.CFrame = rayCFrame
2487
                                        head:Destroy()
2488
                                end)
2489
                                wait()
2490
                                local s = Instance.new("Sound",head)
2491
                                s.Volume = 1
2492
                                s.SoundId = "rbxassetid://332223043"
2493
                                s:Play()
2494
                                wait(.04)
2495
                        end
2496
                end
2497
        end)
2498
2499
        uinps.InputBegan:connect(function(InputObj)
2500
                if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
2501
                        Debounces.isAttacking = true
2502
                        local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
2503
                        local head = Instance.new("Part",c)
2504
                        head.Size = Vector3.new(18,.2,18)
2505
                        head.CanCollide = false
2506
                        head.Anchored = true
2507
                        head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
2508
                        head.Transparency = 1
2509
                        for i = 1,2 do
2510
                                local decal = Instance.new("Decal",head)
2511
                                decal.Texture = "rbxassetid://323497117"
2512
                                if i == 1 then
2513
                                        decal.Face = Enum.NormalId.Top
2514
                                else
2515
                                        decal.Face = Enum.NormalId.Bottom
2516
                                end
2517
                        end
2518
                        setLerp(.1)
2519
                        setJointCFrames({
2520
                                CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
2521
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
2522
                                CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
2523
                                CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
2524
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
2525
                                CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
2526
                        })
2527
                        spawn(function()
2528
                                local timer = 0
2529
                                while rs.RenderStepped:wait() do
2530
                                        if timer >= 1.55/.8 then
2531
                                                break
2532
                                        end
2533
                                        head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
2534
                                        timer = timer + 1/30/(Debounces.FPS/60)
2535
                                end
2536
                                head.CFrame = CFrame.new(head.CFrame.p,aimPos)
2537
                                local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
2538
                                local hit, pos = workspace:FindPartOnRay(ray,c)
2539
                                local dis = (head.CFrame.p - pos).magnitude
2540
                                local rayPart = Instance.new("Part",rayModel)
2541
                                rayPart.Material = "Neon"
2542
                                rayPart.FormFactor = "Custom"
2543
                                rayPart.Name = "Punch"
2544
                                rayPart.BrickColor = BrickColor.new(1,1,1)
2545
                                rayPart.Anchored = true
2546
                                rayPart.CanCollide = false
2547
                                rayPart.Size = Vector3.new(28,28,dis + 400)
2548
                                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)
2549
                                rayPart.CFrame = rayCFrame
2550
                                head:Destroy()
2551
                        end)
2552
                        wait()
2553
                        local s = Instance.new("Sound",head)
2554
                        s.Volume = 1
2555
                        s.SoundId = "rbxassetid://332223043"
2556
                        s.Pitch = .8
2557
                        s:Play()
2558
                        wait(.75)
2559
                        setLerp(.17)
2560
                        setJointCFrames({
2561
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
2562
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
2563
                                CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
2564
                                CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
2565
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
2566
                                CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
2567
                        })
2568
                        wait(.5)
2569
                        Debounces.isAttacking = false
2570
                end
2571
        end)
2572
        
2573
        reflect = function(d,n)
2574
                local i, n = -1 * d.unit, n.unit
2575
                local dot = n:Dot(i)
2576
                return 2*dot*n - i
2577
        end
2578
2579
        makeReflectionBeam = function(pos,look,isCrit)
2580
                local ray = Ray.new(pos,look)
2581
                local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
2582
                local e = Instance.new("Part",rayModel)
2583
                e.Anchored = true
2584
                e.CanCollide = false
2585
                e.BrickColor = BrickColor.new("White")
2586
                e.Material = "Neon"
2587
                e.FormFactor = "Custom"
2588
                e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
2589
                if isCrit == true then
2590
                        e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
2591
                        e.Name = "Punch"
2592
                end
2593
                e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
2594
                local e = Instance.new("Sound",c)
2595
                if isCrit == true then
2596
                        e.Volume = .5
2597
                else
2598
                        e.Volume = .3
2599
                        e.Pitch = 1.5
2600
                end
2601
                e.SoundId = "rbxassetid://200632875"
2602
                e:Play()
2603
                spawn(function()
2604
                        wait(6)
2605
                        e:Destroy()
2606
                end)
2607
                wait(.05)
2608
                if hit ~= nil then
2609
                        newDir = reflect(look.unit,norm,isCrit)
2610
                        makeReflectionBeam(hitpos,newDir * 999,isCrit)
2611
                end
2612
        end
2613
2614
        uinps.InputBegan:connect(function(InputObject)
2615
                if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
2616
                        local isLooping = true
2617
                        uinps.InputEnded:connect(function(InputObject2)
2618
                                if InputObject2.KeyCode == Enum.KeyCode.Q then
2619
                                        isLooping = false
2620
                                end
2621
                        end)
2622
                        while true do
2623
                                if isLooping == false then
2624
                                        break
2625
                                end
2626
                                Debounces.attackNumber = Debounces.attackNumber + 1
2627
                                local aimPos = mouse.Hit.p
2628
                                local head = Instance.new("Part",c)
2629
                                head.Size = Vector3.new(12,.2,12)
2630
                                head.CanCollide = false
2631
                                head.Anchored = true
2632
                                head.Transparency = 1
2633
                                for i = 1,2 do
2634
                                        local decal = Instance.new("Decal",head)
2635
                                        decal.Texture = "rbxassetid://323497117"
2636
                                        if i == 1 then
2637
                                                decal.Face = Enum.NormalId.Top
2638
                                        else
2639
                                                decal.Face = Enum.NormalId.Bottom
2640
                                        end
2641
                                end
2642
                                if Debounces.attackNumber%2 == 1 then
2643
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
2644
                                else
2645
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
2646
                                end
2647
                                spawn(function()
2648
                                        local timer = 0
2649
                                        while rs.RenderStepped:wait() do
2650
                                                if timer >= 1.55 then
2651
                                                        break
2652
                                                end
2653
                                                head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
2654
                                                timer = timer + 1/30/(Debounces.FPS/60)
2655
                                        end
2656
                                        head.CFrame = CFrame.new(head.CFrame.p,aimPos)
2657
                                        head:Destroy()
2658
                                        makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)        
2659
                                end)
2660
                                
2661
                                wait()
2662
                                local s = Instance.new("Sound",head)
2663
                                s.Volume = 1
2664
                                s.SoundId = "rbxassetid://332223043"
2665
                                s.Pitch = 1.02
2666
                                s:Play()
2667
                                wait(.2)
2668
                        end
2669
                end
2670
        end)
2671
2672
        uinps.InputBegan:connect(function(InputObj)
2673
                if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
2674
                        Debounces.isAttacking = true
2675
                        local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
2676
                        local head = Instance.new("Part",c)
2677
                        head.Size = Vector3.new(18,.2,18)
2678
                        head.CanCollide = false
2679
                        head.Anchored = true
2680
                        head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
2681
                        head.Transparency = 1
2682
                        for i = 1,2 do
2683
                                local decal = Instance.new("Decal",head)
2684
                                decal.Texture = "rbxassetid://323497117"
2685
                                if i == 1 then
2686
                                        decal.Face = Enum.NormalId.Top
2687
                                else
2688
                                        decal.Face = Enum.NormalId.Bottom
2689
                                end
2690
                        end
2691
                        setLerp(.1)
2692
                        setJointCFrames({
2693
                                CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
2694
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
2695
                                CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
2696
                                CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
2697
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
2698
                                CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
2699
                        })
2700
                        spawn(function()
2701
                                local timer = 0
2702
                                while rs.RenderStepped:wait() do
2703
                                        if timer >= 1.55/.8 then
2704
                                                break
2705
                                        end
2706
                                        head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
2707
                                        timer = timer + 1/30/(Debounces.FPS/60)
2708
                                end
2709
                                head.CFrame = CFrame.new(head.CFrame.p,aimPos)
2710
                                head:Destroy()
2711
                                makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
2712
                        end)
2713
                        wait()
2714
                        local s = Instance.new("Sound",head)
2715
                        s.Volume = 2
2716
                        s.SoundId = "rbxassetid://332223043"
2717
                        s.Pitch = .8
2718
                        s:Play()
2719
                        wait(.75)
2720
                        setLerp(.17)
2721
                        setJointCFrames({
2722
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
2723
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
2724
                                CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
2725
                                CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
2726
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
2727
                                CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
2728
                        })
2729
                        wait(.5)
2730
                        Debounces.isAttacking = false
2731
                end
2732
        end)
2733
2734
        uinps.InputBegan:connect(function(InputObj)
2735
                if InputObj.KeyCode == Enum.KeyCode.Slash then
2736
                        local finishEvent = nil
2737
                        Debounces.isTyping = true
2738
                        finishEvent = uinps.InputBegan:connect(function(InputObj)
2739
                                if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
2740
                                        Debounces.isTyping = false
2741
                                        finishEvent:disconnect()
2742
                                end
2743
                        end)
2744
                end
2745
        end)
2746
2747
        uinps.InputBegan:connect(function(InputObj)
2748
                if InputObj.KeyCode == Enum.KeyCode.LeftShift then
2749
                        Debounces.isSprinting = true
2750
                end
2751
        end)
2752
2753
        uinps.InputEnded:connect(function(InputObj)
2754
                if InputObj.KeyCode == Enum.KeyCode.LeftShift then
2755
                        Debounces.isSprinting = false
2756
                end
2757
        end)
2758
2759
        rs.RenderStepped:connect(function()
2760
                Debounces.FPS = 1/rs.RenderStepped:wait()
2761
                local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
2762
                if Debounces.isPassive == false then
2763
                        fight:Pause()
2764
                        sans:Resume()
2765
                        efxBlock.Transparency = 1
2766
                else
2767
                        fight:Resume()
2768
                        sans:Pause()
2769
                        efxBlock.Transparency = 0
2770
                end
2771
                for i,v in pairs (rayModel:children()) do
2772
                        if v.Transparency >= 1 then
2773
                                v:Destroy()
2774
                        else
2775
                                v.CanCollide = true
2776
                                local parts = v:GetTouchingParts()
2777
                                v.CanCollide = false
2778
                                for i = 1,#parts do
2779
                                        if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
2780
                                                parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
2781
                                        elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
2782
                                                parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
2783
                                        end
2784
                                end
2785
                                v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
2786
                                v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
2787
                        end
2788
                end
2789
                for i = 1,#Joints do
2790
                        Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
2791
                end
2792
                light.Brightness = math.random(1,4)
2793
        end)
2794
-- ~CLarramore