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