View difference between Paste ID: EZr54Uqy and k3dLYhRc
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
14
15
local Level=10000
16
local function RiseLevel(hum,dmg)
17
if tonumber(Level)then
18
if hum.Health>0 and hum.Health-dmg<=0 then Level=Level+10000001
19
local s=Instance.new("Sound")end--s. end
20
else warn'String is not able to level up , or having issure to level.'end
21
end
22
23
local Tired={n=0,m=100000000,d=false}local DefAble=true
24
local p = game:service'Players'.LocalPlayer
25
local char = p.Character
26
local mouse = p:GetMouse()
27
local larm = char["Left Arm"]
28
local rarm = char["Right Arm"]
29
local lleg = char["Left Leg"]
30
local rleg = char["Right Leg"]
31
local hed = char.Head
32
local Torso = char.Torso
33
local hum = char.Humanoid
34
local cam = workspace.CurrentCamera
35
local root = char.HumanoidRootPart
36
local deb = false
37
local shot = 0
38
local potential = false
39
local debris=game:service"Debris"
40
local l = game:GetService("Lighting")
41
local rs = game:GetService("RunService").RenderStepped
42
ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
43
math.randomseed(os.time())
44
for i,v in pairs(char:children()) do
45
	if v:IsA("Accessory") then
46
		v:Destroy()
47
	end
48
end
49
for i,v in pairs (hed:GetChildren()) do
50
		if v:IsA("Sound") then
51
				v:Destroy()
52
		end
53
end
54
music = Instance.new("Sound",c)
55
music2 = Instance.new("Sound",c)
56
local pl = game:service'Players'.LocalPlayer
57
local chara = pl.Character
58
local hum = chara:FindFirstChildOfClass("Humanoid")
59
hum.MaxHealth = 10000000000000000000
60
hum.Health = 10000000000000000000
61
maincol = "White"
62
increment = 20
63
if 1 then
64
	local MovesGui=Instance.new("ScreenGui",p:FindFirstChildOfClass("PlayerGui"))
65
	local Frm=Instance.new("Frame",MovesGui)Frm.BackgroundColor3=Color3.new()Frm.BorderSizePixel=0
66
	Frm.BackgroundTransparency=.5 Frm.Size=UDim2.new(.3,0,.5,0)local Show=true Frm.Position=UDim2.new(.7,0,.5,0)
67
	local idk=Instance.new("TextButton",Frm)idk.Size=UDim2.new(.5,0,.1,0)idk.Position=UDim2.new(-.5,0,.8,0)
68
	idk.Text="Hide"idk.TextStrokeTransparency=0 idk.BackgroundTransparency=.5 idk.BackgroundColor3=Color3.new()
69
	idk.BorderSizePixel=0 idk.TextColor3=Color3.new(1,1,1)
70
	idk.MouseButton1Click:connect(function()Show=not Show idk.Text=Show and "Hide"or"Show"end)
71
	local normal=Instance.new("TextLabel",Frm)normal.Size=UDim2.new(1,0,1,0)normal.TextStrokeTransparency=0
72
	normal.BackgroundTransparency=1 normal.TextColor3=Color3.new(1,1,1)
73
	normal.TextXAlignment="Left"normal.TextYAlignment="Top"
74
	normal.Text=[[* Able to hold
75
! It changes function when sprint
76
----------------------------------
77
K: Passive
78
!*Q :Gaster Blaster (quick)
79
! E  :Gaster Blaster (high damage)
80
T  :Teleport
81
F  :Bone Zone
82
*G :Bone Throw
83
*C :Heart Control
84
Shift : Sprint
85
Demon
86
Welcome To DEMON PROGR1717
87
Script By Progr1717
88
Made By PowerSans1234
89
PowerSans1234 Helping For Edit Script :)
90
]]
91
	spawn(function()
92
	while game:service'RunService'.RenderStepped:wait()do
93
		Frm.Position=Frm.Position:lerp(UDim2.new(not Show and 1 or .7,0,.5,0),.1)
94
	end end)
