View difference between Paste ID: gz5fXzPC and dZuqm5y2
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
3
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22-
local p = game:service'Players'.LocalPlayer
22+
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24-
local mouse = p:GetMouse()
24+
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
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
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54-
local pl = game:service'Players'.LocalPlayer
54+
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = owner
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local Mouse = Player:GetMouse()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
87
--[[
88
	req list
89
	
90
	heart control (the force)
91
	
92
	teleport
93
	
94
	bone zone
95
	
96
	throw bones
97
--]]
98
99
local Level=666
100
local function RiseLevel(hum,dmg)
101
if tonumber(Level)then
102
if hum.Health>0 and hum.Health-dmg<=0 then Level=Level+1
103
local s=Instance.new("Sound")end--s. end
104
else warn'String is not able to level up , or having issure to level.'end
105
end
106-
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=357134154"
106+
107-
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=343128365"
107+
108
local p = owner
109
local char = p.Character
110
local larm = char["Left Arm"]
111
local rarm = char["Right Arm"]
112
local lleg = char["Left Leg"]
113
local rleg = char["Right Leg"]
114
local hed = char.Head
115
local Torso = char.Torso
116
local hum = char.Humanoid
117
local cam = workspace.CurrentCamera
118-
	p = game.Players.LocalPlayer
118+
119
local deb = false
120
local shot = 0
121
local potential = false
122
local debris=game:service"Debris"
123
local l = game:GetService("Lighting")
124
local rs = game:GetService("RunService").RenderStepped
125
ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
126
math.randomseed(os.time())
127
for i,v in pairs(char:children()) do
128
	if v:IsA("Accessory") then
129
		v:Destroy()
130
	end
131
end
132
for i,v in pairs (hed:GetChildren()) do
133
		if v:IsA("Sound") then
134
				v:Destroy()
135
		end
136
end
137
music = Instance.new("Sound",c)
138
music2 = Instance.new("Sound",c)
139
local pl = owner
140
local chara = pl.Character
141
local hum = chara:FindFirstChildOfClass("Humanoid")
142
hum.MaxHealth = 10000000000000000000
143
hum.Health = 10000000000000000000
144
maincol = "White"
145
increment = 20
146
if 1 then
147
	local MovesGui=Instance.new("ScreenGui",p:FindFirstChildOfClass("PlayerGui"))
148
	local Frm=Instance.new("Frame",MovesGui)Frm.BackgroundColor3=Color3.new()Frm.BorderSizePixel=0
149
	Frm.BackgroundTransparency=.5 Frm.Size=UDim2.new(.3,0,.5,0)local Show=true Frm.Position=UDim2.new(.7,0,.5,0)
150
	local idk=Instance.new("TextButton",Frm)idk.Size=UDim2.new(.5,0,.1,0)idk.Position=UDim2.new(-.5,0,.8,0)
151
	idk.Text="Hide"idk.TextStrokeTransparency=0 idk.BackgroundTransparency=.5 idk.BackgroundColor3=Color3.new()
152-
	text.Text = "Do You Wanna Have A Mad Time?"
152+
153
	idk.MouseButton1Click:connect(function()Show=not Show idk.Text=Show and "Hide"or"Show"end)
154-
	text.Text = "Any last words? Kiddo";
154+
155
	normal.BackgroundTransparency=1 normal.TextColor3=Color3.new(1,1,1)
156
	normal.TextXAlignment="Left"normal.TextYAlignment="Top"
157-
		spawn(function()while wait()do text.Text = "Dust Sans LV"..tostring(Level)end end)
157+
158-
		hed.face.Texture = "rbxassetid://871052201"
158+
159
----------------------------------
160
K: Passive
161
!*Q :Gaster Blaster (quick)
162
! E  :Gaster Blaster (high damage)
163-
		lp = pls.LocalPlayer
163+
164-
		mouse = lp:GetMouse()
