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