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