164+
165
*G :Bone Throw
166
*C :Heart Control
167
Shift : Sprint
168
169
Hey arthurfoxy i am sebastian :P
170
]]
171
	spawn(function()
172
	while game:service'RunService'.RenderStepped:wait()do
173
		Frm.Position=Frm.Position:lerp(UDim2.new(not Show and 1 or .7,0,.5,0),.1)
174-
		Hulmet.Parent = game.Players.LocalPlayer.Character
174+
175
end
176
--------------------------------------------------------
177
hed.face.Texture = "rbxassetid://871052201"
178
chara:WaitForChild"Body Colors"
179
char["Body Colors"].HeadColor = BrickColor.new("Institutional white")
180
char["Body Colors"].LeftArmColor = BrickColor.new("Institutional white")
181
char["Body Colors"].RightArmColor = BrickColor.new("Institutional white")
182
char["Body Colors"].TorsoColor = BrickColor.new("Institutional white")
183
char["Body Colors"].RightLegColor = BrickColor.new("Institutional white")
184
char["Body Colors"].LeftLegColor = BrickColor.new("Institutional white")
185
---------------------------------------
186
ypcall(function()
187
shirt = Instance.new("Shirt", char)
188
shirt.Name = "Shirt"
189
pants = Instance.new("Pants", char)
190
pants.Name = "Pants"
191
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=71047904"
192
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=71047904"
193
end)
194
--------------------------------------------------------		
195
KG = Instance.new("Sound", game.Players.LocalPlayer.Character)
196
KG.Volume = 3
197
KG.SoundId = "rbxassetid://519341881"
198
KG.Looped = true
199
KG:Play()
200
201
--------------------------------------------------------
202
CV="Eggplant"
203
	p = owner
204
	char = p.Character
205
	local txt = Instance.new("BillboardGui", char)
206
	txt.Adornee = char .Head
207
	txt.Name = "_status"
208
	txt.Size = UDim2.new(2, 0, 1.2, 0)
209
	txt.StudsOffset = Vector3.new(-9, 8, 0)
210
	local text = Instance.new("TextLabel", txt)
211
	text.Size = UDim2.new(10, 0, 7, 0)
212
	text.FontSize = "Size24"
213
	text.TextScaled = true
214
	text.TextTransparency = 0
215
	text.BackgroundTransparency = 1 
216
	text.TextTransparency = 0
217
	text.TextStrokeTransparency = 0
218
	text.Font = "Arcade"
219
	text.TextStrokeColor3 = Color3.new(255,255,255)
220
221
	v=Instance.new("Part")
222
	v.Name = "ColorBrick"
223
	v.Parent=p.Character
224
	v.FormFactor="Symmetric"
225
	v.Anchored=true
226
	v.CanCollide=false
227
	v.BottomSurface="Smooth"
228
	v.TopSurface="Smooth"
229
	v.Size=Vector3.new(10,5,3)
230
	v.Transparency=1
231
	v.CFrame=char.Torso.CFrame
232
	v.BrickColor=BrickColor.new(CV)
233
	v.Transparency=1
234
	text.TextColor3 = Color3.new(0,0,0)
235
	v.Shape="Block"
236
	wait()
237
	text.Text = "IM DONT SAY IF YOU FOOL"
238
	wait(2)
239
	text.Text = "BUT AFTER THIS WHAT YOU IM NEED KILL YOU";
240
		wait(3)
241
		text.TextColor3 = Color3.new(0,0,0)  
242
		spawn(function()while wait()do text.Text = "CORRUPTED MICHEAL LV"..tostring(Level)end end)
243
		hed.face.Texture = "rbxassetid://404306534"
244
--------------------------------------------------------  
245
		pls = game:GetService'Players'
246
		rs = game:GetService'RunService'
247
		uinps = game:GetService'UserInputService'
248
		lp = pls.LocalPlayel
249
		c = lp.Character
250
		human = c.Humanoid
251
		human.MaxHealth = 1/0
252
		wait()
253
		human.Health = 0/0
254
		c.Health:Destroy()
255
--------------------------------------------------------
256
		Hulmet = Instance.new("Part")
257
		Hulmet.Position = Hulmet.Position + Vector3.new(0,10,0)
258
		Hulmet.Parent = owner
259
		Hulmet.Name = "Helmet"
260
		Hulmet.Size = Vector3.new(1.643, 1.157, 1.696)
261
		Hulmet.Material = Enum.Material.Metal
262
		Hulmet.BrickColor = BrickColor.new("Grey")
263
		MSHE = Instance.new("SpecialMesh")
264
		MSHE.Parent = Hulmet
265
		MSHE.MeshId = "rbxassetid://101203373"
266
		WULD = Instance.new("Weld")
267
		WULD.Parent = Hulmet
268
		WULD.Part0 = Hulmet
269
		WULD.Part1 = game.Players.LocalPlayer.Character.Head
270
		WULD.C1 = CFrame.Angles(0,0,0)
271
		WULD.C0 = CFrame.new(0,0,0)
272
--------------------------------------------------------
273
274
		Debounces = {
275
				AnimationCycles = 0;
276
				FPS = 0;
277
				scalingDamage = false;
278
				damageLevel = 0;
279
				attackNumber = 0;
280
				isAttacking = false;
281
				isMoving = false;
282
				isSprinting = false;
283
				isBoosting = false;
284
				isPassive = false;
285
				isTyping = false;
286
		}
287
288
--------------------------------------------------------
289
290
		numLerp = function(start, goal, alpha)
291
				return(((goal - start) * alpha) + start)
292
		end
293
294
		CFrameZero = function()
295
				return CFrame.new(Vector3.new())
296
		end
297
298
		rad = function(value)
299
				return math.rad(value)
300
		end
301
302
		CFAngles = function(Vector)
303
				return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
304
		end
305
306
--------------------------------------------------------
307
308
		AnimStat = {
309
				lerpSpeed = .2;
310
				lerpSpeed2 = .35;
311
				lerpTween = 0;
312
		}
313
314
		Joints = {
315
				c.HumanoidRootPart.RootJoint;
316
				c.Torso.Neck;
317
				c.Torso['Left Shoulder'];
318
				c.Torso['Right Shoulder'];
319
				c.Torso['Left Hip'];
320
				c.Torso['Right Hip'];
321
		}
322
323
		JointTargets = {
324
				CFrameZero();
325
				CFrameZero();
326
				CFrameZero();
327
				CFrameZero();
328
				CFrameZero();
329
				CFrameZero();
330
		}
331
332
--------------------------------------------------------
333
334
		BodyColors = {
335
				HeadColor = BrickColor.new("Institutional white");
336
				LeftArmColor = BrickColor.new("Institutional white");
337
				RightArmColor = BrickColor.new("Institutional white");
338
				LeftLegColor = BrickColor.new("Institutional white");
339
				RightLegColor = BrickColor.new("Institutional white");
340
				TorsoColor = BrickColor.new("Mid gray");
341
		}
342
343
		Customs = {
344
				Face = "http://www.roblox.com/asset/?id=871052201";
345
				Shirt = "http://www.roblox.com/asset/?id=357134155";
346
				Pants = "http://www.roblox.com/asset/?id=343128366";
347
		}
348
349
--------------------------------------------------------
350
351
		prepareCharacter = function()
352
				local transPoints = {
353
						NumberSequenceKeypoint.new(0,.819,.0375),
354
						NumberSequenceKeypoint.new(.207,.594,.0187),
355
						NumberSequenceKeypoint.new(.4,.55,.031),
356
						NumberSequenceKeypoint.new(.57,.619,.05),
357
						NumberSequenceKeypoint.new(.76,.8,.0375),
358
						NumberSequenceKeypoint.new(1,1,0),
359
				}
360
				local sizePoints = {
361
						NumberSequenceKeypoint.new(0,.687,0),
362
						NumberSequenceKeypoint.new(.111,.875,0),
363
						NumberSequenceKeypoint.new(.327,1.19,0),
364
						NumberSequenceKeypoint.new(.646,1.56,0),
365
						NumberSequenceKeypoint.new(.805,1.37,0),
366
						NumberSequenceKeypoint.new(.905,1.06,0),
367
						NumberSequenceKeypoint.new(.968,.938,0),
368
						NumberSequenceKeypoint.new(.984,1.13,0),
369
						NumberSequenceKeypoint.new(1,1.62,0),
370
				}
371
				local Size = NumberSequence.new(sizePoints)
372
				local Transparency = NumberSequence.new(transPoints)
373
				rayModel = Instance.new("Model",c)
374
				efcModel = Instance.new("Model",c)
375
				efxBlock = Instance.new("Part",c)
376
				efxBlock.BrickColor = BrickColor.new("Bright violet")
377
				efxBlock.Material = "Neon"
378
				efxBlock.FormFactor = "Custom"
379
				efxBlock.Transparency = .3
380
				efxBlock.Size = Vector3.new(.3,.3,.3)
381
				local mesh = Instance.new("SpecialMesh",efxBlock)
382
				mesh.MeshType = Enum.MeshType.Sphere
383
				mesh.Scale = Vector3.new(1,1,1)
384
				light = Instance.new("PointLight",c.Head)
385
				light.Range = 10
386
				light.Color = Color3.new(0,200/255,1)
387
				light.Shadows = false
388
				local particles = Instance.new("ParticleEmitter",efxBlock)
389
				particles.Color = ColorSequence.new(Color3.fromRGB(48,17,109))
390
				particles.LightEmission = .5
391
				particles.Size = Size
392
				particles.Name = "Fire"
393
				particles.Transparency = Transparency
394
				particles.LockedToPart = true
395
				particles.VelocityInheritance = .5
396
				particles.LockedToPart = true
397
				particles.Rate = 70
398
				particles.Texture = "rbxassetid://170478388"
399
				particles.Lifetime = NumberRange.new(2,2)
400
				particles.RotSpeed = NumberRange.new(100,100)
401-
	local Character=game:service'Players'.LocalPlayer.Character local RootPart=Character.HumanoidRootPart
401+
402
				script.Parent = efxBlock
403
				fire = particles
404
				local offset = Vector3.new(-0.11, .23, -0.5)
405
				local weld = Instance.new("Weld",c.Head)
406
				weld.Part0 = c.Head
407
				weld.Part1 = efxBlock
408
				weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
409
				efxBlock.Parent = c
410
				music.SoundId = "rbxassetid://316012176"
411
				music.Looped = true
412
				music.Volume = 0
413
				fight = music
414
				music2.SoundId = "rbxassetid://316014309"
415
				music2.Looped = true
416
				music2.Volume = 0
417
				sans = music2
418
				pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
419
				pointGyro.P = 1e7
420
				pointGyro.D = 1e3
421
				pointGyro.MaxTorque = Vector3.new(0,1e7,0)
422
				animator = c.Humanoid:FindFirstChild("Animator")
423
				if animator then
424
						animator:Destroy()
425
				end
426
				c.Torso.roblox:Destroy()
427
				for i,v in pairs (c.Head:children()) do
428
						if v.ClassName == "Sound" then
429
								v:Destroy()
430
						end
431
				end
432
				for i = 1,#Joints do
433
						Joints[i].C1 = CFrame.new(Vector3.new())
434
				end
435
				human.WalkSpeed = 0
436
				human.JumpPower = 0
437
		end
438
439
		uinps.InputBegan:connect(function(InputObject)
440
				if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
441
						Debounces.isPassive = not Debounces.isPassive
442
				end
443
		end)
444
445
		setJointCFrames = function(table)
446
				for i = 1,#table do
447
						JointTargets[i] = table[i]
448
				end
449
				AnimationCycles = 0
450
		end
451
452
		setLerp = function(speed)
453
				AnimStat.lerpSpeed = speed
454
		end
455
456
		setTween = function(tween)
457
				AnimStat.lerpTween = tween
458
		end
459
460
		takeDamage = function(position,damage,distance,platformStand)
461
				for i,v in pairs (pls:children()) do
462
						if v.ClassName == "Player" and v:FindFirstChild("Character") then
463
								local torso = v.Character:FindFirstChild("Torso")
464
								if torso and (torso.Position - position).magnitude < distance then
465
										RiseLevel(v.Character.Humanoid,damage)
466
										v.Character.Humanoid:TakeDamage(damage)
467
										if platformStand == true then
468
												v.Character.PlatformStand = platformStand
469
										end
470
								end
471
						end
472
				end
473
		end
474
475
--------------------------------------------------------
476
477
		prepareCharacter()
478
479
--------------------------------------------------------
480
		hldng={}Player=p
481
function chatfunc(text)
482
spawn(function()local function lerp(a,b,t)return a*(1-t)+(b*t)end
483
	local rs=game:service'RunService'.RenderStepped
484
	local function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end
485
	local Character=owner.Character local RootPart=Character.HumanoidRootPart
486
	local se=Instance.new("Sound",root)se.Volume=5 se.SoundId="rbxassetid://417445954"
487
	if Character:FindFirstChild("cht")then Character.cht:Destroy()end
488
	local b=Instance.new("BillboardGui",Character)b.AlwaysOnTop=true b.Adornee=RootPart b.StudsOffsetWorldSpace=Vector3.new(0,4,0)b.Name="cht"
489
	local snum=text:len()b.Size=UDim2.new(snum/1.7,0,2,0)
490
	local texts={}
491
	for i=1,snum do
492
		texts[i]=Instance.new("TextButton",b)
493
		texts[i].Size=UDim2.new(1/snum,0,1,0)texts[i].Name=text:sub(i,i)--texts[i].TextSize=30
494
		texts[i].Text=text:sub(i,i)texts[i].Position=UDim2.new((i-1)/snum,0,.3,0)
495
		texts[i].BackgroundTransparency=1 texts[i].TextColor3=Color3.new(1)
496
		texts[i].TextStrokeTransparency=1 texts[i].Font="Cartoon"texts[i].TextScaled=1 texts[i].TextTransparency=1
497
	end
498
	local DoOpt=function(Set,Val,LerpB)for i=1,#texts do if texts[i].Parent and b.Parent then if LerpB~=nil then
499
	if typeof(texts[i][Set])=="UDim2"then texts[i][Set]=texts[i][Set]:lerp(Val,LerpB)else texts[i][Set]=lerp(texts[i][Set],Val,LerpB)end
500
	else texts[i][Set]=Val end end end end
501
	for i=1,#texts do
502
		if texts[i].Parent then
503
			texts[i].TextTransparency=0 texts[i].TextStrokeTransparency=0
504
		end
505
		if texts[i].Text~=" "then se.TimePosition=.06 se:Play()end
506
		sw(3)
507
	end
508
	sw(180)
509
	for i=1,0,-.025 do
510
		DoOpt("TextTransparency",1-i)--DoOpt("TextStrokeTransparency",1-i)
511
		sw()
512
	end
513
	b:Destroy()
514
end)
515
end Player.Chatted:connect(function(m)chatfunc(game:service'Chat':FilterStringAsync(m,Player,Player))end)
516
		mouse.KeyUp:connect(function(k)
517
			hldng[k]=nil
518
		end)
519
		
520
		local function doit()
521
			if DefAble then
522
				return
523
			else
524
				if human.Health~=human.MaxHealth then
525
				DefAble=false
526
				human:Destroy()
527
				human=Instance.new("Humanoid",chara)Instance.new("Model",human).Name="Status"
528
				human.MaxHealth=1 human.Health=1
529
				human.HealthChanged:connect(doit)
530
				root.CFrame=root.CFrame*CFrame.new(0,0,10)
531
				hldng.r=nil warn"Dodged"
532
				Tired.n=Tired.n+10
533
				end
534
			end
535
		end
536
		dodge=human.HealthChanged:connect(doit)
537
		local sw=function(n)if n then for i=1,n do rs.RenderStepped:wait()end else rs.RenderStepped:wait()end end
538
		spawn(function()
539
				local sine = 0
540
				local idk=Instance.new("ScreenGui",p:FindFirstChildOfClass'PlayerGui')
541
				local frm=Instance.new("Frame",idk)frm.BorderSizePixel=0
542
				frm.BackgroundTransparency=.5 frm.Size=UDim2.new(.4,0,.03,0)
543
				frm.Position=UDim2.new(.3,0,.7,0)
544
				
545
				local t=Instance.new("TextLabel",frm)t.Text="wait"t.BorderSizePixel=0
546
				t.TextColor3=Color3.new(1,1,1)t.TextStrokeTransparency=0-- t.TextScaled=1
547
				t.BackgroundTransparency=0 t.TextXAlignment="Left" t.BackgroundColor3=Color3.new(1)
548
				while wait()do
549
						t.Size=UDim2.new(Tired.n/Tired.m,0,1,0)
550
						if Tired.n>=Tired.m then
551
							Tired.n=Tired.m
552
							Tired.d=true
553
						end
554
						if Tired.d then
555
							Tired.n=Tired.n-5 DefAble=true hldng.r=nil
556
						end t.Text=tostring(math.floor(Tired.n*10)/10).."/"..tostring(Tired.m)
557
						if Tired.n<=0 then Tired.n=0 Tired.d=false end
558
						if DefAble then human.MaxHealth=1 human.Health=1 human.Name="Humanoid"else
559
						dodge:disconnect()human.MaxHealth=1 human.Health=1 dodge=human.HealthChanged:connect(doit)
560
						
561
						end
562
						
563
						if hldng.r then DefAble=false else DefAble=1 end
564
						
565
						pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
566
						if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
567
								setLerp(.1)
568
								if Debounces.isPassive == true then --walk
569
										setJointCFrames({
570
												CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
571
												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));
572
												CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
573
												CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
574
												CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
575
												CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
576
										})