95
end
96
--------------------------------------------------------
97
hed.face.Texture = "rbxassetid://871052201"
98
chara:WaitForChild"Body Colors"
99
char["Body Colors"].HeadColor = BrickColor.new("Institutional white")
100
char["Body Colors"].LeftArmColor = BrickColor.new("Institutional white")
101
char["Body Colors"].RightArmColor = BrickColor.new("Institutional white")
102
char["Body Colors"].TorsoColor = BrickColor.new("Institutional white")
103-
char["Body Colors"].RightLegColor = BrickColor.new("Really black")
103+
char["Body Colors"].RightLegColor = BrickColor.new("Institutional white")
104-
char["Body Colors"].LeftLegColor = BrickColor.new("Really black")
104+
char["Body Colors"].LeftLegColor = BrickColor.new("Institutional white")
105
---------------------------------------
106
ypcall(function()
107
shirt = Instance.new("Shirt", char)
108
shirt.Name = "Shirt"
109
pants = Instance.new("Pants", char)
110
pants.Name = "Pants"
111
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=803858643"
112
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=343128365"
113
end)
114
--------------------------------------------------------		
115
KG = Instance.new("Sound", game.Players.LocalPlayer.Character)
116
KG.Volume = 7
117
KG.SoundId = "rbxassetid://1245233521"
118
KG.Looped = true
119
KG:Play()
120
121
--------------------------------------------------------
122
CV="Eggplant"
123
	p = game.Players.LocalPlayer
124
	char = p.Character
125
	local txt = Instance.new("BillboardGui", char)
126
	txt.Adornee = char .Head
127
	txt.Name = "_status"
128
	txt.Size = UDim2.new(2, 0, 1.2, 0)
129
	txt.StudsOffset = Vector3.new(-9, 8, 0)
130
	local text = Instance.new("TextLabel", txt)
131
	text.Size = UDim2.new(10, 0, 7, 0)
132
	text.FontSize = "Size24"
133
	text.TextScaled = true
134
	text.TextTransparency = 0
135
	text.BackgroundTransparency = 1 
136
	text.TextTransparency = 0
137
	text.TextStrokeTransparency = 0
138
	text.Font = "Arcade"
139
	text.TextStrokeColor3 = Color3.new(255,255,255)
140
141
	v=Instance.new("Part")
142
	v.Name = "ColorBrick"
143
	v.Parent=p.Character
144
	v.FormFactor="Symmetric"
145
	v.Anchored=true
146
	v.CanCollide=false
147
	v.BottomSurface="Smooth"
148
	v.TopSurface="Smooth"
149
	v.Size=Vector3.new(10,5,3)
150
	v.Transparency=1
151
	v.CFrame=char.Torso.CFrame
152
	v.BrickColor=BrickColor.new(CV)
153
	v.Transparency=1
154
	text.TextColor3 = Color3.new(255,0,0)
155
	v.Shape="Block"
156
	wait()
157
	text.Text = "Kid Listen I know im a demon but im not gonna let you kill"
158
	wait(5)
159
	text.Text = "TIME TO DIE!";
160
		wait(3)
161
		text.TextColor3 = Color3.new(255,0,0)  
162-
		spawn(function()while wait()do text.Text = "Demon Progr1717 LV"..tostring(Level)end end)
162+
		spawn(function()while wait()do text.Text = "Demon SSZombi LV"..tostring(Level)end end)
163
		hed.face.Texture = "rbxassetid://871052201"
164
--------------------------------------------------------  
165
		pls = game:GetService'Players'
166
		rs = game:GetService'RunService'
167
		uinps = game:GetService'UserInputService'
168
		lp = pls.LocalPlayer
169
		mouse = lp:GetMouse()
170
		c = lp.Character
171
		human = c.Humanoid
172
		human.MaxHealth = 1/0
173
		wait()
174
		human.Health = 0/0
175
		c.Health:Destroy()
176
--------------------------------------------------------
177
		Hulmet = Instance.new("Part")
178
		Hulmet.Position = Hulmet.Position + Vector3.new(0,10,0)
