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