577
								else
578
										setJointCFrames({
579
												CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
580
												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));
581
												CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
582
												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));
583
												CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
584
												CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
585
										})
586
								end
587
						elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
588
								sine = sine + math.rad(12) --else jump
589
								human.WalkSpeed = 15
590
								setLerp(.15)
591
								setJointCFrames({
592
										CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
593
										CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
594
										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));
595
										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));
596
										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));
597
										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));
598
								})
599
						end
600
						if Debounces.scalingDamage == true then
601
								takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
602
						end
603
				end
604
		end)
605
		human.Changed:connect(function(prop)
606
				if prop == "MoveDirection" then
607
						if human.MoveDirection.magnitude > .02 then
608
								Debounces.isMoving = true
609
						else
610
								Debounces.isMoving = false
611
						end
612
				end
613
		end)
614
		local dunkedon=false
615
		mouse.KeyDown:connect(function(k)
616
			hldng[k]=true
617
			if not Debounces.isAttacking then
618
				if k=="c"and not Tired.d and Debounces.isPassive then
619
					local GrabObj=mouse.Target
620
					local hum=nil
621
					if GrabObj then
622
						if not GrabObj.Anchored then
623
							if GrabObj.Parent then
624
								if GrabObj.Parent:FindFirstChild'Humanoid'then
625
									hum=GrabObj.Parent.Humanoid
626
								end
627
							end
628
							local jet=Instance.new("BodyPosition",GrabObj)
629
							if not hum then jet.D=2000 jet.P=2000 end
630
							while hldng.c and not Tired.d do
631
								jet.MaxForce=Vector3.new(10,10,10)*10000000
632
								jet.Position=mouse.Target~=nil and mouse.Hit.p or jet.Position
633
								Tired.n=Tired.n+((not hum or hum.Health==0) and 1 or 2)
634
								local vel=GrabObj.Velocity.x+GrabObj.Velocity.y+GrabObj.Velocity.z
635
								if hum and vel>20 then RiseLevel(hum,vel/400)hum.Health=hum.Health-vel/400 end
636
								sw()
637
							end
638
							jet:Destroy()
639
						else
640
							warn'The object is anchored!'
641
						end
642
					end
643
				end
644
				if k=="t"and not Tired.d then -- TELEPORT
645
					if mouse.Target then Debounces.isAttacking=true
646
					local pos=mouse.Hit KG:Pause()
647
					root.Anchored=1 root.CFrame=CFrame.new(9999,9999,109999)
648
					local jam=Instance.new("ScreenGui",p:FindFirstChildOfClass("PlayerGui"))
649
					jam.DisplayOrder=12 local j=Instance.new("Frame",jam)j.BackgroundColor3=Color3.new()
650
					j.BorderSizePixel=0 j.Size=UDim2.new(1,0,1,0)
651
					wait(1)Debounces.isAttacking=false KG:Resume()
652
					root.CFrame=pos+Vector3.new(0,3,0)
653
					jam:Destroy()root.Anchored=false
654
					end
655
					Tired.n=Tired.n+50
656
				end
657
				if k=="f"and not Tired.d and not dunkedon and Debounces.isPassive then
658
					dunkedon=true local pos=mouse.Hit.p
659
					Tired.n=Tired.n+100
660
					local idk=Instance.new("Part",efcModel)
661
					idk.Size=Vector3.new(2,80,80)local sp=Instance.new("SpecialMesh",idk)idk.Anchored=1 idk.CanCollide=nil
662
					sp.Scale=idk.Size*20 idk.Size=Vector3.new()idk.Color=Color3.new(1,.1,.1)sp.MeshType="Cylinder"
663
					idk.Transparency=.5 idk.CFrame=CFrame.new(pos)*CFrame.Angles(0,0,math.rad(90))
664
					idk.Material="SmoothPlastic"
665
					idk.Transparency=.5 sw(20)idk:Destroy()
666
					spawn(function()for i=1,300 do
667
						local pos=CFrame.new(pos)*CFrame.Angles(0,math.rad(math.random(360)),0)*CFrame.new(0,0,math.random(380)/10)*CFrame.Angles(0,math.rad(math.random(180)),0)+Vector3.new(0,-6,0)
668
						spawn(function()
669
							local p=Instance.new("Part",efcModel)
670
							p.Touched:connect(function(p)if p.Parent:FindFirstChild("Humanoid")then if p.Parent.Humanoid~=human then RiseLevel(p.Parent.Humanoid,1)p.Parent.Humanoid.Health=p.Parent.Humanoid.Health-1 end end end)
671
							p.Color=Color3.new(1,1,1)p.Size=Vector3.new(10,1,10)p.CFrame=pos
672
							local j=Instance.new("BodyVelocity",p)j.MaxForce=Vector3.new(1,1,1)/0 j.Velocity=Vector3.new()p.CanCollide=nil
673
							local m=Instance.new("SpecialMesh",p)m.MeshId="rbxassetid://465130937"
674
							m.Scale=Vector3.new(.05,.08,.05)/1.2
675
							spawn(function()
676
								for i=0,1,.05 do p.CFrame=p.CFrame+Vector3.new(0,.6,0)sw()end
677
								sw(10)for i=0,1,.05 do p.Transparency=i sw()end p:Destroy()
678
							end)
679
						end)
680
						sw()
681
					end
682
					end)
683
					wait(5)
684
					
685
					dunkedon=false
686
				end
687
			end
688
			if Debounces.isPassive and k=="g"then
689
				while hldng.g and not Tired.d do
690
					sw(10)
691
					Tired.n=Tired.n+1
692
					local pos=CFrame.new((root.CFrame+Vector3.new(0,4,0))*CFrame.new(math.random(-70,70)/10,math.random(-10,10)/10,math.random(-70,70)/10).p,mouse.Hit.p)
693
					spawn(function()
694
						local p=Instance.new("Part",efcModel)
695
						p.Touched:connect(function(p)if p.Parent:FindFirstChild("Humanoid")then if p.Parent.Humanoid~=human then RiseLevel(p.Parent.Humanoid,1)p.Parent.Humanoid.Health=p.Parent.Humanoid.Health-1 end end end)
696
						p.Color=Color3.new(1,1,1)p.Size=Vector3.new(4,4,4)p.CFrame=pos
697
						local j=Instance.new("BodyVelocity",p)j.MaxForce=Vector3.new(1,1,1)/0 j.Velocity=Vector3.new()p.CanCollide=nil
698
						local m=Instance.new("SpecialMesh",p)m.MeshId="rbxassetid://465130937" 
699
						m.Scale=Vector3.new(.05,.08,.05)/2.5
700
						spawn(function()
701
							for i=0,1,.005 do p.CFrame=pos*CFrame.new(0,0,-i*300)*CFrame.Angles(math.rad(90),0,0)sw()end
702
							sw(10)for i=0,1,.05 do p.Transparency=i sw()end p:Destroy()
703
						end)
704
					end)
705
				end
706
			end
707
		
708
		end)