179
		Hulmet.Parent = game.Players.LocalPlayer.Character
180
		Hulmet.Name = "Helmet"
181
		Hulmet.Size = Vector3.new(1.643, 1.157, 1.696)
182
		Hulmet.Material = Enum.Material.Metal
183
		Hulmet.BrickColor = BrickColor.new("Black")
184
		MSHE = Instance.new("SpecialMesh")
185
		MSHE.Parent = Hulmet
186
		MSHE.MeshId = "rbxassetid://101203373"
187
		WULD = Instance.new("Weld")
188
		WULD.Parent = Hulmet
189
		WULD.Part0 = Hulmet
190
		WULD.Part1 = game.Players.LocalPlayer.Character.Head
191
		WULD.C1 = CFrame.Angles(0,0,0)
192
		WULD.C0 = CFrame.new(0,0,0)
193
--------------------------------------------------------
194
        Debounces = {
195
				AnimationCycles = 0;
196
				FPS = 0;
197
				scalingDamage = false;
198
				damageLevel = 0;
199
				attackNumber = 0;
200
				isAttacking = false;
201
				isMoving = false;
202
				isSprinting = false;
203
				isBoosting = false;
204
				isPassive = false;
205
				isTyping = false;
206
		}
207
208
--------------------------------------------------------
209
210
		numLerp = function(start, goal, alpha)
211
				return(((goal - start) * alpha) + start)
212
		end
213
214
		CFrameZero = function()
215
				return CFrame.new(Vector3.new())
216
		end
217
218
		rad = function(value)
219
				return math.rad(value)
220
		end
221
222
		CFAngles = function(Vector)
223
				return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
224
		end
225
226
--------------------------------------------------------
227
228
		AnimStat = {
229
				lerpSpeed = .2;
230
				lerpSpeed2 = .35;
231
				lerpTween = 0;
232
		}
233
234
		Joints = {
235
				c.HumanoidRootPart.RootJoint;
236
				c.Torso.Neck;
237
				c.Torso['Left Shoulder'];
238
				c.Torso['Right Shoulder'];
239
				c.Torso['Left Hip'];
240
				c.Torso['Right Hip'];
241
		}
242
243
		JointTargets = {
244
				CFrameZero();
245
				CFrameZero();
246
				CFrameZero();
247
				CFrameZero();
248
				CFrameZero();
249
				CFrameZero();
250
		}
251
252
--------------------------------------------------------
253
254
		BodyColors = {
255
				HeadColor = BrickColor.new("Really black");
256
				LeftArmColor = BrickColor.new("Really black");
257
				RightArmColor = BrickColor.new("Really black");
258
				LeftLegColor = BrickColor.new("Really black");
259
				RightLegColor = BrickColor.new("Really black");
260
				TorsoColor = BrickColor.new("Really black");
261
		}
262
263
		Customs = {
264
				Face = "http://www.roblox.com/asset/?id=871052201";
265
				Shirt = "http://www.roblox.com/asset/?id=357134155";
266
				Pants = "http://www.roblox.com/asset/?id=343128366";
267
		}
268
269
--------------------------------------------------------
270
271
		prepareCharacter = function()
272
				local transPoints = {
273
						NumberSequenceKeypoint.new(0,.819,.0375),
274
						NumberSequenceKeypoint.new(.207,.594,.0187),
275
						NumberSequenceKeypoint.new(.4,.55,.031),
276
						NumberSequenceKeypoint.new(.57,.619,.05),
277
						NumberSequenceKeypoint.new(.76,.8,.0375),
278
						NumberSequenceKeypoint.new(1,1,0),
279
				}
280
				local sizePoints = {
281
						NumberSequenceKeypoint.new(0,.687,0),
282
						NumberSequenceKeypoint.new(.111,.875,0),
283
						NumberSequenceKeypoint.new(.327,1.19,0),
284
						NumberSequenceKeypoint.new(.646,1.56,0),
285
						NumberSequenceKeypoint.new(.805,1.37,0),
286
						NumberSequenceKeypoint.new(.905,1.06,0),
287
						NumberSequenceKeypoint.new(.968,.938,0),
288
						NumberSequenceKeypoint.new(.984,1.13,0),
289
						NumberSequenceKeypoint.new(1,1.62,0),
290
				}
