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