709
		uinps.InputBegan:connect(function(InputObject)
710
				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
711
						Debounces.isBoosting = true
712
						Debounces.damageLevel = 10
713
						Debounces.scalingDamage = true
714
						local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
715
						setLerp(.15)
716
						setJointCFrames({
717
								CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
718
								CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
719
								CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
720
								CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
721
								CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
722
								CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
723
						})
724
						local boostSpeed = 250
725
						local efx = Instance.new("Sound",c.Head)
726
						efx.SoundId = "rbxassetid://200632875"
727
						efx.Pitch = math.random(1100,1300)/1000
728
						efx.Volume = .5
729
						efx:Play()
730
						spawn(function()
731
								wait(5)
732
								efx:Destroy()
733
						end)
734
						vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
735
						vel.P = 1e3
736
						vel.MaxForce = Vector3.new(math.huge,0,math.huge)
737
						wait(.15)
738
						vel.P = 1000
739
						vel.MaxForce = Vector3.new(3000,0,3000)
740
						vel.Velocity = Vector3.new()
741
						wait(.3)
742
						setLerp(.3)
743
						setJointCFrames({
744
								CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
745
								CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
746
								CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
747
								CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
748
								CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
749
								CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
750
						})
751
						wait(.2)
752
						vel:Destroy()
753
						Debounces.damageLevel = 0
754
						Debounces.scalingDamage = false
755
						Debounces.isBoosting = false
756
				end
757
		end)