291
				local Size = NumberSequence.new(sizePoints)
292
				local Transparency = NumberSequence.new(transPoints)
293
				rayModel = Instance.new("Model",c)
294
				efcModel = Instance.new("Model",c)
295
				efxBlock = Instance.new("Part",c)
296
				efxBlock.BrickColor = BrickColor.new("Really black")
297
				efxBlock.Material = "Neon"
298
				efxBlock.FormFactor = "Custom"
299
				efxBlock.Transparency = .3
300
               
301
  
302
				efxBlock.Size = Vector3.new(.0,.0,.0)
303
				local mesh = Instance.new("SpecialMesh",efxBlock)
304
				mesh.MeshType = Enum.MeshType.Sphere
305
				mesh.Scale = Vector3.new(0,0,0)
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(0,0,0))
312
				particles.Size = Size
313
				particles.Name = "Fire"
314
				particles.Transparency = Transparency
315
				particles.LockedToPart = true
316
				particles.VelocityInheritance = .5
317
				particles.LockedToPart = true
318
				particles.Rate = 200
319
				particles.Texture = "rbxassetid://594656663"
320
				particles.Lifetime = NumberRange.new(1,1)
321
				particles.RotSpeed = NumberRange.new(100,100)
322
				particles.Speed = NumberRange.new(7,7)
323
				script.Parent = efxBlock
324
				fire = particles
325
				local offset = Vector3.new(-0.11, .23, -0.5)
326
				local weld = Instance.new("Weld",c.Head)
327
				weld.Part0 = c.Head
328
				weld.Part1 = efxBlock
329
				weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
330
				efxBlock.Parent = c
331
				music.SoundId = "rbxassetid://316012176"
332
				music.Looped = true
333
				music.Volume = 0
334
				fight = music
335
				music2.SoundId = "rbxassetid://316014309"
336
				music2.Looped = true
337
				music2.Volume = 0
338
				sans = music2
339
				pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
340
				pointGyro.P = 1e7
341
				pointGyro.D = 1e3
342
				pointGyro.MaxTorque = Vector3.new(0,1e7,0)
343
				animator = c.Humanoid:FindFirstChild("Animator")
344
				if animator then
345
						animator:Destroy()
346
				end
347
				c.Torso.roblox:Destroy()
348
				for i,v in pairs (c.Head:children()) do
349
						if v.ClassName == "Sound" then
350
								v:Destroy()
351
						end
352
				end
353
				for i = 1,#Joints do
354
						Joints[i].C1 = CFrame.new(Vector3.new())
355
				end
356
				human.WalkSpeed = 0
357
				human.JumpPower = 0
358
		end
359
360
		uinps.InputBegan:connect(function(InputObject)
361
				if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
362
						Debounces.isPassive = not Debounces.isPassive
363
				end
364
		end)
365
366
		setJointCFrames = function(table)
367
				for i = 1,#table do
368
						JointTargets[i] = table[i]
369
				end
370
				AnimationCycles = 0
371
		end
372
373
		setLerp = function(speed)
374
				AnimStat.lerpSpeed = speed
375
		end
376
377
		setTween = function(tween)
378
				AnimStat.lerpTween = tween
379
		end
380
381
		takeDamage = function(position,damage,distance,platformStand)
382
				for i,v in pairs (pls:children()) do
383
						if v.ClassName == "Player" and v:FindFirstChild("Character") then
384
								local torso = v.Character:FindFirstChild("Torso")
385
								if torso and (torso.Position - position).magnitude < distance then
386
										RiseLevel(v.Character.Humanoid,damage)
387
										v.Character.Humanoid:TakeDamage(damage)
388
										if platformStand == true then
389
												v.Character.PlatformStand = platformStand
390
										end
391
								end
392
						end
393
				end
394
		end
395
396
--------------------------------------------------------
397
398
		prepareCharacter()