758
759
		uinps.InputBegan:connect(function(InputObject)
760
				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
761
						Debounces.isBoosting = true
762
						Debounces.damageLevel = 10
763
						Debounces.scalingDamage = true
764
						local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
765
						setLerp(.15)
766
						setJointCFrames({
767
								CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
768
								CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
769
								CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
770
								CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
771
								CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
772
								CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
773
						})
774
						local boostSpeed = 250
775
						local efx = Instance.new("Sound",c.Head)
776
						efx.SoundId = "rbxassetid://200632875"
777
						efx.Pitch = math.random(1100,1300)/1000
778
						efx.Volume = .5
779
						efx:Play()
780
						spawn(function()
781
								wait(5)
782
								efx:Destroy()
783
						end)
784
						vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
785
						vel.P = 1e3
786
						vel.MaxForce = Vector3.new(math.huge,0,math.huge)
787
						wait(.15)
788
						vel.P = 1000
789
						vel.MaxForce = Vector3.new(3000,0,3000)
790
						vel.Velocity = Vector3.new()
791
						wait(.3)
792
						setLerp(.3)
793
						setJointCFrames({
794
								CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
795
								CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
796
								CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
797
								CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
798
								CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
799
								CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
800
						})
801
						wait(.2)
802
						vel:Destroy()
803
						Debounces.damageLevel = 0
804
						Debounces.scalingDamage = false
805
						Debounces.isBoosting = false
806
				end
807
		end)