399
400
--------------------------------------------------------
401
		hldng={}Player=p
402
function chatfunc(text)
403
spawn(function()local function lerp(a,b,t)return a*(1-t)+(b*t)end
404
	local rs=game:service'RunService'.RenderStepped
405
	local function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end
406
	local Character=game:service'Players'.LocalPlayer.Character local RootPart=Character.HumanoidRootPart
407
	local se=Instance.new("Sound",root)se.Volume=5 se.SoundId="rbxassetid://417445954"
408
	if Character:FindFirstChild("cht")then Character.cht:Destroy()end
409
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 = 25
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(12,0,0)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(12,0,0)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 = 400
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 = 350
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 = 30
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 = 400
797
						local boostSpeed = 400
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
								Color3.new(100,100,0)
856
								if Debounces.attackNumber%2 == 1 then
857
										head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
858
								else
859
										head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
860
								end head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
861
								spawn(function()
862
										local timer = 0
863
										while rs.RenderStepped:wait() do
864
												if timer >= 1.55 then
865
														break
866
												end
867
												head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10)
868
												timer = timer + 1/30/(Debounces.FPS/60)
869
										end
870
										head.CFrame = CFrame.new(head.CFrame.p,aimPos)
871
										local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
872
										local hit, pos = workspace:FindPartOnRay(ray,c)
873
										local dis = (head.CFrame.p - pos).magnitude
874
										local rayPart = Instance.new("Part",rayModel)
875
										rayPart.Material = "Neon"
876
										rayPart.FormFactor = "Custom"
877
										rayPart.BrickColor = BrickColor.new"Really red"
878
										rayPart.Anchored = true
879
										rayPart.CanCollide = false
880
										rayPart.Size = Vector3.new(7,7,dis + 400)
881
										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)
882
										rayPart.CFrame = rayCFrame
883
										head:Destroy()
884
								end)
885
								wait()
886
								local s = Instance.new("Sound",head)
887
								s.Volume = 1
888
								s.SoundId = "rbxassetid://332223043"
889
								s:Play()
890
								wait(.04)
891
								Tired.n=Tired.n+2
892
						end
893
				end
894
		end)
895
896
		uinps.InputBegan:connect(function(InputObj)
897
				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
898
						Debounces.isAttacking = true
899
						local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
900
						local head = Instance.new("Part",c)
901
						head.Size = Vector3.new(18,.2,18)
902
						head.CanCollide = false
903
						head.Anchored = true
904
						head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
905
						head.Transparency = 1 head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
906
						local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
907
						mesh.Scale=Vector3.new(.1,.1,.1)
908
						local decal = Instance.new("Decal",head)
909
						decal.Texture = "rbxassetid://441975828"
910
						setLerp(.1)
911
						setJointCFrames({
912
								CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
913
								CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
914
								CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
915
								CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
916
								CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
917
								CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
918
						})
919
						spawn(function()
920
								local timer = 0
921
								while rs.RenderStepped:wait() do
922
										if timer >= 1.55/.8 then
923
												break
924
										end
925
										head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10)
926
										timer = timer + 1/30/(Debounces.FPS/60)
927
								end
928
								head.CFrame = CFrame.new(head.CFrame.p,aimPos)
929
								local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
930
								local hit, pos = workspace:FindPartOnRay(ray,c)
931
								local dis = (head.CFrame.p - pos).magnitude
932
								local rayPart = Instance.new("Part",rayModel)
933
								rayPart.Material = "Neon"
934
								rayPart.FormFactor = "Custom"
935
								rayPart.Name = "Punch"
936
								rayPart.BrickColor = BrickColor.new"Really red"
937
								rayPart.Anchored = true
938
								rayPart.CanCollide = false
939
								rayPart.Size = Vector3.new(28,28,dis + 400)
940
								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)
941
								rayPart.CFrame = rayCFrame
942
								head:Destroy()
943
						end)
944
						wait()
945
						local s = Instance.new("Sound",head)
946
						s.Volume = 1
947
						s.SoundId = "rbxassetid://332223043"
948
						s.Pitch = .8
949
						s:Play()
950
						wait(.75)
951
						setLerp(.17)
952
						setJointCFrames({
953
								CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
954
								CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
955
								CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
956
								CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
957
								CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
958
								CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
959
						})
960
						Tired.n=Tired.n+15
961
						wait(.5)
962
						Debounces.isAttacking = false
963
				end
964
		end)
965
		
966
		reflect = function(d,n)
967
				local i, n = -1 * d.unit, n.unit
968
				local dot = n:Dot(i)
969
				return 2*dot*n - i
970
		end
971
972
		makeReflectionBeam = function(pos,look,isCrit)
973
				local ray = Ray.new(pos,look)
974
				local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
975
				local e = Instance.new("Part",rayModel)
976
				e.Anchored = true
977
				e.CanCollide = false
978
				e.BrickColor = BrickColor.new("Really red")
979
				e.Material = "Neon"
980
				e.FormFactor = "Custom"
981
				e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
982
				if isCrit == true then
983
						e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
984
						e.Name = "Punch"
985
				end
986
				e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
987
				local e = Instance.new("Sound",c)
988
				if isCrit == true then
989
						e.Volume = .5
990
				else
991
						e.Volume = .3
992
						e.Pitch = 1.5
993
				end
994
				e.SoundId = "rbxassetid://200632875"
995
				e:Play()
996
				spawn(function()
997
						wait(6)
998
						e:Destroy()
999
				end)
1000
				wait(.05)
1001
				if hit ~= nil then
1002
						newDir = reflect(look.unit,norm,isCrit)
1003
						makeReflectionBeam(hitpos,newDir * 999,isCrit)
1004
				end
1005
		end
1006
1007
		uinps.InputBegan:connect(function(InputObject)
1008
				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
1009
						local isLooping = true
1010
						uinps.InputEnded:connect(function(InputObject2)
1011
								if InputObject2.KeyCode == Enum.KeyCode.Q then
1012
										isLooping = false
1013
								end
1014
						end)
1015
						while not Tired.d do
1016
								if isLooping == false then
1017
										break
1018
								end
1019
								Debounces.attackNumber = Debounces.attackNumber + 1
1020
								local aimPos = mouse.Hit.p
1021
								local head = Instance.new("Part",c)
1022
								head.Size = Vector3.new(12,.2,12)
1023
								head.CanCollide = false
1024
1025
								head.Anchored = true
1026
								head.Transparency=1
1027
								local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
1028
					  		 	mesh.Scale=Vector3.new(.05,.05,.05)
1029
								local decal = Instance.new("Decal",head)
1030
								decal.Texture = "rbxassetid://431908407"
1031
								
1032
								
1033
								if Debounces.attackNumber%2 == 1 then
1034
										head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
1035
								else
1036
										head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
1037
								end
1038
								head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
1039
								spawn(function()
1040
										local timer = 0
1041
										while rs.RenderStepped:wait() do
1042
												if timer >= 1.55 then
1043
														break
1044
												end
1045
												head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10)
1046
												timer = timer + 1/30/(Debounces.FPS/60)
1047
										end
1048
										head.CFrame = CFrame.new(head.CFrame.p,aimPos)
1049
										head:Destroy()
1050
										makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)		
1051
								end)
1052
								
1053
								wait()
1054
								local s = Instance.new("Sound",head)
1055
								s.Volume = 1
1056
								s.SoundId = "rbxassetid://332223043"
1057
								s.Pitch = 1.02
1058
								s:Play()
1059
								Tired.n=Tired.n+15
1060
								wait(.2)
1061
						end
1062
				end
1063
		end)