808
809
		uinps.InputBegan:connect(function(InputObject)
810
				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
811
						Debounces.isBoosting = true
812
						Debounces.damageLevel = 10
813
						Debounces.scalingDamage = true
814
						local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
815
						setLerp(.15)
816
						setJointCFrames({
817
								CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
818
								CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
819
								CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
820
								CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
821
								CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
822
								CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
823
						})
824
						local boostSpeed = 250
825
						local efx = Instance.new("Sound",c.Head)
826
						efx.SoundId = "rbxassetid://200632875"
827
						efx.Pitch = math.random(1100,1300)/1000
828
						efx.Volume = .5
829
						efx:Play()
830
						spawn(function()
831
								wait(5)
832
								efx:Destroy()
833
						end)
834
						vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
835
						vel.P = 1e3
836
						vel.MaxForce = Vector3.new(math.huge,0,math.huge)
837
						wait(.15)
838
						vel.P = 1000
839
						vel.MaxForce = Vector3.new(3000,0,3000)
840
						vel.Velocity = Vector3.new()
841
						wait(.3)
842
						setLerp(.3)
843
						setJointCFrames({
844
								CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
845
								CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
846
								CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
847
								CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
848
								CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
849
								CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
850
						})
851
						wait(.2)
852
						vel:Destroy()
853
						Debounces.damageLevel = 0
854
						Debounces.scalingDamage = false
855
						Debounces.isBoosting = false
856
				end
857
		end)
858
859
		uinps.InputBegan:connect(function(InputObject)
860
				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
861
						Debounces.isBoosting = true
862
						Debounces.damageLevel = 10
863
						Debounces.scalingDamage = true
864
						local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
865
						setLerp(.15)
866
						setJointCFrames({
867
								CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
868
								CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
869
								CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
870-
										rayPart.BrickColor = BrickColor.new"Royal purple"
870+
871
								CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
872
								CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
873
						})
874
						local boostSpeed = 150
875
						local boostSpeed = 250
876
						local efx = Instance.new("Sound",c.Head)
877
						efx.SoundId = "rbxassetid://200632875"
878
						efx.Pitch = math.random(1100,1300)/1000
879
						efx.Volume = .5
880
						efx:Play()
881
						spawn(function()
882
								wait(5)
883
								efx:Destroy()
884
						end)
885
						vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
886
						vel.P = 1e3
887
						vel.MaxForce = Vector3.new(math.huge,0,math.huge)
888
						wait(.15)
889
						vel.P = 1000
890
						vel.MaxForce = Vector3.new(3000,0,3000)
891
						vel.Velocity = Vector3.new()
892
						wait(.3)
893
						setLerp(.3)
894
						setJointCFrames({
895
								CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
896
								CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
897
								CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
898
								CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
899
								CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
900
								CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
901
						})
902
						wait(.2)
903
						vel:Destroy()
904
						Debounces.damageLevel = 0
905
						Debounces.scalingDamage = false
906
						Debounces.isBoosting = false
907
				end
908
		end)
909
910
		uinps.InputBegan:connect(function(InputObject)
911
				if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false and not Tired.d then
912
						local isLooping = true
913
						uinps.InputEnded:connect(function(InputObject2)
914
								if InputObject2.KeyCode == Enum.KeyCode.Q then
915
										isLooping = false
916
								end
917
						end)
918
						while not Tired.d do
919
								if isLooping == false then
920
										break
921
								end
922
								Debounces.attackNumber = Debounces.attackNumber + 1
923
								local aimPos = mouse.Hit.p
924
								local head = Instance.new("Part",c)
925
								head.Size = Vector3.new(12,.2,12)
926
								head.CanCollide = false
927
								head.Anchored = true
928
								head.Transparency = 1
929-
								rayPart.BrickColor = BrickColor.new"Royal purple"
929+
930
					   			mesh.Scale=Vector3.new(.05,.05,.05)
931
								local decal = Instance.new("Decal",head)
932
								decal.Texture = "rbxassetid://441975828"
933
								if Debounces.attackNumber%2 == 1 then
934
										head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
935
								else
936
										head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
937
								end head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
938
								spawn(function()
939
										local timer = 0
940
										while rs.RenderStepped:wait() do
941
												if timer >= 1.55 then
942
														break
943
												end
944
												head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10)
945
												timer = timer + 1/30/(Debounces.FPS/60)
946
										end
947
										head.CFrame = CFrame.new(head.CFrame.p,aimPos)
948
										local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
949
										local hit, pos = workspace:FindPartOnRay(ray,c)
950
										local dis = (head.CFrame.p - pos).magnitude
951
										local rayPart = Instance.new("Part",rayModel)
952
										rayPart.Material = "Neon"
953
										rayPart.FormFactor = "Custom"
954
										rayPart.BrickColor = BrickColor.new"Really black"
955
										rayPart.Anchored = true
956
										rayPart.CanCollide = false
957
										rayPart.Size = Vector3.new(7,7,dis + 400)
958
										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)