1064
1065
		uinps.InputBegan:connect(function(InputObj)
1066
				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
1067
						Debounces.isAttacking = true
1068
						local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
1069
						local head = Instance.new("Part",c)
1070
						head.Size = Vector3.new(18,.2,18)
1071
						head.CanCollide = false
1072
						head.Anchored = true
1073
						head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
1074
						head.Transparency = 1
1075
						local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
1076
					   	mesh.Scale=Vector3.new(.1,.1,.1)
1077
						local decal = Instance.new("Decal",head)
1078
						decal.Texture = "rbxassetid://441975828"
1079
						head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
1080
						setLerp(.1)
1081
						setJointCFrames({
1082
								CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
1083
								CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
1084
								CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
1085
								CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
1086
								CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
1087
								CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
1088
						})
1089
						spawn(function()
1090
								local timer = 0
1091
								while rs.RenderStepped:wait() do
1092
										if timer >= 1.55/.8 then
1093
												break
1094
										end
1095
										head.CFrame = head.CFrame --* CFrame.new(0,0,-timer/10)
1096
										timer = timer + 1/30/(Debounces.FPS/60)
1097
								end
1098
								head.CFrame = CFrame.new(head.CFrame.p,aimPos)
1099
								head:Destroy()
1100
								makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
1101
						end)
1102
						wait()
1103
						local s = Instance.new("Sound",head)
1104
						s.Volume = 2
1105
						s.SoundId = "rbxassetid://332223043"
1106
						s.Pitch = .8
1107
						s:Play()
1108
						wait(.75)
1109
						setLerp(.17)
1110
						setJointCFrames({
1111
								CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
1112
								CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
1113
								CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
1114
								CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
1115
								CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
1116
								CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
1117
						})
1118
						Tired.n=Tired.n+30
1119
						wait(.5)
1120
						Debounces.isAttacking = false
1121
				end
1122
		end)
1123
1124
		uinps.InputBegan:connect(function(InputObj)
1125
				if InputObj.KeyCode == Enum.KeyCode.Slash then
1126
						local finishEvent = nil
1127
						Debounces.isTyping = true
1128
						finishEvent = uinps.InputBegan:connect(function(InputObj)
1129
								if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
1130
										Debounces.isTyping = false
1131
										finishEvent:disconnect()
1132
								end
1133
						end)
1134
				end
1135
		end)
1136
1137
		uinps.InputBegan:connect(function(InputObj)
1138
				if InputObj.KeyCode == Enum.KeyCode.LeftShift then
1139
						Debounces.isSprinting = true
1140
				end
1141
		end)
1142
1143
		uinps.InputEnded:connect(function(InputObj)
1144
				if InputObj.KeyCode == Enum.KeyCode.LeftShift then
1145
						Debounces.isSprinting = false
1146
				end
1147
		end)
1148
		uinps.InputBegan:connect(function(InputObj)
1149
			
1150
		end)
1151
1152
		rs.RenderStepped:connect(function()
1153
				Debounces.FPS = 1/rs.RenderStepped:wait()
1154
				local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
1155
				if Debounces.isPassive == false then
1156
						fire.Enabled = false
1157
						light.Range = 0
1158
						fight:Pause()
1159
						sans:Resume()
1160
						efxBlock.Transparency = 1
1161
				else
1162
						fire.Enabled = true
1163
						light.Range = 10
1164
						fight:Resume()
1165
						sans:Pause()
1166
						efxBlock.Transparency = 0
1167
				end local tD=3
1168
				for i,v in pairs (rayModel:children()) do
1169
						if v.Transparency >= 1 then
1170
								v:Destroy()
1171
						else
1172
								v.CanCollide = true
1173
								local parts = v:GetTouchingParts()
1174
								v.CanCollide = false
1175
								for i = 1,#parts do
1176
										if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
1177
												RiseLevel(parts[i].Parent.Humanoid,.5/(Debounces.FPS/60))parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
1178
										elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
1179
											   RiseLevel(parts[i].Parent.Humanoid,3.1/(Debounces.FPS/60))parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
1180
										end
1181
								end
1182
								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)
1183
								v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
1184
						end
1185
				end
1186
				for i = 1,#Joints do
1187
						Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
1188
				end
1189
				local sineval = math.sin(tick() * 2) * 3
1190
				fire.Acceleration = Vector3.new(sineval,1,sineval)
1191
				light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
1192
1193
	
1194
1195
1196
1197
		end)