959
										rayPart.CFrame = rayCFrame
960
										head:Destroy()
961
								end)
962
								wait()
963
								local s = Instance.new("Sound",head)
964
								s.Volume = 1
965
								s.SoundId = "rbxassetid://332223043"
966
								s:Play()
967
								wait(.04)
968
								Tired.n=Tired.n+2
969
						end
970
				end
971
		end)
972
973
		uinps.InputBegan:connect(function(InputObj)
974
				if InputObj.KeyCode == Enum.KeyCode.E and not Debounces.isAttacking and not Debounces.isSprinting and Debounces.isPassive and not Debounces.isTyping and not Tired.d then
975
						Debounces.isAttacking = true
976
						local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
977
						local head = Instance.new("Part",c)
978
						head.Size = Vector3.new(18,.2,18)
979
						head.CanCollide = false
980
						head.Anchored = true
981
						head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
982
						head.Transparency = 1 head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
983
						local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
984
						mesh.Scale=Vector3.new(.1,.1,.1)
985
						local decal = Instance.new("Decal",head)
986
						decal.Texture = "rbxassetid://441975828"
987
						setLerp(.1)
988
						setJointCFrames({
989
								CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
990
								CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
991
								CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
992
								CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
993
								CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
994
								CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
995
						})
996
						spawn(function()
997
								local timer = 0
998
								while rs.RenderStepped:wait() do
999
										if timer >= 1.55/.8 then
1000
												break
1001
										end
1002
										head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10)
1003
										timer = timer + 1/30/(Debounces.FPS/60)
1004
								end
1005
								head.CFrame = CFrame.new(head.CFrame.p,aimPos)
1006
								local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
1007
								local hit, pos = workspace:FindPartOnRay(ray,c)
1008
								local dis = (head.CFrame.p - pos).magnitude
1009
								local rayPart = Instance.new("Part",rayModel)
1010
								rayPart.Material = "Neon"
1011
								rayPart.FormFactor = "Custom"
1012
								rayPart.Name = "Punch"
1013
								rayPart.BrickColor = BrickColor.new"Really black"
1014
								rayPart.Anchored = true
1015
								rayPart.CanCollide = false
1016
								rayPart.Size = Vector3.new(28,28,dis + 400)
1017
								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)
1018
								rayPart.CFrame = rayCFrame
1019
								head:Destroy()
1020
						end)
1021
						wait()
1022
						local s = Instance.new("Sound",head)
1023
						s.Volume = 1
1024
						s.SoundId = "rbxassetid://332223043"
1025
						s.Pitch = .8
1026
						s:Play()
1027
						wait(.75)
1028
						setLerp(.17)
1029
						setJointCFrames({
1030
								CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
1031
								CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
1032
								CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
1033
								CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
1034
								CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
1035
								CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
1036
						})
1037
						Tired.n=Tired.n+15
1038
						wait(.5)
1039
						Debounces.isAttacking = false
1040
				end
1041
		end)
1042
		
1043
		reflect = function(d,n)
1044
				local i, n = -1 * d.unit, n.unit
1045
				local dot = n:Dot(i)
1046
				return 2*dot*n - i
1047
		end
1048
1049
		makeReflectionBeam = function(pos,look,isCrit)
1050
				local ray = Ray.new(pos,look)
1051
				local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
1052
				local e = Instance.new("Part",rayModel)
1053
				e.Anchored = true
1054
				e.CanCollide = false
1055
				e.BrickColor = BrickColor.new("Bright violet")
1056
				e.Material = "Neon"
1057
				e.FormFactor = "Custom"
1058
				e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
1059
				if isCrit == true then
1060
						e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
1061
						e.Name = "Punch"
1062
				end
1063
				e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
1064
				local e = Instance.new("Sound",c)
1065
				if isCrit == true then
1066
						e.Volume = .5
1067
				else
1068
						e.Volume = .3
1069
						e.Pitch = 1.5
1070
				end
1071
				e.SoundId = "rbxassetid://200632875"
1072
				e:Play()
1073
				spawn(function()
1074
						wait(6)
1075
						e:Destroy()
1076
				end)
1077
				wait(.05)
1078
				if hit ~= nil then
1079
						newDir = reflect(look.unit,norm,isCrit)
1080
						makeReflectionBeam(hitpos,newDir * 999,isCrit)
1081
				end
1082
		end
1083
1084
		uinps.InputBegan:connect(function(InputObject)
1085
				if InputObject.KeyCode == Enum.KeyCode.Q and not Debounces.isAttacking and Debounces.isSprinting and Debounces.isPassive and not Debounces.isTyping and not Tired.d then
1086
						local isLooping = true
1087
						uinps.InputEnded:connect(function(InputObject2)
1088
								if InputObject2.KeyCode == Enum.KeyCode.Q then
1089
										isLooping = false
1090
								end
1091
						end)
1092
						while not Tired.d do
1093
								if isLooping == false then
1094
										break
1095
								end
1096
								Debounces.attackNumber = Debounces.attackNumber + 1
1097
								local aimPos = mouse.Hit.p
1098
								local head = Instance.new("Part",c)
1099
								head.Size = Vector3.new(12,.2,12)
1100
								head.CanCollide = false
1101
								head.Anchored = true
1102
								head.Transparency=1
1103
								local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
1104
					  		 	mesh.Scale=Vector3.new(.05,.05,.05)
1105
								local decal = Instance.new("Decal",head)
1106
								decal.Texture = "rbxassetid://441975828"
1107
								
1108
								if Debounces.attackNumber%2 == 1 then
1109
										head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
1110
								else
1111
										head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
1112
								end
1113
								head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
1114
								spawn(function()
1115
										local timer = 0
1116
										while rs.RenderStepped:wait() do
1117
												if timer >= 1.55 then
1118
														break
1119
												end
1120
												head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10)
1121
												timer = timer + 1/30/(Debounces.FPS/60)
1122
										end
1123
										head.CFrame = CFrame.new(head.CFrame.p,aimPos)
1124
										head:Destroy()
1125
										makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)		
1126
								end)
1127
								
1128
								wait()
1129
								local s = Instance.new("Sound",head)
1130
								s.Volume = 1
1131
								s.SoundId = "rbxassetid://332223043"
1132
								s.Pitch = 1.02
1133
								s:Play()
1134
								Tired.n=Tired.n+15
1135
								wait(.2)
1136
						end
1137
				end
1138
		end)
1139
1140
		uinps.InputBegan:connect(function(InputObj)
1141
				if InputObj.KeyCode == Enum.KeyCode.E and not Debounces.isAttacking and Debounces.isSprinting and Debounces.isPassive and not Debounces.isTyping and not Tired.d then
1142
						Debounces.isAttacking = true
1143
						local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
1144
						local head = Instance.new("Part",c)
1145
						head.Size = Vector3.new(18,.2,18)
1146
						head.CanCollide = false
1147
						head.Anchored = true
1148
						head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
1149
						head.Transparency = 1
1150
						local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
1151
					   	mesh.Scale=Vector3.new(.1,.1,.1)
1152
						local decal = Instance.new("Decal",head)
1153
						decal.Texture = "rbxassetid://441975828"
1154
						head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
1155
						setLerp(.1)
1156
						setJointCFrames({
1157
								CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
1158
								CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
1159
								CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
1160
								CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
1161
								CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
1162
								CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
1163
						})
1164
						spawn(function()
1165
								local timer = 0
1166
								while rs.RenderStepped:wait() do
1167
										if timer >= 1.55/.8 then
1168
												break
1169
										end
1170
										head.CFrame = head.CFrame --* CFrame.new(0,0,-timer/10)
1171
										timer = timer + 1/30/(Debounces.FPS/60)
1172
								end
1173
								head.CFrame = CFrame.new(head.CFrame.p,aimPos)
1174
								head:Destroy()
1175
								makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
1176
						end)
1177
						wait()
1178
						local s = Instance.new("Sound",head)
1179
						s.Volume = 2
1180
						s.SoundId = "rbxassetid://332223043"
1181
						s.Pitch = .8
1182
						s:Play()
1183
						wait(.75)
1184
						setLerp(.17)
1185
						setJointCFrames({
1186
								CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
1187
								CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
1188
								CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
1189
								CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
1190
								CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
1191
								CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
1192
						})
1193
						Tired.n=Tired.n+30
1194
						wait(.5)
1195
						Debounces.isAttacking = false
1196
				end
1197
		end)
1198
1199
		uinps.InputBegan:connect(function(InputObj)
1200
				if InputObj.KeyCode == Enum.KeyCode.Slash then
1201
						local finishEvent = nil
1202
						Debounces.isTyping = true
1203
						finishEvent = uinps.InputBegan:connect(function(InputObj)
1204
								if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
1205
										Debounces.isTyping = false
1206
										finishEvent:disconnect()
1207
								end
1208
						end)
1209
				end
1210
		end)
1211
1212
		uinps.InputBegan:connect(function(InputObj)
1213
				if InputObj.KeyCode == Enum.KeyCode.LeftShift then
1214
						Debounces.isSprinting = true
1215
				end
1216
		end)
1217
1218
		uinps.InputEnded:connect(function(InputObj)
1219
				if InputObj.KeyCode == Enum.KeyCode.LeftShift then
1220
						Debounces.isSprinting = false
1221
				end
1222
		end)
1223
		uinps.InputBegan:connect(function(InputObj)
1224
			
1225
		end)
1226
1227
		rs.RenderStepped:connect(function()
1228
				Debounces.FPS = 1/rs.RenderStepped:wait()
1229
				local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
1230
				if Debounces.isPassive == false then
1231
						fire.Enabled = false
1232
						light.Range = 0
1233
						fight:Pause()
1234
						sans:Resume()
1235
						efxBlock.Transparency = 1
1236
				else
1237
						fire.Enabled = true
1238
						light.Range = 10
1239
						fight:Resume()
1240
						sans:Pause()
1241
						efxBlock.Transparency = 0
1242
				end local tD=3
1243
				for i,v in pairs (rayModel:children()) do
1244
						if v.Transparency >= 1 then
1245
								v:Destroy()
1246
						else
1247
								v.CanCollide = true
1248
								local parts = v:GetTouchingParts()
1249
								v.CanCollide = false
1250
								for i = 1,#parts do
1251
										if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
1252
												RiseLevel(parts[i].Parent.Humanoid,.5/(Debounces.FPS/60))parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
1253
										elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
1254
											   RiseLevel(parts[i].Parent.Humanoid,3.1/(Debounces.FPS/60))parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
1255
										end
1256
								end
1257
								v.Size = v.Size / Vector3.new(1+(v.Transparency/tD),1+(v.Transparency/tD),1)--- Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
1258
								v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
1259
						end
1260
				end
1261
				for i = 1,#Joints do
1262
						Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
1263
				end
1264
				local sineval = math.sin(tick() * 2) * 3
1265
				fire.Acceleration = Vector3.new(sineval,1,sineval)
1266
				light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
1267
		end)