View difference between Paste ID: XZ2cBuhL and na3NwDj4
SHOW: | | - or go back to the newest paste.
1-
pls=game:GetService'Players';
1+
local ContentProvider = game:GetService("ContentProvider")
2-
rs=game:GetService'RunService';
2+
 
3-
uinps=game:GetService'UserInputService';
3+
local function LoadAssets(AssetList)
4-
lp=pls.LocalPlayer;
4+
	-- Takes an asset list and preloads it. Will not wait for them to load. 
5-
mouse=lp:GetMouse();
5+
 
6-
c=lp.Character;
6+
	for _, AssetId in pairs(AssetList) do
7-
rayModel=Instance.new('Model',c);
7+
		ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. AssetId)
8-
human=c.Humanoid;
8+
	end
9-
Cone=nil;
9+
end 
10-
human.MaxHealth=5000;
10+
 
11-
wait();
11+
LoadAssets({11442510,30956707})
12-
human.Health=5000;
12+
local Gibs = game.Workspace
13-
c.Health:Destroy();
13+
14-
Debounces={
14+
function Kill(Character)
15-
FPS=0;
15+
	Character.Humanoid.Health = 0
16-
isAttacking=false;
16+
	local poo = Instance.new("IntValue",Character)
17-
isMoving=false;
17+
	poo.Name = "haha nope"
18-
isSprinting=false;
18+
	local svch = Character
19-
Debounce=false;
19+
	local hum = Character:findFirstChild("Humanoid")
20-
isTyping=false;
20+
	Character.Archivable = true
21-
isJumping=false;
21+
	local chrclone = Character:clone()
22-
isFlash=false;
22+
	Character.Archivable = false
23-
};
23+
24-
numLerp=function(start,goal,alpha)
24+
	local ch = chrclone:GetChildren()
25-
return(((goal-start)*alpha)+start);
25+
	local i
26-
end;
26+
	for i = 1,#ch do
27-
CFrameZero=function()
27+
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
28-
return CFrame.new(Vector3.new());
28+
			ch[i]:remove()
29-
end;
29+
		end
30-
local function a()
30+
	end
31-
local t=tick();
31+
	local function Scan(ch)
32-
local l=t%1*3;
32+
		local e
33-
local t=.5*math.pi*(l%1);
33+
		for e = 1,#ch do
34-
if l<1 then
34+
			Scan(ch[e]:GetChildren())
35-
return Color3.new(1,1-math.cos(t),1-math.sin(t));
35+
			if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
36-
elseif l<2 then
36+
				ch[e]:remove()
37-
return Color3.new(1-math.sin(t),1,1-math.cos(t));
37+
			end
38-
else
38+
		end
39-
return Color3.new(1-math.cos(t),1-math.sin(t),1);
39+
	end
40-
end;
40+
	Scan(chrclone:GetChildren())
41-
end;
41+
42-
rad=function(value)
42+
	local hum2 = chrclone:findFirstChild("Humanoid")
43-
return math.rad(value);
43+
44-
end;
44+
45-
CFAngles=function(Vector)
45+
	if hum2 ~= nil then
46-
return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z));
46+
		hum2.Name = "Humanoid2"
47-
end;
47+
		hum2.PlatformStand = true
48-
AnimStat={
48+
		hum2.Sit = true 
49-
lerpSpeed=.2;
49+
		hum2.MaxHealth = 0
50-
lerpSpeed2=.35;
50+
		hum2.Health = 0
51-
lerpTween=0;
51+
	end
52-
};
52+
53-
Joints={
53+
	local ch = Character:GetChildren()
54-
c.HumanoidRootPart.RootJoint;
54+
	local i
55-
c.Torso.Neck;
55+
	for i = 1,#ch do
56-
c.Torso['Left Shoulder'];
56+
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
57-
c.Torso['Right Shoulder'];
57+
			ch[i]:remove()
58-
c.Torso['Left Hip'];
58+
		end
59-
c.Torso['Right Hip'];
59+
	end
60-
};
60+
61-
JointTargets={
61+
	wait(0.2)
62-
CFrameZero();
62+
63-
CFrameZero();
63+
	local ch = Character:GetChildren()
64-
CFrameZero();
64+
	local i
65-
CFrameZero();
65+
	for i = 1,#ch do
66-
CFrameZero();
66+
		if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
67-
CFrameZero();
67+
			ch[i]:remove()
68-
};
68+
		end
69-
prepareCharacter=function()
69+
	end
70-
music=Instance.new('Sound',c.HumanoidRootPart);
70+
	Character = chrclone
71-
music.SoundId='rbxassetid://394144904';
71+
	local Torso = Character.Torso
72-
music.Looped=true;
72+
	local movevector = Vector3.new()
73-
music.Volume=.6;
73+
74-
music2=Instance.new('Sound',c);
74+
	if Torso then
75-
music2.SoundId='rbxassetid://259613634';
75+
		local Head = Character:FindFirstChild("Head")
76-
music2.Looped=true;
76+
		local Limb = Character:FindFirstChild("Right Arm")
77-
music2.Volume=1;
77+
		if Limb then
78-
music3=Instance.new('Sound',c.HumanoidRootPart);
78+
79-
music3.SoundId='rbxassetid://266530326';
79+
			Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
80-
music3.Looped=true;
80+
			local Joint = Instance.new("Glue")
81-
music3.Volume=1;
81+
			Joint.Name = "RightShoulder"
82-
music4=Instance.new('Sound',c.HumanoidRootPart);
82+
			Joint.Part0 = Torso
83-
music4.SoundId='rbxassetid://155738252';
83+
			Joint.Part1 = Limb
84-
music4.Looped=true;
84+
			Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
85-
music4.Volume=1;
85+
			Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
86-
music5=Instance.new('Sound',c.HumanoidRootPart);
86+
			Joint.Parent = Torso
87-
music5.SoundId='rbxassetid://215391212';
87+
88-
music5.Looped=true;
88+
			local B = Instance.new("Part")
89-
music5.Volume=1;
89+
			B.TopSurface = 0
90-
human.WalkSpeed=0;
90+
			B.BottomSurface = 0
91-
human.JumpPower=0;
91+
			B.formFactor = "Symmetric"
92-
for i,v in pairs(c:children())do
92+
			B.Size = Vector3.new(1, 1, 1)
93-
if v:isA'Hat'then v:Destroy();end;
93+
			B.Transparency = 1
94-
if v:FindFirstChild'roblox'then v.roblox:Destroy();end;
94+
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
95-
if v.Name=='Head'then v.Transparency=1 for _,x in pairs(v:children())do if x.ClassName=='Sound'then x:Destroy();end;end;end;
95+
			B.Parent = Character
96-
if v:FindFirstChild'face'then v.face:Destroy();end;
96+
			local W = Instance.new("Weld")
97-
if v:isA'Part'then v.BrickColor=BrickColor.new'White';end;
97+
			W.Part0 = Limb
98
			W.Part1 = B
99-
local shirt=c:FindFirstChild'Shirt'or Instance.new('Shirt',c);
99+
			W.C0 = CFrame.new(0, -0.5, 0)
100-
local pants=c:FindFirstChild'Pants'or Instance.new('Pants',c);
100+
			W.Parent = Limb
101-
shirt.ShirtTemplate='rbxassetid://334755544';
101+
102-
pants.PantsTemplate='rbxassetid://315964941';
102+
		end
103-
local Head=Instance.new('Part',c);
103+
		local Limb = Character:FindFirstChild("Left Arm")
104-
Head.Size=Vector3.new(2.5,2.5,1);
104+
		if Limb then
105-
Head.Transparency=1;
105+
106-
Head:BreakJoints();
106+
			Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
107-
local hw=Instance.new('Weld',c.Head);
107+
			local Joint = Instance.new("Glue")
108-
hw.Part0=c.Head;
108+
			Joint.Name = "LeftShoulder"
109-
hw.Part1=Head;
109+
			Joint.Part0 = Torso
110-
hw.C0=CFrame.new(0,.3,0);
110+
			Joint.Part1 = Limb
111-
faceDecal=Instance.new('Decal',Head);
111+
			Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
112-
faceDecal.Face=Enum.NormalId.Front;
112+
			Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
113-
faceDecal.Texture='rbxassetid://400387868';
113+
			Joint.Parent = Torso
114-
local backDecal=Instance.new('Decal',Head);
114+
115-
backDecal.Face=Enum.NormalId.Back;
115+
			local B = Instance.new("Part")
116-
backDecal.Texture='rbxassetid://400377807';
116+
			B.TopSurface = 0
117-
local mes=Instance.new('BlockMesh',Head);
117+
			B.BottomSurface = 0
118-
mes.Scale=Vector3.new(1,1,.4);
118+
			B.formFactor = "Symmetric"
119-
local Anim=human:FindFirstChild'Animator'
119+
			B.Size = Vector3.new(1, 1, 1)
120-
if Anim then Anim:Destroy();end;
120+
			B.Transparency = 1
121-
end;
121+
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
122-
setJointCFrames=function(table)
122+
			B.Parent = Character
123-
for i=1,#table do
123+
			local W = Instance.new("Weld")
124-
JointTargets[i]=table[i];
124+
			W.Part0 = Limb
125-
end;
125+
			W.Part1 = B
126-
end;
126+
			W.C0 = CFrame.new(0, -0.5, 0)
127-
triWave=function(x)
127+
			W.Parent = Limb
128-
local pi2=math.pi/2;
128+
129-
return math.abs((x/pi2)%4-2)-1;
129+
		end
130-
end;
130+
		local Limb = Character:FindFirstChild("Right Leg")
131-
setLerp=function(speed)
131+
		if Limb then
132-
AnimStat.lerpSpeed=speed;
132+
133-
end;
133+
			Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
134-
setTween=function(tween)
134+
			local Joint = Instance.new("Glue")
135-
AnimStat.lerpTween=tween;
135+
			Joint.Name = "RightHip"
136-
end;
136+
			Joint.Part0 = Torso
137-
playSound=function(id,part,vol,pitch)
137+
			Joint.Part1 = Limb
138-
local vol=vol or 1;
138+
			Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
139-
local pitch=pitch or 1;
139+
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
140-
local x=Instance.new('Sound',part);
140+
			Joint.Parent = Torso
141-
x.Volume=vol;
141+
142-
x.Pitch=pitch;
142+
			local B = Instance.new("Part")
143-
x.SoundId='rbxassetid://'..id;
143+
			B.TopSurface = 0
144-
spawn(function()
144+
			B.BottomSurface = 0
145-
wait();
145+
			B.formFactor = "Symmetric"
146-
x:Play();
146+
			B.Size = Vector3.new(1, 1, 1)
147-
wait(x.TimeLength+.2);
147+
			B.Transparency = 1
148-
x:Destroy();
148+
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
149-
end);
149+
			B.Parent = Character
150-
end;
150+
			local W = Instance.new("Weld")
151-
lerpBoom=function()
151+
			W.Part0 = Limb
152-
if Cone then
152+
			W.Part1 = B
153-
Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
153+
			W.C0 = CFrame.new(0, -0.5, 0)
154-
cMesh.Scale=Vector3.new(20,20+c.HumanoidRootPart.Velocity.magnitude/10,20);
154+
			W.Parent = Limb
155-
Cone.Transparency=1-c.HumanoidRootPart.Velocity.magnitude/1000;
155+
156-
else
156+
		end
157-
Cone=Instance.new('Part',c);
157+
		local Limb = Character:FindFirstChild("Left Leg")
158-
Cone.Anchored=true;
158+
		if Limb then
159-
Cone.CanCollide=false;
159+
160-
Cone.Transparency=math.random(50,70)/100;
160+
			Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
161-
Cone.Size=Vector3.new(1,1,1);
161+
			local Joint = Instance.new("Glue")
162-
Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
162+
			Joint.Name = "LeftHip"
163-
cMesh=Instance.new('SpecialMesh',Cone);
163+
			Joint.Part0 = Torso
164-
cMesh.MeshId='rbxassetid://1033714';
164+
			Joint.Part1 = Limb
165-
cMesh.Scale=Vector3.new(20,50,20);
165+
			Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
166-
end;
166+
			Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
167-
end;
167+
			Joint.Parent = Torso
168-
noBoom=function()
168+
169-
if Cone then local x=Cone Cone=nil;
169+
			local B = Instance.new("Part")
170-
for i=1,20 do
170+
			B.TopSurface = 0
171-
wait();
171+
			B.BottomSurface = 0
172-
x.Mesh.Scale=x.Mesh.Scale+Vector3.new(-.5,1,-.5);
172+
			B.formFactor = "Symmetric"
173-
x.Transparency=x.Transparency+1/30;
173+
			B.Size = Vector3.new(1, 1, 1)
174-
end;
174+
			B.Transparency = 1
175-
end;
175+
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
176-
end;
176+
			B.Parent = Character
177-
gasterBlast=function(tCFrame,aimPos,charge)
177+
			local W = Instance.new("Weld")
178-
local aimTarget;
178+
			W.Part0 = Limb
179-
if aimPos then
179+
			W.Part1 = B
180-
aimTarget=CFrame.new(tCFrame,aimPos);
180+
			W.C0 = CFrame.new(0, -0.5, 0)
181-
else
181+
			W.Parent = Limb
182-
aimTarget=tCFrame;
182+
183-
end;
183+
		end
184-
local gast=Instance.new('Part',c);
184+
		--[
185-
gast.Size=Vector3.new(12,.2,12);
185+
		local Bar = Instance.new("Part")
186-
gast.CanCollide=false;
186+
		Bar.TopSurface = 0
187-
gast.Anchored=true;
187+
		Bar.BottomSurface = 0
188-
gast.Transparency=1;
188+
		Bar.formFactor = "Symmetric"
189-
if charge then
189+
		Bar.Size = Vector3.new(1, 1, 1)
190-
playSound(400523331,gast,math.random(90,110)/100);
190+
		Bar.Transparency = 1
191-
end;
191+
		Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
192-
wait();
192+
		Bar.Parent = Character
193-
for i=1,2 do
193+
		local Weld = Instance.new("Weld")
194-
local decal=Instance.new('Decal',gast);
194+
		Weld.Part0 = Torso
195-
decal.Texture='rbxassetid://323497117';
195+
		Weld.Part1 = Bar
196-
if i==1 then
196+
		Weld.C0 = CFrame.new(0, 0.5, 0)
197-
decal.Face=Enum.NormalId.Top;
197+
		Weld.Parent = Torso
198-
else
198+
		--]]
199-
decal.Face=Enum.NormalId.Bottom;
199+
	end
200-
end;
200+
	Character.Parent = Gibs
201-
end;
201+
	game.Debris:AddItem(Character, 12)
202-
gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
202+
	if movevector ~= Vector3.new() then
203-
spawn(function()
203+
		for i = 1,10 do
204-
local tarCFrame=gast.CFrame;
204+
			wait()
205-
local isLooping=true;
205+
			Torso.Velocity = Vector3.new(0,0,-100)
206-
spawn(function()
206+
			Head.Velocity = movevector * 200
207-
while rs.RenderStepped:wait()and isLooping do
207+
		end
208-
gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
208+
	end
209-
end;
209+
	local duh = Torso
210-
end);
210+
ee = Instance.new("Part") 
211-
for i=1,30 do
211+
ee.Anchored = false
212-
wait();
212+
ee.CanCollide = false
213-
tarCFrame=gast.CFrame:lerp(aimTarget,.24);
213+
ee.Parent = duh 
214-
end;
214+
ee.Transparency =1 
215-
playSound(340722848,gast,math.random(90,110)/100);
215+
ee.Size = Vector3.new(0.15, 0.15, 0.15)
216-
isLooping=false;
216+
wee = Instance.new("Weld") 
217-
wait(.08);
217+
wee.Parent = duh
218-
local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
218+
wee.Part0 = duh
219-
local _,pos=workspace:FindPartOnRay(ray,c);
219+
wee.Part1 = ee
220-
local dis=(aimTarget.p-pos).magnitude;
220+
wee.C0 = CFrame.new(0, 1, 0)
221-
local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
221+
ge = Instance.new('ParticleEmitter')
222-
local rayPart=Instance.new('Part',rayModel);
222+
ge.Parent = ee
223-
rayPart.Material='Neon';
223+
ge.Texture = "rbxassetid://29712167"
224-
rayPart.FormFactor='Custom';
224+
ge.Size = NumberSequence.new(0.2,0.05)
225-
rayPart.Color=a();
225+
ge.Acceleration = Vector3.new(0, -20, 0)
226-
rayPart.Anchored=true;
226+
ge.Rate = 100000 
227-
rayPart.CanCollide=false;
227+
ge.Speed = NumberRange.new(7,8)
228-
rayPart.Shape='Cylinder';
228+
ge.Lifetime = NumberRange.new(3,4)
229-
rayPart.Size=Vector3.new(dis+400,8,8);
229+
ge.VelocitySpread = 10
230-
rayPart.CFrame=rayCFrame;
230+
ge.VelocityInheritance = 0.3 
231-
gast:Destroy();
231+
ea = Instance.new("Part") 
232-
end);
232+
ea.Anchored = false
233-
end;
233+
ea.CanCollide = false
234-
largegasterBlast=function(tCFrame,aimPos)
234+
ea.Parent = Character.Head
235-
local aimTarget;
235+
ea.Transparency =1 
236-
if aimPos then
236+
ea.Size = Vector3.new(0.15, 0.15, 0.15)
237-
aimTarget=CFrame.new(tCFrame,aimPos);
237+
wea = Instance.new("Weld") 
238-
else
238+
wea.Parent = Character.Head
239-
aimTarget=tCFrame;
239+
wea.Part0 = Character.Head
240-
end;
240+
wea.Part1 = ea
241-
local gast=Instance.new('Part',c);
241+
wea.C0 = CFrame.new(0, -0.7, 0)
242-
gast.Size=Vector3.new(25,.2,25);
242+
ga = Instance.new('ParticleEmitter')
243-
gast.CanCollide=false;
243+
ga.Parent = ea
244-
gast.Anchored=true;
244+
ga.Texture = "rbxassetid://29712167"
245-
gast.Transparency=1;
245+
ga.Size = NumberSequence.new(0.2,0.05)
246-
playSound(400523331,gast,math.random(85,97)/100);
246+
ga.Acceleration = Vector3.new(0, -20, 0)
247-
wait();
247+
ga.Rate = 100000
248-
for i=1,2 do
248+
ga.Speed = NumberRange.new(7,8)
249-
local decal=Instance.new('Decal',gast);
249+
ga.Lifetime = NumberRange.new(3,4)
250-
decal.Texture='rbxassetid://323497117';
250+
ga.VelocitySpread = 10
251-
if i==1 then
251+
ga.VelocityInheritance = 0.3 
252-
decal.Face=Enum.NormalId.Top;
252+
ga.EmissionDirection = Enum.NormalId.Bottom
253-
else
253+
254-
decal.Face=Enum.NormalId.Bottom;
254+
255-
end;
255+
local plr = game.Players.LocalPlayer
256-
end;
256+
local chr = plr.Character
257-
gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
257+
local mouse = plr:GetMouse()
258-
spawn(function()
258+
local intro = coroutine.wrap(function()
259-
local tarCFrame=gast.CFrame;
259+
	local gui = Instance.new('ScreenGui',plr.PlayerGui)
260-
local isLooping=true;
260+
	gui.Name = "Intro"
261-
spawn(function()
261+
	local fr = Instance.new('Frame',gui)
262-
while rs.RenderStepped:wait()and isLooping do
262+
	fr.Size = UDim2.new(0.4,0,0,0)
263-
gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
263+
	fr.Position = UDim2.new(0.3,0,-0.1,0)
264-
end;
264+
	fr.BorderColor3 = Color3.fromRGB(198, 45, 45)
265-
end);
265+
	fr.BorderSizePixel = 5
266-
for i=1,40 do
266+
	fr.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
267-
wait();
267+
	local title = Instance.new('TextLabel',fr)
268-
tarCFrame=gast.CFrame:lerp(aimTarget,.18);
268+
	title.Size = UDim2.new(1,0,0.4,0)
269-
end;
269+
	title.Position = UDim2.new(0,0,0.1,0)
270-
playSound(340722848,gast,math.random(80,95)/100);
270+
	title.BackgroundTransparency = 1
271-
isLooping=false;
271+
	title.TextColor3 = Color3.fromRGB(198, 45, 45)
272-
wait(.08);
272+
	title.TextScaled = true
273-
local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
273+
	title.Text = 'Deadpool Script'
274-
local _,pos=workspace:FindPartOnRay(ray,c);
274+
	local desc = Instance.new('TextLabel',fr)
275-
local dis=(aimTarget.p-pos).magnitude;
275+
	desc.Size = UDim2.new(1,0,0.5,0)
276-
local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
276+
	desc.Position = UDim2.new(0,0,0.5,0)
277-
local rayPart=Instance.new('Part',rayModel);
277+
	desc.BackgroundTransparency = 1
278-
rayPart.Material='Neon';
278+
	desc.TextColor3 = Color3.fromRGB(198, 45, 45)
279-
rayPart.FormFactor='Custom';
279+
	desc.TextScaled = true
280-
rayPart.Color=a();
280+
	desc.Text = ''
281-
rayPart.Anchored=true;
281+
	wait(1)
282-
rayPart.CanCollide=false;
282+
	fr:TweenSize(UDim2.new(0.4,0,0.5,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,2)
283-
rayPart.Shape='Cylinder';
283+
	wait(2)
284-
rayPart.Size=Vector3.new(dis+400,17,17);
284+
	local str = 'Hotkey to equip katana is N. Use Z to stab and X to slice heads off. Created by mustardfoot.'
285-
rayPart.CFrame=rayCFrame;
285+
	local leng = string.len(str)
286-
gast:Destroy();
286+
	for i = 1,leng do
287-
end);
287+
		desc.Text = string.sub(str,1,i)
288-
end;
288+
		wait()
289-
prepareCharacter();
289+
	end
290-
spawn(function()
290+
	wait(2)
291-
local sine=0;
291+
	fr:TweenSize(UDim2.new(0.4,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,0.8)
292-
while wait()do
292+
	wait(2)
293-
if Debounces.isFlash then
293+
	gui:Destroy()
294-
if(tick()*8)%2>1 then
294+
end)
295-
faceDecal.Texture='rbxassetid://400377503';
295+
intro()
296-
else
296+
297-
faceDecal.Texture='rbxassetid://400387868';
297+
298-
end;
298+
wait(2)
299-
else
299+
local tors = chr.Torso
300-
faceDecal.Texture='rbxassetid://400387868';
300+
chr.Head.Transparency = 1
301-
end;
301+
for i,v in pairs(chr:GetChildren()) do
302-
if Debounces.isAttacking==false and Debounces.isMoving==false and Debounces.Debounce==false and Debounces.isJumping==false then
302+
	if v.ClassName == "CharacterMesh" then
303-
setLerp(.8);
303+
		v:Destroy()
304-
local spasm=math.abs(math.sin(tick()*20))*1.1;
304+
	end
305-
local spasm2=math.abs(math.sin(tick()*20-2))*1.1;
305+
306-
local spasm3=math.abs(math.sin(tick()*20-2.3))*1.1;
306+
local humroot = chr.HumanoidRootPart:Clone()
307-
setJointCFrames({
307+
local torsclone = tors:Clone()
308-
CFrame.new(Vector3.new(0,0-spasm,0))*CFAngles(Vector3.new(0,0,0));
308+
local anim = chr.Animate:Clone()
309-
CFrame.new(Vector3.new(0,1.5,0))*CFAngles(Vector3.new(-0.011,-0.502,-1.177));
309+
local hum = chr.Humanoid:Clone()
310-
CFrame.new(Vector3.new(-1.5-spasm2^2/3,-0.001,0))*CFAngles(Vector3.new(-2.344,7.899,-2.82+spasm3^2*-60));
310+
local head = chr.Head:Clone()
311-
CFrame.new(Vector3.new(1.569+spasm2^2/3,0,-0.1))*CFAngles(Vector3.new(4.822,1.123,6.383+spasm3^2*60));
311+
local neck = chr.Torso.Neck:Clone()
312-
CFrame.new(Vector3.new(-0.61,-2+spasm/1.01,-.15))*CFAngles(Vector3.new(-2.206,0.767,-0.582));
312+
local rightarm = chr["Right Arm"]:Clone()
313-
CFrame.new(Vector3.new(0.55,-2+spasm/1.01,-.1))*CFAngles(Vector3.new(-0.026,0.463,3.184));
313+
local leftarm = chr["Left Arm"]:Clone()
314-
});
314+
local leftleg = chr["Left Leg"]:Clone()
315-
elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==false and Debounces.isJumping==false then
315+
local rightleg = chr["Right Leg"]:Clone()
316-
sine=tick()*18;
316+
local rightshoulder = tors["Right Shoulder"]:Clone()
317-
human.WalkSpeed=120;
317+
local leftshoulder = tors["Left Shoulder"]:Clone()
318-
setLerp(.35);
318+
local righthip = tors["Right Hip"]:Clone()
319-
setJointCFrames({
319+
local lefthip = tors["Left Hip"]:Clone()
320-
CFrame.new(Vector3.new(0,math.sin(sine)/50-.3,0))*CFAngles(Vector3.new(-30-math.sin(sine*2)*3,math.sin(sine*2)*15,0));
320+
local shirt = nil
321-
CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
321+
local pants = nil
322-
CFrame.new(Vector3.new(-1.5,-0.001,0.2+math.sin(sine*2+math.pi)*1.2))*CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90,0,-15));
322+
local hats = {}
323-
CFrame.new(Vector3.new(1.5,-0.001,0.2+math.sin(sine*2)*1.2))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-90,-0.001,14.999));
323+
local lastpos = CFrame.new(0,0,0)
324-
CFrame.new(Vector3.new(-0.501,-2+math.cos(sine*2+math.pi)/3,.3+math.sin(sine*2)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-70,0,-0.001));
324+
local on = true
325-
CFrame.new(Vector3.new(0.499,-2+math.cos(sine*2)/3,.3+math.sin(sine*2+math.pi)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*70,0,0));
325+
local doing = false
326-
});
326+
local stabbing = false
327-
elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==true and Debounces.isJumping==false then
327+
local slicing = false
328-
sine=tick()*28;
328+
local toolz = Instance.new('Tool',plr.Backpack)
329-
human.WalkSpeed=400;
329+
toolz.Name = "Katana"
330-
lerpBoom();
330+
toolz.RequiresHandle = false
331-
setLerp(.65);
331+
toolz.CanBeDropped = false
332-
setJointCFrames({
332+
local partz = Instance.new('Part',toolz)
333-
CFrame.new(Vector3.new(0,math.sin(sine)/50-.3,0))*CFAngles(Vector3.new(-30-math.sin(sine*2)*3,math.sin(sine*2)*15,0));
333+
partz.Size = Vector3.new(0.2,0.2,3)
334-
CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
334+
partz.CanCollide = false
335-
CFrame.new(Vector3.new(-1.5,-0.001,0.2+math.sin(sine*2+math.pi)*1.2))*CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90,0,-15));
335+
local meshz = Instance.new('SpecialMesh',partz)
336-
CFrame.new(Vector3.new(1.5,-0.001,0.2+math.sin(sine*2)*1.2))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-90,-0.001,14.999));
336+
meshz.MeshId = 'rbxassetid://11442510'
337-
CFrame.new(Vector3.new(-0.501,-2+math.cos(sine*2+math.pi)/3,.3+math.sin(sine*2)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-70,0,-0.001));
337+
meshz.TextureId = 'rbxassetid://30956707'
338-
CFrame.new(Vector3.new(0.499,-2+math.cos(sine*2)/3,.3+math.sin(sine*2+math.pi)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*70,0,0));
338+
meshz.VertexColor = Vector3.new(0,0,0)
339-
});
339+
340-
elseif Debounces.isJumping==true and Debounces.Debounce==false then
340+
toolz.Equipped:connect(function(mouse)
341-
setLerp(.14);
341+
	if chr:FindFirstChild('Right Arm') then
342-
human.WalkSpeed=45;
342+
		local weld = Instance.new('Weld',partz)
343-
setJointCFrames({
343+
		weld.Part0 = partz
344-
CFrame.new(Vector3.new(0,0,0))*CFAngles(Vector3.new(-8,0,0));
344+
		weld.Part1 = chr["Right Arm"]
345-
CFrame.new(Vector3.new(0,1.5,-0.15))*CFAngles(Vector3.new(-10.138,3.687,0.306));
345+
		weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
346-
CFrame.new(Vector3.new(-1.23,0.069,-0.56))*CFAngles(Vector3.new(50.809,0.672,18.704));
346+
	end
347-
CFrame.new(Vector3.new(0.929,-0.031,-1.0912))*CFAngles(Vector3.new(63.00,13.85,-36.416));
347+
	mouse.KeyDown:connect(function(key)
348-
CFrame.new(Vector3.new(-0.63,-1.82,-0.74))*CFAngles(Vector3.new(31.324,3.424,-1.249));
348+
		if doing == false then
349-
CFrame.new(Vector3.new(0.619,-1.331,0.82))*CFAngles(Vector3.new(-59.644,0.998,9.776));
349+
		if key == 'z' then
350-
});
350+
		if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
351-
end;
351+
			doing = true
352-
end;
352+
			local weld = Instance.new('Weld',chr["Right Arm"])
353-
end);
353+
			weld.Part0 = chr["Right Arm"]
354-
human.Changed:connect(function(prop)
354+
			weld.Part1 = chr.Torso
355-
if prop=='MoveDirection'then
355+
			weld.C0 = CFrame.new(-1.5,0,0)
356-
if human.MoveDirection.magnitude>.02 then
356+
			for i=1,25 do
357-
Debounces.isMoving=true;
357+
				weld.C0 = weld.C0:lerp(CFrame.new(-1.5,1,0.9)*CFrame.Angles(math.pi/2.5,0,-math.pi/2.5),i/25)
358-
else
358+
				wait()
359-
Debounces.isMoving=false;
359+
			end
360-
end;
360+
			wait()
361-
end;
361+
			stabbing = true
362-
end);
362+
			for i=1,10 do
363-
uinps.InputBegan:connect(function(InputObj)
363+
				weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/4,0,-math.pi/6),i/10)
364-
if InputObj.KeyCode==Enum.KeyCode.Slash then
364+
				wait()
365-
local finishEvent=nil;
365+
			end
366-
Debounces.isTyping=true
366+
			wait()
367-
finishEvent=uinps.InputBegan:connect(function(InputObj)
367+
			for i=1,25 do
368-
if InputObj.KeyCode==Enum.KeyCode.Return or InputObj.UserInputType==Enum.UserInputType.MouseButton1 then
368+
				weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/25)
369-
Debounces.isTyping=false;
369+
				wait()
370-
finishEvent:disconnect();
370+
			end
371-
end;
371+
			chr["Right Arm"]:Destroy()
372-
end);
372+
			doing = false
373-
end;
373+
			stabbing = false
374-
end);
374+
		end
375-
mouse.KeyDown:connect(function(key)
375+
		elseif key == 'x' then
376-
if key=='0'then
376+
			if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
377-
Debounces.isSprinting=true;
377+
			doing = true
378-
playSound(160248522,c.Torso);
378+
			local weld = Instance.new('Weld',chr["Right Arm"])
379-
for i=1,3 do
379+
			weld.Part0 = chr["Right Arm"]
380-
spawn(function()
380+
			weld.Part1 = chr.Torso
381-
local e=Instance.new('Part',c);
381+
			weld.C0 = CFrame.new(-1.5,0,0)
382-
e.Size=Vector3.new(1,1,1);
382+
			for i=1,25 do
383-
e.Material='Neon';
383+
				weld.C0 = weld.C0:lerp(CFrame.new(-0.5,0.7,-0.5)*CFrame.Angles(math.pi/8,math.pi/1,math.pi/1.5),i/25)
384-
e.Color=a();
384+
				wait()
385-
e.Anchored=true;
385+
			end
386-
e.CFrame=c.HumanoidRootPart.CFrame*CFrame.Angles(0,0,-math.pi/2);
386+
			wait()
387-
e.CanCollide=false;
387+
			slicing = true
388-
local rm=Instance.new('SpecialMesh',e);
388+
			for i=1,5 do
389-
rm.MeshType='FileMesh';
389+
				weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/8,0,-math.pi/4),i/5)
390-
rm.MeshId='rbxassetid://3270017';
390+
				wait()
391-
rm.Scale=Vector3.new(3.2,3.2,10);
391+
			end
392-
for x=1,30 do
392+
			wait()
393-
wait();
393+
			for i=1,12.5 do
394-
rm.Scale=rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1);
394+
				weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/12.5)
395-
e.Transparency=x/30+.5;
395+
				wait()
396-
end;
396+
			end
397-
end);
397+
			chr["Right Arm"]:Destroy()
398-
end;
398+
			doing = false
399-
c.HumanoidRootPart.Velocity=c.HumanoidRootPart.CFrame.lookVector*200;
399+
			slicing = false
400-
end;
400+
		end
401-
end);
401+
		end
402-
mouse.KeyUp:connect(function(key)
402+
		end
403-
if key=='0'then
403+
	end)
404-
Debounces.isSprinting=false;
404+
end)
405-
end;
405+
406-
end);
406+
partz.Touched:connect(function(hit)
407-
mouse.KeyDown:connect(function(key)
407+
	if hit.Parent:FindFirstChild('Humanoid') and stabbing and hit.Parent ~= chr then
408-
if key=='v'then
408+
		hit.Parent.Humanoid.Health = 0
409-
playSound(201858087,c.Torso,math.random(90,120)/100);
409+
	elseif hit.Parent:FindFirstChild('heck') == nil and slicing then
410-
local oldPos=c.HumanoidRootPart.CFrame.p;
410+
		local he = Instance.new('IntValue',hit.Parent)
411-
local mHit=mouse.Hit.p;
411+
		he.Name = "heck"
412-
for i=1,2 do
412+
		Kill(hit.Parent)
413-
spawn(function()
413+
	end
414-
local pos
414+
end)
415-
if i==1 then pos=oldPos else pos=mHit end
415+
416-
local p=Instance.new('Part',workspace);
416+
toolz.Unequipped:connect(function(mouse)
417-
p.Anchored=true;
417+
	if partz:FindFirstChildOfClass('Weld') then
418-
p.CanCollide=false;
418+
		partz:FindFirstChildOfClass('Weld'):Destroy()
419-
p.Color=a();
419+
	end
420-
p.FormFactor='Custom';
420+
end)
421-
p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
421+
toolz.AncestryChanged:connect(function(child, parent)
422-
p.Transparency=.4;
422+
	if parent ~= chr and parent ~= plr.Backpack then
423-
p.Size=Vector3.new(20,1000,20);
423+
	wait()
424-
for i=1,20 do
424+
		toolz.Parent = plr.Backpack
425-
wait();
425+
	end
426-
p.Transparency=.4+(i/10)*.6;
426+
end)
427-
p.Size=Vector3.new(20-i*1.5,1000,20-i*1.5);
427+
428-
p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
428+
mouse.KeyDown:connect(function(key) 
429-
end;
429+
	if key == "n" then
430-
p:Destroy();
430+
	wait()
431-
end);
431+
		toolz:Equip()
432-
end;
432+
	end
433-
if Debounces.isMoving then
433+
end)
434-
c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(c.HumanoidRootPart.Velocity.x,mouse.Hit.p.y+4,c.HumanoidRootPart.Velocity.z));
434+
if chr:FindFirstChildOfClass('Shirt') then
435-
else
435+
	shirt = chr:FindFirstChildOfClass('Shirt'):Clone()
436-
c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z));
436+
437-
end;
437+
if chr:FindFirstChildOfClass('Pants') then
438-
end;
438+
	pants = chr:FindFirstChildOfClass('Pants'):Clone()
439-
end);
439+
440-
mouse.KeyDown:connect(function(key)
440+
for i,v in pairs(chr:GetChildren()) do
441-
if key=='r'then
441+
	if v.ClassName == "Accessory" then
442-
local pointTarget=mouse.Hit.p;
442+
		table.insert(hats,v:Clone())
443-
for i=1,20 do
443+
	end
444-
wait();
444+
445-
gasterBlast(CFrame.new(pointTarget+Vector3.new(math.sin(tick()*10)*20,5+math.abs(math.sin(tick()*5)*10),math.cos(tick()*10)*20),pointTarget));
445+
local rootjoint = chr.HumanoidRootPart.RootJoint:Clone()
446-
end;
446+
chr.Humanoid:Destroy()
447-
wait();
447+
local gui = Instance.new('ScreenGui')
448-
largegasterBlast(CFrame.new(pointTarget+Vector3.new(0,35,0),pointTarget));
448+
gui.Parent = game.Players.LocalPlayer.PlayerGui
449-
end;
449+
gui.Name = "Deadpool"
450-
end);
450+
gui.ResetOnSpawn = false
451-
mouse.KeyDown:connect(function(key)
451+
local frame = Instance.new('Frame',gui)
452-
if key=='f'then
452+
frame.Size = UDim2.new(0.2,0,0.2,0)
453-
local pointTarget=mouse.Hit.p;
453+
frame.Position = UDim2.new(0,0,0.9,0)
454-
for i=1,20 do
454+
frame.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
455-
wait();
455+
frame.BorderSizePixel = 4
456-
gasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(math.sin(i/2)*(20-i),math.cos(i/2)*(20-i),-i)));
456+
frame.BorderColor3 = Color3.fromRGB(198, 45, 45)
457-
end;
457+
frame.Active = true
458-
largegasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(0,0,-25)));
458+
frame.Draggable = true 
459-
end;
459+
local txt = Instance.new('TextLabel',frame)
460-
end);
460+
txt.Text = "Deadpool Gui"
461-
mouse.Button1Down:connect(function()
461+
txt.TextColor3 = Color3.fromRGB(198, 45, 45)
462-
Debounces.isFlash=true;
462+
txt.Size = UDim2.new(1,0,0.3,0)
463-
end);
463+
txt.TextScaled = true
464-
mouse.Button1Up:connect(function()
464+
txt.BackgroundTransparency = 1
465-
Debounces.isFlash=false;
465+
local but = Instance.new('TextButton',frame)
466-
end);
466+
but.Text = "Toggle Suit"
467-
mouse.KeyDown:connect(function(key)
467+
but.TextColor3 = Color3.fromRGB(38, 38, 38)
468-
if key=='k'then
468+
but.Size = UDim2.new(0.7,0,0.3,0)
469-
if music.isPlaying then music:Stop();else music:Play();end;
469+
but.Position = UDim2.new(0.15,0,0.5,0)
470-
end;
470+
but.BorderSizePixel = 0
471-
end);
471+
but.TextScaled = true
472-
mouse.KeyDown:connect(function(key)
472+
but.BackgroundColor3 = Color3.fromRGB(198, 45, 45)
473-
if key=='j'then
473+
but.MouseButton1Down:connect(function()
474-
if music2.isPlaying then music2:Stop();else music2:Play();end;
474+
	on = not on
475-
end;
475+
end)
476-
end);
476+
game:GetService('RunService').Stepped:connect(function()
477-
mouse.KeyDown:connect(function(key)
477+
	if chr.Parent == nil then
478-
if key=='l'then
478+
	chr.RobloxLocked = false
479-
if music3.isPlaying then music3:Stop();else music3:Play();end;
479+
	chr.Parent = game.Workspace
480-
end;
480+
	end
481-
end);
481+
	if chr:FindFirstChildOfClass('Humanoid') == nil then
482-
mouse.KeyDown:connect(function(key)
482+
		hum:Clone().Parent = chr
483-
if key=='p'then
483+
		chr.Animate:Destroy()
484-
if music4.isPlaying then music4:Stop();else music4:Play();end;
484+
		anim:Clone().Parent = chr
485-
end;
485+
	end
486-
end);
486+
	if chr:FindFirstChild('HumanoidRootPart') == nil then
487-
mouse.KeyDown:connect(function(key)
487+
		humroot:Clone().Parent = chr
488-
if key=='o'then
488+
		humroot.CFrame = lastpos
489-
if music5.isPlaying then music4:Stop();else music5:Play();end;
489+
		chr.Humanoid:Destroy()
490-
end;
490+
		hum:Clone().Parent = chr
491-
end);
491+
		chr.Animate:Destroy()
492-
mouse.KeyDown:connect(function(key)
492+
		anim:Clone().Parent = chr
493-
if key=='e'then
493+
		chr.HumanoidRootPart.RootJoint:Destroy()
494-
gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true);
494+
	end
495-
end;
495+
	if chr:FindFirstChild('Torso') == nil then
496-
end);
496+
		chr.Humanoid:Destroy()
497-
mouse.KeyDown:connect(function(key)
497+
		local tor = tors:Clone()
498-
if key=='c'then
498+
		tor.Parent = chr
499-
largegasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
499+
		hum:Clone().Parent = chr
500-
end;
500+
		chr.Animate:Destroy()
501-
end);
501+
		anim:Clone().Parent = chr
502-
mouse.KeyDown:connect(function(key)
502+
	end
503-
if key=='q'then
503+
	if chr.HumanoidRootPart:FindFirstChild('RootJoint') == nil then
504-
for i=1,5 do
504+
		local rtj = rootjoint:Clone()
505-
wait();
505+
		rtj.Parent = chr.HumanoidRootPart
506-
gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
506+
		rtj.Part0 = chr.HumanoidRootPart
507-
end;
507+
		rtj.Part1 = chr.Torso
508-
largegasterBlast(c.Torso.CFrame.p+Vector3.new(0,25,0),mouse.Hit.p);
508+
	end
509-
end;
509+
	if chr:FindFirstChild('Head') == nil then
510-
end);
510+
		chr.Humanoid:Destroy()
511-
mouse.KeyDown:connect(function(key)
511+
		head:Clone().Parent = chr
512-
if key=='t'then
512+
		hum:Clone().Parent = chr
513-
local pointTarget=mouse.Hit.p;
513+
		chr.Animate:Destroy()
514-
for i=1,20 do
514+
		anim:Clone().Parent = chr
515-
gasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/40)*i))*(20-i),5+i,math.cos(math.deg((360/40)*i))*(20-i)),pointTarget);
515+
	end
516-
end;
516+
	if chr.Torso:FindFirstChild('Neck') == nil then
517-
wait(.2);
517+
		chr.Humanoid:Destroy()
518-
for i=1,10 do
518+
		local hec = neck:Clone()
519-
largegasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget);
519+
		hec.Parent = chr.Torso
520-
end;
520+
		hec.Part0 = chr.Torso
521-
end;
521+
		hec.Part1 = chr.Head
522-
end);
522+
		hum:Clone().Parent = chr
523-
human.StateChanged:connect(function(os,ns)
523+
		chr.Animate:Destroy()
524-
if c.HumanoidRootPart.Velocity.Y<.1 and Debounces.isJumping==true and ns==Enum.HumanoidStateType.Landed then
524+
		anim:Clone().Parent = chr
525-
Debounces.isJumping=false;
525+
	end
526-
end;
526+
	if chr:FindFirstChild('Right Leg') == nil then
527-
end);
527+
		rightleg:Clone().Parent = chr
528-
for i=1,#Joints do
528+
		local fi = righthip:Clone()
529-
Joints[i].C1=CFrameZero();
529+
		fi.Parent = chr.Torso
530-
end;
530+
		fi.Part0 = chr.Torso
531-
rs.RenderStepped:connect(function()
531+
		fi.Part1 = chr["Right Leg"]
532-
Debounces.FPS=1/rs.RenderStepped:wait();
532+
	end
533-
if Debounces.FPS<30 then
533+
	if chr:FindFirstChild('Right Arm') == nil then
534-
Debounces.FPS=30;
534+
		rightarm:Clone().Parent = chr
535-
end;
535+
		local fi = rightshoulder:Clone()
536-
if Debounces.isSprinting then
536+
		fi.Parent = chr.Torso
537-
lerpBoom();
537+
		fi.Part0 = chr.Torso
538-
else
538+
		fi.Part1 = chr["Right Arm"]
539-
noBoom();
539+
	end
540-
end;
540+
	if chr:FindFirstChild('Left Leg') == nil then
541-
for _,v in pairs(rayModel:children())do
541+
		leftleg:Clone().Parent = chr
542-
v.Transparency=v.Transparency+.06/(Debounces.FPS/60);
542+
		local fi = lefthip:Clone()
543-
if v.Transparency>.99 then v:Destroy();return;end;
543+
		fi.Parent = chr.Torso
544-
v.CanCollide=true;
544+
		fi.Part0 = chr.Torso
545-
local tParts=v:GetTouchingParts();
545+
		fi.Part1 = chr["Left Leg"]
546-
v.CanCollide=false;
546+
	end
547-
local vCFrame=v.CFrame;
547+
	if chr:FindFirstChild('Left Arm') == nil then
548-
v.Size=v.Size+Vector3.new(0,1,1)/(Debounces.FPS/60);
548+
		leftarm:Clone().Parent = chr
549-
v.CFrame=vCFrame;
549+
		local fi = leftshoulder:Clone()
550-
for _,x in pairs(tParts)do
550+
		fi.Parent = chr.Torso
551-
if x and x.Parent and x.Parent:FindFirstChild'Humanoid'and x.Parent.Humanoid:isA'Humanoid'and x.Parent~=c then
551+
		fi.Part0 = chr.Torso
552-
x.Parent.Humanoid:TakeDamage(1,2);
552+
		fi.Part1 = chr["Left Arm"]
553-
end;
553+
	end
554-
end;
554+
	for i,v in pairs(chr:GetChildren()) do
555-
end;
555+
		if v.Name == "Mask" or v.ClassName == "Accessory" or v.ClassName == "Shirt" or v.ClassName == "Pants" or v.Name == "KatanaHolder" then
556-
local FPSLerp=AnimStat.lerpSpeed/(Debounces.FPS/60);
556+
			v:Destroy()
557-
for i=1,#Joints do
557+
		end
558-
Joints[i].C0=Joints[i].C0:lerp(JointTargets[i],FPSLerp);
558+
	end
559-
end;
559+
	chr.Humanoid.Health = chr.Humanoid.MaxHealth
560-
end);
560+
	if partz:FindFirstChild('Weld') == nil and toolz.Parent == chr then
561
		local weld = Instance.new('Weld',partz)
562
		weld.Part0 = partz
563
		weld.Part1 = chr["Right Arm"]
564
		weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
565
	end
566
	lastpos = chr.HumanoidRootPart.CFrame
567
	local kat = Instance.new('Part',chr)
568
	kat.Size = Vector3.new(0.4,3,0.2)
569
	kat.Name = "KatanaHolder"
570
	kat.Material = Enum.Material.SmoothPlastic
571
	kat.BrickColor = BrickColor.new('Really black')
572
	kat.CanCollide = false
573
	local we = Instance.new('Weld',kat)
574
	we.Part0 = kat
575
	we.Part1 = chr.Torso
576
	we.C0 = CFrame.new(0,0,-0.5)*CFrame.Angles(0,0,0.5)
577
	if on == true then
578
	local shirt = Instance.new('Shirt',chr)
579
	shirt.ShirtTemplate = 'rbxassetid://'
580
	local pants = Instance.new('Pants',chr)
581
	pants.PantsTemplate = 'rbxassetid://'
582
	local mask = Instance.new('Part',chr)
583
mask.Name = "Mask"
584
mask.Size = Vector3.new(2,1,1)
585
mask.BrickColor = BrickColor.new('Bright red')
586
local mesh = Instance.new('SpecialMesh',mask)
587
mesh.Scale = Vector3.new(1.3,1.3,1.3)
588
local weld = Instance.new('Weld',mask)
589
weld.Part0 = mask
590
weld.Part1 = chr.Head
591
local eyesurround = Instance.new('Part',mask)
592
eyesurround.BrickColor = BrickColor.new('Really black')
593
eyesurround.Size = Vector3.new(0.3,0.5,0.2)
594
local mesh2 = Instance.new('SpecialMesh',eyesurround)
595
mesh2.MeshType = Enum.MeshType.Sphere
596
mesh2.Scale = Vector3.new(1,1,0.5)
597
local weld2 = Instance.new('Weld',eyesurround)
598
weld2.Part0 = eyesurround
599
weld2.Part1 = mask
600
weld2.C0 = CFrame.new(0.1,-0.22,0.58)*CFrame.Angles(0,0,-0.2)
601
local eyesurround2 = Instance.new('Part',mask)
602
eyesurround2.BrickColor = BrickColor.new('Really black')
603
eyesurround2.Size = Vector3.new(0.3,0.5,0.2)
604
local mesh3 = Instance.new('SpecialMesh',eyesurround2)
605
mesh3.MeshType = Enum.MeshType.Sphere
606
mesh3.Scale = Vector3.new(1,1,0.5)
607
local weld3 = Instance.new('Weld',eyesurround2)
608
weld3.Part0 = eyesurround2
609
weld3.Part1 = mask
610
weld3.C0 = CFrame.new(-0.1,-0.22,0.58)*CFrame.Angles(0,0,0.2)
611
local eye = Instance.new('Part',mask)
612
eye.BrickColor = BrickColor.new('Institutional white')
613
eye.Size = Vector3.new(0.2,0.2,0.2)
614
local mesh4 = Instance.new('SpecialMesh',eye)
615
mesh4.MeshType = Enum.MeshType.Sphere
616
mesh4.Scale = Vector3.new(1,1,0.5)
617
local weld4 = Instance.new('Weld',eye)
618
weld4.Part0 = eye
619
weld4.Part1 = mask
620
weld4.C0 = CFrame.new(0.1,-0.22,0.59)*CFrame.Angles(0,0,-0.2)
621
local eye2 = Instance.new('Part',mask)
622
eye2.BrickColor = BrickColor.new('Institutional white')
623
eye2.Size = Vector3.new(0.2,0.2,0.2)
624
local mesh5 = Instance.new('SpecialMesh',eye2)
625
mesh5.MeshType = Enum.MeshType.Sphere
626
mesh5.Scale = Vector3.new(1,1,0.5)
627
local weld5 = Instance.new('Weld',eye2)
628
weld5.Part0 = eye2
629
weld5.Part1 = mask
630
weld5.C0 = CFrame.new(-0.1,-0.22,0.59)*CFrame.Angles(0,0,0.2)
631
	else
632
		chr.Head.Transparency = 0
633
		if shirt ~= nil then
634
			shirt:Clone().Parent = chr
635
		end
636
		if pants ~= nil then
637
			pants:Clone().Parent = chr
638
		end
639
		for i,v in pairs(hats) do
640
			v:Clone().Parent = chr
641
		end
642
end
643
end)
644
player = game:service("Players").LocalPlayer
645
char = player.Character
646
local beat = true
647
local beattime = 0.6
648
suit = Instance.new("Model", char)
649
suit.Name = "Determination"
650
local vDebounce = false
651
Torso = char.Torso
652
cf = CFrame.new
653
euler = CFrame.fromEulerAnglesXYZ
654
slashvalue = 1
655
beamvalue = 1
656
onehitkill = true
657
onehitkilltwo = true
658
specialattack = false
659
for _, v in pairs(char.Head:GetChildren()) do
660
  if v.ClassName == "Decal" then
661
    v:remove()
662
  end
663
end
664
for _, v in pairs(char:GetChildren()) do
665
  if v.ClassName == "Hat" then
666
    v:remove()
667
  end
668
end
669
for _, v in pairs(char:GetChildren()) do
670
  if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "T-Shirt" or v.ClassName == "ShirtGraphic" then
671
    v:remove()
672
  end
673
end
674
shirt = Instance.new("Shirt", char)
675
pants = Instance.new("Pants", char)
676
face = Instance.new("Decal", char.Head)
677
face.Texture = "http://www.roblox.com/asset/?id=400387868"
678
shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=334755544"
679
pants.PantsTemplate = "http://www.roblox.com/asset/?id=315964941"
680
local Hat = char:FindFirstChild("Hat_F") or Instance.new("Hat")
681
Hat.AttachmentPos = Vector3.new(0, 0.33, 0)
682
Hat.Name = "Hat_F"
683
local Handle = Hat:FindFirstChild("Handle") or Instance.new("Part", Hat)
684
if Handle.Name ~= "Handle" then
685
  Handle.Size = Vector3.new(1, 1, 1)
686
end
687
Handle.BottomSurface = 0
688
Handle.Name = "Handle"
689
Handle.TopSurface = 0
690
Handle.Locked = 1
691
local Mesh = Hat:FindFirstChild("Mesh") or Instance.new("SpecialMesh", Handle)
692
Mesh.TextureId = "http://www.roblox.com/asset/?id="
693
Mesh.MeshId = "http://www.roblox.com/asset/?id=495214311"
694
Mesh.Scale = Vector3.new(1.05, 1.05, 1.05)
695
Hat.Parent = char
696
RW, LW = Instance.new("Weld"), Instance.new("Weld")
697
RW.Name = "Right Shoulder"
698
LW.Name = "Left Shoulder"
699
RSH, LSH = nil, nil
700
LS = Torso["Left Shoulder"]
701
LH = Torso["Left Hip"]
702
RS = Torso["Right Shoulder"]
703
RH = Torso["Right Hip"]
704
RSH = char.Torso["Right Shoulder"]
705
LSH = char.Torso["Left Shoulder"]
706
local LSounds = {
707
  MegaloStrikesBack = Instance.new("Sound")
708
}
709
LSounds.MegaloStrikesBack.SoundId = "http://www.roblox.com/asset?id=1313342415"
710
LSounds.MegaloStrikesBack.Volume = 10
711
function PlayLoopedSound(soundname, pitch)
712
  LSounds[soundname].Parent = char.Torso
713
  LSounds[soundname].Pitch = pitch
714
  LSounds[soundname]:Play()
715
  LSounds[soundname].Looped = true
716
  oldloopedsound = LSounds[soundname]
717
  LSounds[soundname] = LSounds[soundname]:clone()
718
end
719
local Sounds = {
720
  Hurt = Instance.new("Sound"),
721
  Slash = Instance.new("Sound"),
722
  Explode = Instance.new("Sound"),
723
  Sans = Instance.new("Sound")
724
}
725
Sounds.Slash.SoundId = "http://www.roblox.com/asset?id=394934205"
726
Sounds.Slash.Volume = 1
727
Sounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
728
Sounds.Hurt.Volume = 1
729
Sounds.Sans.SoundId = "http://www.roblox.com/asset?id=388205678"
730
Sounds.Sans.Volume = 1
731
Sounds.Explode.SoundId = "rbxasset://sounds/collide.wav"
732
Sounds.Explode.Volume = 1
733
function PlaySound(soundname, pitch)
734
  Sounds[soundname].Parent = Torso
735
  Sounds[soundname].Pitch = pitch
736
  Sounds[soundname]:Play()
737
  local oldsound = Sounds[soundname]
738
  coroutine.resume(coroutine.create(function()
739
    wait(4)
740
    oldsound:Destroy()
741
  end))
742
  Sounds[soundname] = Sounds[soundname]:clone()
743
end
744
--char.Humanoid.MaxHealth = 99999999999999999999999999
745
--char.Humanoid.Health = 9999999999999999999999999999
746
function CharaTalks()
747
  local m = Instance.new("Model", char.Head)
748
  m.Name = "* W"
749
  local chat = Instance.new("Part", m)
750
  chat.TopSurface = "Smooth"
751
  chat.BottomSurface = "Smooth"
752
  chat.Name = "Head"
753
  chat.FormFactor = "Custom"
754
  chat.Size = Vector3.new(0.05, 0.05, 0.1)
755
  chat.Transparency = 0.9
756
  chat.CanCollide = false
757
  chat.Anchored = true
758
  chat.CFrame = char.Head.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
759
  local h = Instance.new("Humanoid", m)
760
  h.MaxHealth = 0
761
  m.Name = "* We"
762
  wait()
763
  m.Name = "* Wel"
764
  wait()
765
  m.Name = "* Welc"
766
  wait()
767
  m.Name = "* Welco"
768
  wait()
769
  m.Name = "* Welcom"
770
  wait()
771
  m.Name = "* Welcome"
772
  wait()
773
  m.Name = "* Welcome "
774
  wait()
775
  m.Name = "* Welcome t"
776
  wait()
777
  m.Name = "* Welcome to"
778
  wait()
779
  m.Name = "* Welcome to "
780
  wait()
781
  m.Name = "* Welcome to m"
782
  wait()
783
  m.Name = "* Welcome to my"
784
  wait()
785
  m.Name = "* Welcome to my "
786
  wait()
787
  m.Name = "* Welcome to my S"
788
  wait()
789
  m.Name = "* Welcome to my SP"
790
  wait()
791
  m.Name = "* Welcome to my SPE"
792
  wait()
793
  m.Name = "* Welcome to my SPEC"
794
  wait()
795
  m.Name = "* Welcome to my SPECI"
796
  wait()
797
  m.Name = "* Welcome to my SPECIA"
798
  wait()
799
  m.Name = "* Welcome to my SPECIAL"
800
  wait()
801
  m.Name = "* Welcome to my SPECIAL "
802
  wait()
803
  m.Name = "* Welcome to my SPECIAL A"
804
  wait()
805
  m.Name = "* Welcome to my SPECIAL AT"
806
  wait()
807
  m.Name = "* Welcome to my SPECIAL ATT"
808
  wait()
809
  m.Name = "* Welcome to my SPECIAL ATTA"
810
  wait()
811
  m.Name = "* Welcome to my SPECIAL ATTAC"
812
  wait()
813
  m.Name = "* Welcome to my SPECIAL ATTACK"
814
  wait()
815
  m.Name = "* Welcome to my SPECIAL ATTACK!"
816
  wait()
817
  m:remove()
818
end
819
function GETDUNKED()
820
  coroutine.resume(coroutine.create(function()
821
    local m = Instance.new("Model", char.Head)
822
    m.Name = "* G"
823
    local chat = Instance.new("Part", m)
824
    chat.TopSurface = "Smooth"
825
    chat.BottomSurface = "Smooth"
826
    chat.Name = "Head"
827
    chat.FormFactor = "Custom"
828
    chat.Size = Vector3.new(0.05, 0.05, 0.1)
829
    chat.Transparency = 0.9
830
    chat.CanCollide = false
831
    chat.Anchored = true
832
    chat.CFrame = char.Head.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
833
    local h = Instance.new("Humanoid", m)
834
    h.MaxHealth = 0
835
    PlaySound("Sans", 1)
836
    m.Name = "* GE"
837
    wait(0.1)
838
    PlaySound("Sans", 1)
839
    m.Name = "* GEE"
840
    wait(0.1)
841
    PlaySound("Sans", 1)
842
    m.Name = "* GEEE"
843
    wait(0.1)
844
    PlaySound("Sans", 1)
845
    m.Name = "* GEEET"
846
    wait(0.1)
847
    PlaySound("Sans", 1)
848
    m.Name = "* GEEETT"
849
    wait(0.1)
850
    PlaySound("Sans", 1)
851
    m.Name = "* GEEETTT"
852
    wait(0.3)
853
    PlaySound("Sans", 1)
854
    m.Name = "* GEEETTT D"
855
    wait(0.1)
856
    PlaySound("Sans", 1)
857
    m.Name = "* GEEETTT DU"
858
    wait(0.1)
859
    PlaySound("Sans", 1)
860
    m.Name = "* GEEETTT DUN"
861
    wait(0.1)
862
    PlaySound("Sans", 1)
863
    m.Name = "* GEEETTT DUNK"
864
    wait(0.1)
865
    PlaySound("Sans", 1)
866
    m.Name = "* GEEETTT DUNKE"
867
    wait(0.1)
868
    PlaySound("Sans", 1)
869
    m.Name = "* GEEETTT DUNKED"
870
    wait(0.3)
871
    PlaySound("Sans", 1)
872
    m.Name = "* GEEETTT DUNKED O"
873
    wait(0.1)
874
    PlaySound("Sans", 1)
875
    m.Name = "* GEEETTT DUNKED ON"
876
    wait(0.1)
877
    PlaySound("Sans", 1)
878
    m.Name = "* GEEETTT DUNKED ON!"
879
    wait(0.3)
880
    PlaySound("Sans", 1)
881
    m.Name = "* Y"
882
    wait(0.1)
883
    PlaySound("Sans", 1)
884
    m.Name = "* Yo"
885
    wait(0.1)
886
    PlaySound("Sans", 1)
887
    m.Name = "* You"
888
    wait(0.1)
889
    PlaySound("Sans", 1)
890
    m.Name = "* You m"
891
    wait(0.1)
892
    PlaySound("Sans", 1)
893
    m.Name = "* You me"
894
    wait(0.1)
895
    PlaySound("Sans", 1)
896
    m.Name = "* You meg"
897
    wait(0.1)
898
    PlaySound("Sans", 1)
899
    m.Name = "* You mega"
900
    wait(0.1)
901
    PlaySound("Sans", 1)
902
    m.Name = "* You megal"
903
    wait(0.1)
904
    PlaySound("Sans", 1)
905
    m.Name = "* You megalo"
906
    wait(0.1)
907
    PlaySound("Sans", 1)
908
    m.Name = "* You megalom"
909
    wait(0.1)
910
    PlaySound("Sans", 1)
911
    m.Name = "* You megaloma"
912
    wait(0.1)
913
    PlaySound("Sans", 1)
914
    m.Name = "* You megaloman"
915
    wait(0.1)
916
    PlaySound("Sans", 1)
917
    m.Name = "* You megalomani"
918
    wait(0.1)
919
    PlaySound("Sans", 1)
920
    m.Name = "* You megalomania"
921
    wait(0.1)
922
    PlaySound("Sans", 1)
923
    m.Name = "* You megalomaniac"
924
    wait(0.1)
925
    PlaySound("Sans", 1)
926
    m.Name = "* You megalomaniac!"
927
    wait(3)
928
    m:remove()
929
  end))
930
end
931
function startup()
932
  coroutine.resume(coroutine.create(function()
933
    local m = Instance.new("Model", char)
934
    m.Name = "* C"
935
    local chat = Instance.new("Part", m)
936
    chat.TopSurface = "Smooth"
937
    chat.BottomSurface = "Smooth"
938
    chat.Name = "Head"
939
    chat.FormFactor = "Custom"
940
    chat.Size = Vector3.new(0.05, 0.05, 0.1)
941
    chat.Transparency = 0.9
942
    chat.CanCollide = false
943
    local Weld7 = Instance.new("Weld", char)
944
    Weld7.Part0 = char.Head
945
    Weld7.Part1 = chat
946
    Weld7.C1 = CFrame.new(0, -2, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
947
    local cy7 = Instance.new("BlockMesh", chat)
948
    local h = Instance.new("Humanoid", m)
949
    h.MaxHealth = 0
950
    m.Name = "* Ch"
951
    wait(0.2)
952
    m.Name = "* Cha"
953
    wait(0.2)
954
    m.Name = "* Char"
955
    wait(0.2)
956
    m.Name = "* Chara"
957
    wait(0.2)
958
    m.Name = "* Chara."
959
    wait(0.5)
960
    m.Name = "* Chara.."
961
    wait(0.5)
962
    m.Name = "* Chara..."
963
    wait(0.5)
964
    wait(5)
965
    m:remove()
966
  end))
967
end
968
startup()
969
PlayLoopedSound("MegaloStrikesBack", 1)
970
Tool = Instance.new("HopperBin", player.Backpack)
971
Tool.Name = "Charas Megalovania Knife"
972
Tool.Selected:connect(function(mouse)
973
  RW.Part0 = char.Torso
974
  RW.C0 = CFrame.new(1.5, 0.5, 0)
975
  RW.C1 = CFrame.new(0, 0.5, 0)
976
  RW.Part1 = char["Right Arm"]
977
  RW.Parent = char.Torso
978
  handle = Instance.new("Part", suit)
979
  handle.TopSurface = "Smooth"
980
  handle.BottomSurface = "Smooth"
981
  handle.Size = Vector3.new(0.2, 0.5, 0.5)
982
  handle.CanCollide = false
983
  handle.BrickColor = BrickColor.new("Dark stone grey")
984
  handle.FormFactor = "Custom"
985
  local Weldb = Instance.new("Weld", char)
986
  Weldb.Part0 = char["Right Arm"]
987
  Weldb.Part1 = handle
988
  Weldb.C1 = CFrame.new(0, -1.6, 0.8) * CFrame.fromEulerAnglesXYZ(-4.2, 0, 0)
989
  local KnifeMesh = Instance.new("SpecialMesh", handle)
990
  KnifeMesh.MeshType = "FileMesh"
991
  KnifeMesh.MeshId = "http://www.roblox.com/asset/?id=121944778"
992
  KnifeMesh.TextureId = "http://www.roblox.com/asset/?id=121944805"
993
  function touch(hit)
994
    if vDebounce == true and hit.Parent:findFirstChild("Humanoid") ~= nil then
995
      if hit.Parent.Name == char.Name then
996
        return
997
      end
998
      hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 100000000000000000000000000000000
999
      do
1000
        local HitSounds = {
1001
          Hurt = Instance.new("Sound")
1002
        }
1003
        HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=571898289"
1004
        HitSounds.Hurt.Volume = 1
1005
        function PlayHitSound(soundname, pitch)
1006
          HitSounds[soundname].Parent = hit.Parent.Torso
1007
          HitSounds[soundname].Pitch = pitch
1008
          HitSounds[soundname]:Play()
1009
          local oldsound = HitSounds[soundname]
1010
          coroutine.resume(coroutine.create(function()
1011
            wait(4)
1012
            oldsound:Destroy()
1013
          end))
1014
          HitSounds[soundname] = HitSounds[soundname]:clone()
1015
        end
1016
        PlayHitSound("Hurt", 1)
1017
      end
1018
    end
1019
  end
1020
  handle.Touched:connect(touch)
1021
  function teleportPlayer(pos)
1022
    if player == nil or player.Character == nil then
1023
      return
1024
    end
1025
    Torso.CFrame = CFrame.new(Vector3.new(pos.x, pos.y, pos.z))
1026
  end
1027
  function slash1()
1028
    if not vDebounce then
1029
      vDebounce = true
1030
      RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
1031
      RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
1032
      wait(0.1)
1033
      PlaySound("Slash", 1)
1034
      coroutine.resume(coroutine.create(function()
1035
        for i = 1, 10 do
1036
          wait()
1037
          local RedSlash = Instance.new("Part", suit)
1038
          RedSlash.FormFactor = "Custom"
1039
          RedSlash.Size = Vector3.new(0.5, 2, 0.5)
1040
          RedSlash.Transparency = 0.5
1041
          local selectionBox = Instance.new("SelectionBox", RedSlash)
1042
          selectionBox.Adornee = RedSlash
1043
          selectionBox.Color = BrickColor.new("Red")
1044
          selectionBox.LineThickness = 0.005
1045
          RedSlash.TopSurface = 0
1046
          RedSlash.BottomSurface = 0
1047
          local colorc = {"Red"}
1048
          local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
1049
          RedSlash.BrickColor = Fire
1050
          RedSlash.CanCollide = false
1051
          RedSlash.Anchored = true
1052
          RedSlash.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
1053
          game.Debris:AddItem(RedSlash, 0.1)
1054
        end
1055
      end))
1056
      for i = 1, 3 do
1057
        wait()
1058
        RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
1059
        RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
1060
      end
1061
      wait(0.3)
1062
      RW.C0 = CFrame.new(1.5, 0.5, 0)
1063
      RW.C1 = CFrame.new(0, 0.5, 0)
1064
      slashvalue = slashvalue + 1
1065
      vDebounce = false
1066
    end
1067
  end
1068
  function slash2()
1069
    if not vDebounce then
1070
      vDebounce = true
1071
      coroutine.resume(coroutine.create(function()
1072
        for i = 1, 20 do
1073
          wait()
1074
          local RedSlash2 = Instance.new("Part", suit)
1075
          RedSlash2.FormFactor = "Custom"
1076
          RedSlash2.Size = Vector3.new(0.5, 2, 0.5)
1077
          RedSlash2.Transparency = 0.5
1078
          local selectionBox = Instance.new("SelectionBox", RedSlash2)
1079
          selectionBox.Adornee = RedSlash2
1080
          selectionBox.Color = BrickColor.new("Really black")
1081
          selectionBox.LineThickness = 0.005
1082
          RedSlash2.TopSurface = 0
1083
          RedSlash2.BottomSurface = 0
1084
          local colorc = {"Black"}
1085
          local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
1086
          RedSlash2.BrickColor = Fire
1087
          RedSlash2.CanCollide = false
1088
          RedSlash2.Anchored = true
1089
          RedSlash2.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
1090
          game.Debris:AddItem(RedSlash2, 0.2)
1091
        end
1092
      end))
1093
      for i = 1, 10 do
1094
        wait()
1095
        RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
1096
        RW.C1 = cf(0, 0.5, 0) * euler(0.1 * i, 0, 0)
1097
      end
1098
      PlaySound("Slash", 1)
1099
      for i = 1, 3 do
1100
        wait()
1101
        RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
1102
        RW.C1 = cf(0, 0.5, 0) * euler(-0.5 * i, 0, 0)
1103
      end
1104
      wait(0.3)
1105
      RW.C0 = CFrame.new(1.5, 0.5, 0)
1106
      RW.C1 = CFrame.new(0, 0.5, 0)
1107
      slashvalue = slashvalue + 1
1108
      vDebounce = false
1109
    end
1110
  end
1111
  function slash3()
1112
    if not vDebounce then
1113
      vDebounce = true
1114
      PlaySound("Slash", 1)
1115
      coroutine.resume(coroutine.create(function()
1116
        for i = 1, 20 do
1117
          wait()
1118
          local RedSlash3 = Instance.new("Part", suit)
1119
          RedSlash3.FormFactor = "Custom"
1120
          RedSlash3.Size = Vector3.new(0.5, 2, 0.5)
1121
          RedSlash3.Transparency = 0.5
1122
          local selectionBox = Instance.new("SelectionBox", RedSlash3)
1123
          selectionBox.Adornee = RedSlash3
1124
          selectionBox.Color = BrickColor.new("Red")
1125
          selectionBox.LineThickness = 0.005
1126
          RedSlash3.TopSurface = 0
1127
          RedSlash3.BottomSurface = 0
1128
          local colorc = {"Red"}
1129
          local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
1130
          RedSlash3.BrickColor = Fire
1131
          RedSlash3.CanCollide = false
1132
          RedSlash3.Anchored = true
1133
          RedSlash3.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
1134
          game.Debris:AddItem(RedSlash3, 0.3)
1135
        end
1136
      end))
1137
      for i = 1, 3 do
1138
        wait()
1139
        RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
1140
        RW.C1 = cf(0, 0.5, 0) * euler(-0.5 * i, 0, 0)
1141
      end
1142
      wait(0.3)
1143
      PlaySound("Slash", 1)
1144
      for i = 1, 3 do
1145
        wait()
1146
        RW.C0 = cf(1.5, 0.5, 0) * euler(1.5, 0, 0)
1147
        RW.C1 = cf(0, 0.5, 0) * euler(0.6 * i, 0, 0)
1148
      end
1149
      wait(0.3)
1150
      RW.C0 = CFrame.new(1.5, 0.5, 0)
1151
      RW.C1 = CFrame.new(0, 0.5, 0)
1152
      slashvalue = slashvalue - 2
1153
      vDebounce = false
1154
    end
1155
  end
1156
  function KnifeBeam1()
1157
    if not vDebounce then
1158
      vDebounce = true
1159
      RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
1160
      RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
1161
      wait(0.1)
1162
      PlaySound("Slash", 1)
1163
      coroutine.resume(coroutine.create(function()
1164
        for i = 1, 10 do
1165
          wait()
1166
          local p = Instance.new("Part", handle)
1167
          p.FormFactor = "Custom"
1168
          p.Size = Vector3.new(1, 0.5, 1)
1169
          p.Transparency = 0.5
1170
          local selectionBox = Instance.new("SelectionBox", p)
1171
          selectionBox.Adornee = p
1172
          selectionBox.Color = BrickColor.new("Red")
1173
          selectionBox.LineThickness = 0.005
1174
          p.Material = "Neon"
1175
          p.TopSurface = 0
1176
          p.BottomSurface = 0
1177
          local colorc = {"Red"}
1178
          local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
1179
          p.BrickColor = Fire
1180
          p.CanCollide = false
1181
          p.Anchored = true
1182
          p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
1183
          game.Debris:AddItem(p, 0.1)
1184
        end
1185
      end))
1186
      for i = 1, 3 do
1187
        wait()
1188
        RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
1189
        RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
1190
      end
1191
      coroutine.resume(coroutine.create(function()
1192
        local ps = Instance.new("Part", suit)
1193
        ps.Name = "MagicPart"
1194
        ps.TopSurface = "Smooth"
1195
        ps.BottomSurface = "Smooth"
1196
        ps.BrickColor = BrickColor.new("Institutional white")
1197
        ps.Material = "Neon"
1198
        ps.FormFactor = "Custom"
1199
        ps.Size = Vector3.new(5, 1, 1)
1200
        ps.Anchored = true
1201
        ps.Transparency = 0.5
1202
        ps.CanCollide = false
1203
        ps.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 1)
1204
        local selectionBox = Instance.new("SelectionBox", ps)
1205
        selectionBox.Adornee = ps
1206
        selectionBox.Color = BrickColor.new("Black")
1207
        selectionBox.LineThickness = 0.2
1208
        selectionBox.Transparency = 0.5
1209
        function touch(hit)
1210
          if hit.Parent.Name == char.Name then
1211
            return
1212
          end
1213
          if hit.Parent:findFirstChild("Humanoid") ~= nil then
1214
            ps:remove()
1215
            if hit.Parent.Name == char.Name then
1216
              return
1217
            end
1218
            hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 100000000000000000000000000000000000000000000000000000000000000000000
1219
            do
1220
              local HitSounds = {
1221
                Hurt = Instance.new("Sound")
1222
              }
1223
              HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
1224
              HitSounds.Hurt.Volume = 1
1225
              function PlayHitSound(soundname, pitch)
1226
                HitSounds[soundname].Parent = hit.Parent.Torso
1227
                HitSounds[soundname].Pitch = pitch
1228
                HitSounds[soundname]:Play()
1229
                local oldsound = HitSounds[soundname]
1230
                coroutine.resume(coroutine.create(function()
1231
                  wait(4)
1232
                  oldsound:Destroy()
1233
                end))
1234
                HitSounds[soundname] = HitSounds[soundname]:clone()
1235
              end
1236
              PlayHitSound("Hurt", 1)
1237
            end
1238
          end
1239
        end
1240
        ps.Touched:connect(touch)
1241
        coroutine.resume(coroutine.create(function()
1242
          for i = 1, 50 do
1243
            wait()
1244
            ps.CFrame = ps.CFrame * CFrame.new(0, 0, -4)
1245
          end
1246
          ps.Transparency = ps.Transparency + 1
1247
          wait()
1248
          ps.Transparency = ps.Transparency + 1
1249
          wait()
1250
          ps.Transparency = ps.Transparency + 1
1251
          wait()
1252
          ps.Transparency = ps.Transparency + 1
1253
          wait()
1254
          ps.Transparency = ps.Transparency + 1
1255
          wait()
1256
          ps:remove()
1257
        end))
1258
      end))
1259
      wait(0.3)
1260
      RW.C0 = CFrame.new(1.5, 0.5, 0)
1261
      RW.C1 = CFrame.new(0, 0.5, 0)
1262
      beamvalue = beamvalue + 1
1263
      vDebounce = false
1264
    end
1265
  end
1266
  function KnifeBeam2()
1267
    if not vDebounce then
1268
      vDebounce = true
1269
      coroutine.resume(coroutine.create(function()
1270
        for i = 1, 20 do
1271
          wait()
1272
          local p = Instance.new("Part", handle)
1273
          p.FormFactor = "Custom"
1274
          p.Size = Vector3.new(1, 0.5, 1)
1275
          p.Transparency = 0.5
1276
          local selectionBox = Instance.new("SelectionBox", p)
1277
          selectionBox.Adornee = p
1278
          selectionBox.Color = BrickColor.new("Red")
1279
          selectionBox.LineThickness = 0.005
1280
          p.TopSurface = 0
1281
          p.BottomSurface = 0
1282
          local colorc = {"Red"}
1283
          local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
1284
          p.BrickColor = Fire
1285
          p.CanCollide = false
1286
          p.Anchored = true
1287
          p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
1288
          game.Debris:AddItem(p, 0.2)
1289
        end
1290
      end))
1291
      for i = 1, 10 do
1292
        wait()
1293
        RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
1294
        RW.C1 = cf(0, 0.5, 0) * euler(0.1 * i, 0, 0)
1295
      end
1296
      PlaySound("Slash", 1)
1297
      for i = 1, 3 do
1298
        wait()
1299
        RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
1300
        RW.C1 = cf(0, 0.5, 0) * euler(-0.5 * i, 0, 0)
1301
      end
1302
      coroutine.resume(coroutine.create(function()
1303
        local ps = Instance.new("Part", suit)
1304
        ps.Name = "MagicPart"
1305
        ps.TopSurface = "Smooth"
1306
        ps.BottomSurface = "Smooth"
1307
        ps.BrickColor = BrickColor.new("Institutional white")
1308
        ps.Material = "Neon"
1309
        ps.FormFactor = "Custom"
1310
        ps.Size = Vector3.new(1, 5, 1)
1311
        ps.Anchored = true
1312
        ps.Transparency = 0.5
1313
        ps.CanCollide = false
1314
        ps.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(-10, 0, 0)
1315
        local selectionBox = Instance.new("SelectionBox", ps)
1316
        selectionBox.Adornee = ps
1317
        selectionBox.Color = BrickColor.new("Black")
1318
        selectionBox.LineThickness = 0.2
1319
        selectionBox.Transparency = 0.5
1320
        function touch(hit)
1321
          if hit.Parent.Name == char.Name then
1322
            return
1323
          end
1324
          if hit.Parent:findFirstChild("Humanoid") ~= nil then
1325
            ps:remove()
1326
            if hit.Parent.Name == char.Name then
1327
              return
1328
            end
1329
            hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 10000000000000000000000000000000000000000000000000
1330
            do
1331
              local HitSounds = {
1332
                Hurt = Instance.new("Sound")
1333
              }
1334
              HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
1335
              HitSounds.Hurt.Volume = 1
1336
              function PlayHitSound(soundname, pitch)
1337
                HitSounds[soundname].Parent = hit.Parent.Torso
1338
                HitSounds[soundname].Pitch = pitch
1339
                HitSounds[soundname]:Play()
1340
                local oldsound = HitSounds[soundname]
1341
                coroutine.resume(coroutine.create(function()
1342
                  wait(4)
1343
                  oldsound:Destroy()
1344
                end))
1345
                HitSounds[soundname] = HitSounds[soundname]:clone()
1346
              end
1347
              PlayHitSound("Hurt", 1)
1348
            end
1349
          end
1350
        end
1351
        ps.Touched:connect(touch)
1352
        coroutine.resume(coroutine.create(function()
1353
          for i = 1, 50 do
1354
            wait()
1355
            ps.CFrame = ps.CFrame * CFrame.new(0, -1.9, 3)
1356
          end
1357
          ps.Transparency = ps.Transparency + 1
1358
          wait()
1359
          ps.Transparency = ps.Transparency + 1
1360
          wait()
1361
          ps.Transparency = ps.Transparency + 1
1362
          wait()
1363
          ps.Transparency = ps.Transparency + 1
1364
          wait()
1365
          ps.Transparency = ps.Transparency + 1
1366
          wait()
1367
          ps:remove()
1368
        end))
1369
      end))
1370
      wait(0.3)
1371
      RW.C0 = CFrame.new(1.5, 0.5, 0)
1372
      RW.C1 = CFrame.new(0, 0.5, 0)
1373
      beamvalue = beamvalue + 1
1374
      vDebounce = false
1375
    end
1376
  end
1377
  function KnifeBeam3()
1378
    if not vDebounce then
1379
      vDebounce = true
1380
      RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
1381
      RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
1382
      wait(0.1)
1383
      PlaySound("Slash", 1)
1384
      coroutine.resume(coroutine.create(function()
1385
        for i = 1, 10 do
1386
          wait()
1387
          local p = Instance.new("Part", handle)
1388
          p.FormFactor = "Custom"
1389
          p.Size = Vector3.new(1, 0.5, 1)
1390
          p.Transparency = 0.5
1391
          local selectionBox = Instance.new("SelectionBox", p)
1392
          selectionBox.Adornee = p
1393
          selectionBox.Color = BrickColor.new("Really black")
1394
          selectionBox.LineThickness = 0.005
1395
          p.Material = "Neon"
1396
          p.TopSurface = 0
1397
          p.BottomSurface = 0
1398
          local colorc = {"Black"}
1399
          local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
1400
          p.BrickColor = Fire
1401
          p.CanCollide = false
1402
          p.Anchored = true
1403
          p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
1404
          game.Debris:AddItem(p, 0.1)
1405
        end
1406
      end))
1407
      for i = 1, 3 do
1408
        wait()
1409
        RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
1410
        RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
1411
      end
1412
      coroutine.resume(coroutine.create(function()
1413
        local ps = Instance.new("Part", suit)
1414
        ps.Name = "MagicPart"
1415
        ps.TopSurface = "Smooth"
1416
        ps.BottomSurface = "Smooth"
1417
        ps.BrickColor = BrickColor.new("Institutional white")
1418
        ps.Material = "Neon"
1419
        ps.FormFactor = "Custom"
1420
        ps.Size = Vector3.new(10, 10, 1)
1421
        ps.Anchored = true
1422
        ps.Transparency = 0.5
1423
        ps.CanCollide = false
1424
        ps.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 0)
1425
        local selectionBox = Instance.new("SelectionBox", ps)
1426
        selectionBox.Adornee = ps
1427
        selectionBox.Color = BrickColor.new("Black")
1428
        selectionBox.LineThickness = 0.2
1429
        selectionBox.Transparency = 0.5
1430
        function touch(hit)
1431
          if hit.Parent.Name == char.Name then
1432
            return
1433
          end
1434
          if hit.Parent:findFirstChild("Humanoid") ~= nil then
1435
            ps:remove()
1436
            if hit.Parent.Name == char.Name then
1437
              return
1438
            end
1439
            hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 100000000000000000000000000000000000000000000
1440
            do
1441
              local HitSounds = {
1442
                Hurt = Instance.new("Sound")
1443
              }
1444
              HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
1445
              HitSounds.Hurt.Volume = 1
1446
              function PlayHitSound(soundname, pitch)
1447
                HitSounds[soundname].Parent = hit.Parent.Torso
1448
                HitSounds[soundname].Pitch = pitch
1449
                HitSounds[soundname]:Play()
1450
                local oldsound = HitSounds[soundname]
1451
                coroutine.resume(coroutine.create(function()
1452
                  wait(4)
1453
                  oldsound:Destroy()
1454
                end))
1455
                HitSounds[soundname] = HitSounds[soundname]:clone()
1456
              end
1457
              PlayHitSound("Hurt", 1)
1458
            end
1459
          end
1460
        end
1461
        ps.Touched:connect(touch)
1462
        coroutine.resume(coroutine.create(function()
1463
          for i = 1, 50 do
1464
            wait()
1465
            ps.CFrame = ps.CFrame * CFrame.new(0, 0, -5)
1466
          end
1467
          ps.Transparency = ps.Transparency + 1
1468
          wait()
1469
          ps.Transparency = ps.Transparency + 1
1470
          wait()
1471
          ps.Transparency = ps.Transparency + 1
1472
          wait()
1473
          ps.Transparency = ps.Transparency + 1
1474
          wait()
1475
          ps.Transparency = ps.Transparency + 1
1476
          wait()
1477
          ps:remove()
1478
        end))
1479
      end))
1480
      wait(0.3)
1481
      RW.C0 = CFrame.new(1.5, 0.5, 0)
1482
      RW.C1 = CFrame.new(0, 0.5, 0)
1483
      beamvalue = beamvalue - 2
1484
      vDebounce = false
1485
    end
1486
  end
1487
  function drawded()
1488
    if onehitkill == true then
1489
      onehitkill = false
1490
      RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
1491
      RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
1492
      wait(0.1)
1493
      PlaySound("Slash", 1)
1494
      coroutine.resume(coroutine.create(function()
1495
        for i = 1, 10 do
1496
          wait()
1497
          local p = Instance.new("Part", handle)
1498
          p.FormFactor = "Custom"
1499
          p.Size = Vector3.new(1, 1, 1)
1500
          p.Transparency = 0.5
1501
          local selectionBox = Instance.new("SelectionBox", p)
1502
          selectionBox.Adornee = p
1503
          selectionBox.Color = BrickColor.new("Red")
1504
          selectionBox.LineThickness = 0.001
1505
          p.TopSurface = 0
1506
          p.BottomSurface = 0
1507
          local colorc = {
1508
            "Red"
1509
          }
1510
          local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
1511
          p.BrickColor = Fire
1512
          p.CanCollide = false
1513
          p.Anchored = true
1514
          p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
1515
          game.Debris:AddItem(p, 0.1)
1516
        end
1517
      end))
1518
      for i = 1, 3 do
1519
        wait()
1520
        RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
1521
        RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
1522
      end
1523
      coroutine.resume(coroutine.create(function()
1524
        ultra = Instance.new("Part", suit)
1525
        ultra.Name = "MagicPart"
1526
        ultra.TopSurface = "Smooth"
1527
        ultra.BottomSurface = "Smooth"
1528
        ultra.BrickColor = BrickColor.new("Really black")
1529
        ultra.Material = "Neon"
1530
        ultra.FormFactor = "Custom"
1531
        ultra.Size = Vector3.new(5, 1, 1)
1532
        ultra.Anchored = true
1533
        ultra.CanCollide = false
1534
        ultra.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 1)
1535
        local selectionBox = Instance.new("SelectionBox", ultra)
1536
        selectionBox.Adornee = ultra
1537
        selectionBox.Color = BrickColor.new("Really black")
1538
        selectionBox.LineThickness = 0.01
1539
        selectionBox.Transparency = 0
1540
      end))
1541
      wait(0.3)
1542
      RW.C0 = CFrame.new(1.5, 0.5, 0)
1543
      RW.C1 = CFrame.new(0, 0.5, 0)
1544
      RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
1545
      RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
1546
      wait(0.1)
1547
      PlaySound("Slash", 1)
1548
      coroutine.resume(coroutine.create(function()
1549
        for i = 1, 10 do
1550
          wait()
1551
          local p = Instance.new("Part", handle)
1552
          p.FormFactor = "Custom"
1553
          p.Size = Vector3.new(1, 0.5, 1)
1554
          p.Transparency = 0.5
1555
          local selectionBox = Instance.new("SelectionBox", p)
1556
          selectionBox.Adornee = p
1557
          selectionBox.Color = BrickColor.new("Red")
1558
          selectionBox.LineThickness = 0.001
1559
          p.TopSurface = 0
1560
          p.BottomSurface = 0
1561
          local colorc = {
1562
            "Red"
1563
          }
1564
          local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
1565
          p.BrickColor = Fire
1566
          p.CanCollide = false
1567
          p.Anchored = true
1568
          p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
1569
          game.Debris:AddItem(p, 0.1)
1570
        end
1571
      end))
1572
      for i = 1, 3 do
1573
        wait()
1574
        RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
1575
        RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
1576
      end
1577
      coroutine.resume(coroutine.create(function()
1578
        ultra2 = Instance.new("Part", suit)
1579
        ultra2.Name = "MagicPart"
1580
        ultra2.TopSurface = "Smooth"
1581
        ultra2.BottomSurface = "Smooth"
1582
        ultra2.BrickColor = BrickColor.new("Red")
1583
        ultra2.Material = "Neon"
1584
        ultra2.FormFactor = "Custom"
1585
        ultra2.Size = Vector3.new(5, 1, 1)
1586
        ultra2.Anchored = true
1587
        ultra2.CanCollide = false
1588
        ultra2.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 1)
1589
        local selectionBox = Instance.new("SelectionBox", ultra2)
1590
        selectionBox.Adornee = ultra2
1591
        selectionBox.Color = BrickColor.new("Really black")
1592
        selectionBox.LineThickness = 0.01
1593
        selectionBox.Transparency = 0
1594
      end))
1595
      wait(0.3)
1596
      RW.C0 = CFrame.new(1.5, 0.5, 0)
1597
      RW.C1 = CFrame.new(0, 0.5, 0)
1598
      PlaySound("Slash", 1)
1599
      coroutine.resume(coroutine.create(function()
1600
        ultra3 = Instance.new("Part", suit)
1601
        ultra3.Name = "MagicPart"
1602
        ultra3.TopSurface = "Smooth"
1603
        ultra3.BottomSurface = "Smooth"
1604
        ultra3.BrickColor = BrickColor.new("Red")
1605
        ultra3.Material = "Neon"
1606
        ultra3.FormFactor = "Custom"
1607
        ultra3.Size = Vector3.new(1, 5, 1)
1608
        ultra3.Anchored = true
1609
        ultra3.CanCollide = false
1610
        ultra3.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 0)
1611
        local selectionBox = Instance.new("SelectionBox", ultra3)
1612
        selectionBox.Adornee = ultra3
1613
        selectionBox.Color = BrickColor.new("Red")
1614
        selectionBox.LineThickness = 0.01
1615
        selectionBox.Transparency = 0
1616
      end))
1617
      coroutine.resume(coroutine.create(function()
1618
        for i = 1, 10 do
1619
          wait()
1620
          local p = Instance.new("Part", handle)
1621
          p.FormFactor = "Custom"
1622
          p.Size = Vector3.new(1, 0.5, 1)
1623
          p.Transparency = 0.5
1624
          local selectionBox = Instance.new("SelectionBox", p)
1625
          selectionBox.Adornee = p
1626
          selectionBox.Color = BrickColor.new("Red")
1627
          selectionBox.LineThickness = 0.001
1628
          p.TopSurface = 0
1629
          p.BottomSurface = 0
1630
          local colorc = {
1631
            "Red"
1632
          }
1633
          local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
1634
          p.BrickColor = Fire
1635
          p.CanCollide = false
1636
          p.Anchored = true
1637
          p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
1638
          game.Debris:AddItem(p, 0.1)
1639
        end
1640
      end))
1641
      coroutine.resume(coroutine.create(function()
1642
        for i = 1, 20 do
1643
          wait()
1644
          local p = Instance.new("Part", handle)
1645
          p.FormFactor = "Custom"
1646
          p.Size = Vector3.new(1, 0.5, 1)
1647
          p.Transparency = 0.5
1648
          local selectionBox = Instance.new("SelectionBox", p)
1649
          selectionBox.Adornee = p
1650
          selectionBox.Color = BrickColor.new("Red")
1651
          selectionBox.LineThickness = 0.005
1652
          p.TopSurface = 0
1653
          p.BottomSurface = 0
1654
          local colorc = {"Black"}
1655
          local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
1656
          p.BrickColor = Fire
1657
          p.CanCollide = false
1658
          p.Anchored = true
1659
          p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
1660
          game.Debris:AddItem(p, 0.3)
1661
        end
1662
      end))
1663
      for i = 1, 3 do
1664
        wait()
1665
        RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
1666
        RW.C1 = cf(0, 0.5, 0) * euler(-0.5 * i, 0, 0)
1667
      end
1668
      wait(0.3)
1669
      PlaySound("Slash", 1)
1670
      coroutine.resume(coroutine.create(function()
1671
        ultra4 = Instance.new("Part", suit)
1672
        ultra4.Name = "MagicPart"
1673
        ultra4.TopSurface = "Smooth"
1674
        ultra4.BottomSurface = "Smooth"
1675
        ultra4.BrickColor = BrickColor.new("Red")
1676
        ultra4.Material = "Neon"
1677
        ultra4.FormFactor = "Custom"
1678
        ultra4.Size = Vector3.new(1, 5, 1)
1679
        ultra4.Anchored = true
1680
        ultra4.CanCollide = false
1681
        ultra4.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 0)
1682
        local selectionBox = Instance.new("SelectionBox", ultra3)
1683
        selectionBox.Adornee = ultra4
1684
        selectionBox.Color = BrickColor.new("Really black")
1685
        selectionBox.LineThickness = 0.01
1686
        selectionBox.Transparency = 0
1687
      end))
1688
      for i = 1, 3 do
1689
        wait()
1690
        RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
1691
        RW.C1 = cf(0, 0.5, 0) * euler(0.3 * i, 0, 0)
1692
      end
1693
      wait(0.3)
1694
      RW.C0 = CFrame.new(1.5, 0.5, 0)
1695
      RW.C1 = CFrame.new(0, 0.5, 0)
1696
      RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
1697
      RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
1698
      wait(0.1)
1699
      PlaySound("Slash", 1)
1700
      coroutine.resume(coroutine.create(function()
1701
        for i = 1, 10 do
1702
          wait()
1703
          local p = Instance.new("Part", handle)
1704
          p.FormFactor = "Custom"
1705
          p.Size = Vector3.new(1, 0.5, 1)
1706
          p.Transparency = 0.5
1707
          local selectionBox = Instance.new("SelectionBox", p)
1708
          selectionBox.Adornee = p
1709
          selectionBox.Color = BrickColor.new("Red")
1710
          selectionBox.LineThickness = 0.001
1711
          p.TopSurface = 0
1712
          p.BottomSurface = 0
1713
          local colorc = {
1714
            "Red"
1715
          }
1716
          local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
1717
          p.BrickColor = Fire
1718
          p.CanCollide = false
1719
          p.Anchored = true
1720
          p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
1721
          game.Debris:AddItem(p, 0.1)
1722
        end
1723
      end))
1724
      for i = 1, 3 do
1725
        wait()
1726
        RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
1727
        RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
1728
      end
1729
      coroutine.resume(coroutine.create(function()
1730
        ultra5 = Instance.new("Part", suit)
1731
        ultra5.Name = "MagicPart"
1732
        ultra5.TopSurface = "Smooth"
1733
        ultra5.BottomSurface = "Smooth"
1734
        ultra5.BrickColor = BrickColor.new("Really black")
1735
        ultra5.Material = "Neon"
1736
        ultra5.FormFactor = "Custom"
1737
        ultra5.Size = Vector3.new(5, 1, 1)
1738
        ultra5.Anchored = true
1739
        ultra5.CanCollide = false
1740
        ultra5.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 1)
1741
        local selectionBox = Instance.new("SelectionBox", ultra2)
1742
        selectionBox.Adornee = ultra5
1743
        selectionBox.Color = BrickColor.new("Really black")
1744
        selectionBox.LineThickness = 0.01
1745
        selectionBox.Transparency = 0
1746
      end))
1747
      wait()
1748
      local p = Instance.new("Part", handle)
1749
      p.FormFactor = "Custom"
1750
      p.Material = "Neon"
1751
      p.Size = Vector3.new(1, 2, 1)
1752
      p.Transparency = 0
1753
      local selectionBox = Instance.new("SelectionBox", p)
1754
      selectionBox.Adornee = p
1755
      selectionBox.Color = BrickColor.new("Red")
1756
      selectionBox.LineThickness = 0.001
1757
      p.TopSurface = 0
1758
      p.BottomSurface = 0
1759
      local colorc = {
1760
        "Red"
1761
      }
1762
      local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
1763
      p.BrickColor = Fire
1764
      p.CanCollide = false
1765
      p.Anchored = true
1766
      p.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
1767
      local light1 = Instance.new("SpotLight", p)
1768
      light1.Brightness = 164
1769
      light1.Color = Color3.new(255, 0, 0)
1770
      light1.Range = 7
1771
      for i = 1, 13 do
1772
        p.Transparency = p.Transparency + 0.1
1773
        p.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
1774
        wait()
1775
      end
1776
      game.Debris:AddItem(p, 0.1)
1777
      coroutine.resume(coroutine.create(function()
1778
        coroutine.resume(coroutine.create(function()
1779
          for i = 1, 100 do
1780
            wait()
1781
            ultra.CFrame = ultra.CFrame * CFrame.new(0, 0, -4)
1782
          end
1783
        end))
1784
        coroutine.resume(coroutine.create(function()
1785
          for i = 1, 100 do
1786
            wait()
1787
            ultra2.CFrame = ultra2.CFrame * CFrame.new(0, 0, -4)
1788
          end
1789
        end))
1790
        coroutine.resume(coroutine.create(function()
1791
          for i = 1, 100 do
1792
            wait()
1793
            ultra3.CFrame = ultra3.CFrame * CFrame.new(0, 0, -4)
1794
          end
1795
        end))
1796
        coroutine.resume(coroutine.create(function()
1797
          for i = 1, 100 do
1798
            wait()
1799
            ultra4.CFrame = ultra4.CFrame * CFrame.new(0, 0, -4)
1800
          end
1801
        end))
1802
        coroutine.resume(coroutine.create(function()
1803
          for i = 1, 100 do
1804
            wait()
1805
            ultra5.CFrame = ultra5.CFrame * CFrame.new(0, 0, -4)
1806
          end
1807
        end))
1808
        wait(3)
1809
        ultra.Transparency = ultra.Transparency + 1
1810
        ultra2.Transparency = ultra2.Transparency + 1
1811
        ultra3.Transparency = ultra3.Transparency + 1
1812
        ultra4.Transparency = ultra4.Transparency + 1
1813
        ultra5.Transparency = ultra5.Transparency + 1
1814
        wait()
1815
        ultra.Transparency = ultra.Transparency + 1
1816
        ultra2.Transparency = ultra2.Transparency + 1
1817
        ultra3.Transparency = ultra3.Transparency + 1
1818
        ultra4.Transparency = ultra4.Transparency + 1
1819
        ultra5.Transparency = ultra5.Transparency + 1
1820
        wait()
1821
        ultra.Transparency = ultra.Transparency + 1
1822
        ultra2.Transparency = ultra2.Transparency + 1
1823
        ultra3.Transparency = ultra3.Transparency + 1
1824
        ultra4.Transparency = ultra4.Transparency + 1
1825
        ultra5.Transparency = ultra5.Transparency + 1
1826
        wait()
1827
        ultra.Transparency = ultra.Transparency + 1
1828
        ultra2.Transparency = ultra2.Transparency + 1
1829
        ultra3.Transparency = ultra3.Transparency + 1
1830
        ultra4.Transparency = ultra4.Transparency + 1
1831
        ultra5.Transparency = ultra5.Transparency + 1
1832
        wait()
1833
        ultra.Transparency = ultra.Transparency + 1
1834
        ultra2.Transparency = ultra2.Transparency + 1
1835
        ultra3.Transparency = ultra3.Transparency + 1
1836
        ultra4.Transparency = ultra4.Transparency + 1
1837
        ultra5.Transparency = ultra5.Transparency + 1
1838
        wait()
1839
        ultra:remove()
1840
        ultra2:remove()
1841
        ultra3:remove()
1842
        ultra4:remove()
1843
        ultra5:remove()
1844
      end))
1845
      function touch(hit)
1846
        if hit.Parent.Name == char.Name then
1847
          return
1848
        end
1849
        if hit.Parent:findFirstChild("Humanoid") ~= nil then
1850
          if hit.Parent.Name == char.Name then
1851
            return
1852
          end
1853
          hit.Parent:BreakJoints()
1854
          ultra:remove()
1855
          do
1856
            local HitSounds = {
1857
              Hurt = Instance.new("Sound")
1858
            }
1859
            HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
1860
            HitSounds.Hurt.Volume = 1
1861
            function PlayHitSound(soundname, pitch)
1862
              HitSounds[soundname].Parent = hit.Parent.Torso
1863
              HitSounds[soundname].Pitch = pitch
1864
              HitSounds[soundname]:Play()
1865
              local oldsound = HitSounds[soundname]
1866
              coroutine.resume(coroutine.create(function()
1867
                wait(4)
1868
                oldsound:Destroy()
1869
              end))
1870
              HitSounds[soundname] = HitSounds[soundname]:clone()
1871
            end
1872
            PlayHitSound("Hurt", 1)
1873
          end
1874
        end
1875
      end
1876
      ultra.Touched:connect(touch)
1877
      function touch(hit)
1878
        if hit.Parent.Name == char.Name then
1879
          return
1880
        end
1881
        if hit.Parent:findFirstChild("Humanoid") ~= nil then
1882
          if hit.Parent.Name == char.Name then
1883
            return
1884
          end
1885
          hit.Parent:BreakJoints()
1886
          ultra2:remove()
1887
          do
1888
            local HitSounds = {
1889
              Hurt = Instance.new("Sound")
1890
            }
1891
            HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
1892
            HitSounds.Hurt.Volume = 1
1893
            function PlayHitSound(soundname, pitch)
1894
              HitSounds[soundname].Parent = hit.Parent.Torso
1895
              HitSounds[soundname].Pitch = pitch
1896
              HitSounds[soundname]:Play()
1897
              local oldsound = HitSounds[soundname]
1898
              coroutine.resume(coroutine.create(function()
1899
                wait(4)
1900
                oldsound:Destroy()
1901
              end))
1902
              HitSounds[soundname] = HitSounds[soundname]:clone()
1903
            end
1904
            PlayHitSound("Hurt", 1)
1905
          end
1906
        end
1907
      end
1908
      ultra2.Touched:connect(touch)
1909
      function touch(hit)
1910
        if hit.Parent.Name == char.Name then
1911
          return
1912
        end
1913
        if hit.Parent:findFirstChild("Humanoid") ~= nil then
1914
          if hit.Parent.Name == char.Name then
1915
            return
1916
          end
1917
          hit.Parent:BreakJoints()
1918
          ultra2:remove()
1919
          do
1920
            local HitSounds = {
1921
              Hurt = Instance.new("Sound")
1922
            }
1923
            HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
1924
            HitSounds.Hurt.Volume = 1
1925
            function PlayHitSound(soundname, pitch)
1926
              HitSounds[soundname].Parent = hit.Parent.Torso
1927
              HitSounds[soundname].Pitch = pitch
1928
              HitSounds[soundname]:Play()
1929
              local oldsound = HitSounds[soundname]
1930
              coroutine.resume(coroutine.create(function()
1931
                wait(4)
1932
                oldsound:Destroy()
1933
              end))
1934
              HitSounds[soundname] = HitSounds[soundname]:clone()
1935
            end
1936
            PlayHitSound("Hurt", 1)
1937
          end
1938
        end
1939
      end
1940
      ultra2.Touched:connect(touch)
1941
      function touch(hit)
1942
        if hit.Parent.Name == char.Name then
1943
          return
1944
        end
1945
        if hit.Parent:findFirstChild("Humanoid") ~= nil then
1946
          if hit.Parent.Name == char.Name then
1947
            return
1948
          end
1949
          hit.Parent:BreakJoints()
1950
          ultra3:remove()
1951
          do
1952
            local HitSounds = {
1953
              Hurt = Instance.new("Sound")
1954
            }
1955
            HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
1956
            HitSounds.Hurt.Volume = 1
1957
            function PlayHitSound(soundname, pitch)
1958
              HitSounds[soundname].Parent = hit.Parent.Torso
1959
              HitSounds[soundname].Pitch = pitch
1960
              HitSounds[soundname]:Play()
1961
              local oldsound = HitSounds[soundname]
1962
              coroutine.resume(coroutine.create(function()
1963
                wait(4)
1964
                oldsound:Destroy()
1965
              end))
1966
              HitSounds[soundname] = HitSounds[soundname]:clone()
1967
            end
1968
            PlayHitSound("Hurt", 1)
1969
          end
1970
        end
1971
      end
1972
      ultra3.Touched:connect(touch)
1973
      function touch(hit)
1974
        if hit.Parent.Name == char.Name then
1975
          return
1976
        end
1977
        if hit.Parent:findFirstChild("Humanoid") ~= nil then
1978
          if hit.Parent.Name == char.Name then
1979
            return
1980
          end
1981
          hit.Parent:BreakJoints()
1982
          ultra4:remove()
1983
          do
1984
            local HitSounds = {
1985
              Hurt = Instance.new("Sound")
1986
            }
1987
            HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
1988
            HitSounds.Hurt.Volume = 1
1989
            function PlayHitSound(soundname, pitch)
1990
              HitSounds[soundname].Parent = hit.Parent.Torso
1991
              HitSounds[soundname].Pitch = pitch
1992
              HitSounds[soundname]:Play()
1993
              local oldsound = HitSounds[soundname]
1994
              coroutine.resume(coroutine.create(function()
1995
                wait(4)
1996
                oldsound:Destroy()
1997
              end))
1998
              HitSounds[soundname] = HitSounds[soundname]:clone()
1999
            end
2000
            PlayHitSound("Hurt", 1)
2001
          end
2002
        end
2003
      end
2004
      ultra4.Touched:connect(touch)
2005
      function touch(hit)
2006
        if hit.Parent.Name == char.Name then
2007
          return
2008
        end
2009
        if hit.Parent:findFirstChild("Humanoid") ~= nil then
2010
          if hit.Parent.Name == char.Name then
2011
            return
2012
          end
2013
          hit.Parent:BreakJoints()
2014
          ultra5:remove()
2015
          do
2016
            local HitSounds = {
2017
              Hurt = Instance.new("Sound")
2018
            }
2019
            HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
2020
            HitSounds.Hurt.Volume = 1
2021
            function PlayHitSound(soundname, pitch)
2022
              HitSounds[soundname].Parent = hit.Parent.Torso
2023
              HitSounds[soundname].Pitch = pitch
2024
              HitSounds[soundname]:Play()
2025
              local oldsound = HitSounds[soundname]
2026
              coroutine.resume(coroutine.create(function()
2027
                wait(4)
2028
                oldsound:Destroy()
2029
              end))
2030
              HitSounds[soundname] = HitSounds[soundname]:clone()
2031
            end
2032
            PlayHitSound("Hurt", 1)
2033
          end
2034
        end
2035
      end
2036
      ultra5.Touched:connect(touch)
2037
      wait()
2038
      RW.C0 = CFrame.new(1.5, 0.5, 0)
2039
      RW.C1 = CFrame.new(0, 0.5, 0)
2040
      local Dialogconnect = Instance.new("Part", suit)
2041
      Dialogconnect.TopSurface = "Smooth"
2042
      Dialogconnect.BottomSurface = "Smooth"
2043
      Dialogconnect.Material = "Neon"
2044
      Dialogconnect.FormFactor = "Custom"
2045
      Dialogconnect.Size = Vector3.new(1, 1, 1)
2046
      Dialogconnect.Transparency = 1
2047
      Dialogconnect.CanCollide = false
2048
      Dialogconnect.BrickColor = BrickColor.new("Black")
2049
      local selectionBox1 = Instance.new("SelectionBox", Dialogconnect)
2050
      selectionBox1.Adornee = Dialogconnect
2051
      selectionBox1.Color = BrickColor.new("Really black")
2052
      selectionBox1.LineThickness = 0.01
2053
      selectionBox1.Transparency = 1
2054
      local Weld = Instance.new("Weld", char)
2055
      Weld.Part0 = char.Torso
2056
      Weld.Part1 = Dialogconnect
2057
      Weld.C1 = CFrame.new(0, -3, -1.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
2058
      Dialogconnect.Transparency = 1
2059
      selectionBox1.Transparency = 1
2060
      wait()
2061
      Dialogconnect.Transparency = 0
2062
      selectionBox1.Transparency = 0
2063
      wait()
2064
      Dialogconnect.Transparency = 1
2065
      selectionBox1.Transparency = 1
2066
      wait()
2067
      Dialogconnect.Transparency = 0
2068
      selectionBox1.Transparency = 0
2069
      wait()
2070
      Dialogconnect.Transparency = 1
2071
      selectionBox1.Transparency = 1
2072
      wait()
2073
      Dialogconnect.Transparency = 0
2074
      selectionBox1.Transparency = 0
2075
      wait()
2076
      Dialogconnect.Transparency = 1
2077
      selectionBox1.Transparency = 1
2078
      wait()
2079
      Dialogconnect.Transparency = 0
2080
      selectionBox1.Transparency = 0
2081
      wait()
2082
      Dialogconnect.Transparency = 1
2083
      selectionBox1.Transparency = 1
2084
      wait()
2085
      Dialogconnect.Transparency = 0
2086
      selectionBox1.Transparency = 0
2087
      wait()
2088
      Dialogconnect.Transparency = 1
2089
      selectionBox1.Transparency = 1
2090
      wait()
2091
      Dialogconnect.Transparency = 0
2092
      selectionBox1.Transparency = 0
2093
      wait()
2094
      Dialogconnect.Transparency = 1
2095
      selectionBox1.Transparency = 1
2096
      wait()
2097
      Dialogconnect.Transparency = 0
2098
      selectionBox1.Transparency = 0
2099
      wait()
2100
      Dialogconnect.Transparency = 1
2101
      selectionBox1.Transparency = 1
2102
      wait()
2103
      Dialogconnect.Transparency = 0
2104
      selectionBox1.Transparency = 0
2105
      Dialogconnect.BrickColor = BrickColor.new("New Yeller")
2106
      wait()
2107
      Dialogconnect.Transparency = 1
2108
      selectionBox1.Transparency = 1
2109
      wait()
2110
      Dialogconnect.Transparency = 0
2111
      selectionBox1.Transparency = 0
2112
      wait()
2113
      Dialogconnect.Transparency = 1
2114
      selectionBox1.Transparency = 1
2115
      wait()
2116
      Dialogconnect.Transparency = 0
2117
      selectionBox1.Transparency = 0
2118
      wait()
2119
      Dialogconnect.Transparency = 1
2120
      selectionBox1.Transparency = 1
2121
      wait()
2122
      Dialogconnect.Transparency = 0
2123
      selectionBox1.Transparency = 0
2124
      wait()
2125
      Dialogconnect.Transparency = 1
2126
      selectionBox1.Transparency = 1
2127
      wait()
2128
      Dialogconnect.Transparency = 0
2129
      selectionBox1.Transparency = 0
2130
      Dialogconnect.BrickColor = BrickColor.new("Lime green")
2131
      wait()
2132
      Dialogconnect.Transparency = 1
2133
      selectionBox1.Transparency = 1
2134
      wait()
2135
      Dialogconnect.Transparency = 0
2136
      selectionBox1.Transparency = 0
2137
      wait()
2138
      Dialogconnect.Transparency = 1
2139
      selectionBox1.Transparency = 1
2140
      wait()
2141
      Dialogconnect.Transparency = 0
2142
      selectionBox1.Transparency = 0
2143
      wait()
2144
      Dialogconnect.Transparency = 1
2145
      selectionBox1.Transparency = 1
2146
      wait()
2147
      Dialogconnect.Transparency = 0
2148
      selectionBox1.Transparency = 0
2149
      wait()
2150
      Dialogconnect.Transparency = 1
2151
      selectionBox1.Transparency = 1
2152
      wait()
2153
      Dialogconnect.Transparency = 0
2154
      selectionBox1.Transparency = 0
2155
      wait()
2156
      Dialogconnect.Transparency = 0
2157
      wait()
2158
      Dialogconnect.Transparency = 1
2159
      selectionBox1.Transparency = 1
2160
      wait()
2161
      Dialogconnect.Transparency = 0
2162
      selectionBox1.Transparency = 0
2163
      wait()
2164
      Dialogconnect.Transparency = 1
2165
      selectionBox1.Transparency = 1
2166
      wait()
2167
      Dialogconnect.Transparency = 0
2168
      selectionBox1.Transparency = 0
2169
      wait()
2170
      Dialogconnect.Transparency = 1
2171
      selectionBox1.Transparency = 1
2172
      wait()
2173
      Dialogconnect.Transparency = 0
2174
      selectionBox1.Transparency = 0
2175
      wait()
2176
      Dialogconnect.Transparency = 1
2177
      selectionBox1.Transparency = 1
2178
      wait()
2179
      Dialogconnect.Transparency = 0
2180
      selectionBox1.Transparency = 0
2181
      Dialogconnect:remove()
2182
      onehitkill = true
2183
    end
2184
  end
2185
  function Stuckhit()
2186
    if not vDebounce then
2187
      vDebounce = true
2188
      RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
2189
      RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
2190
      wait(0.1)
2191
      PlaySound("Slash", 1)
2192
      coroutine.resume(coroutine.create(function()
2193
        for i = 1, 10 do
2194
          wait()
2195
          local RedSlash = Instance.new("Part", handle)
2196
          RedSlash.FormFactor = "Custom"
2197
          RedSlash.Size = Vector3.new(0.5, 2, 0.5)
2198
          RedSlash.Transparency = 0.5
2199
          local selectionBox = Instance.new("SelectionBox", RedSlash)
2200
          selectionBox.Adornee = RedSlash
2201
          selectionBox.Color = BrickColor.new("Really black")
2202
          selectionBox.LineThickness = 0.005
2203
          RedSlash.TopSurface = 0
2204
          RedSlash.BottomSurface = 0
2205
          local colorc = {"Black"}
2206
          local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
2207
          RedSlash.BrickColor = Fire
2208
          RedSlash.CanCollide = false
2209
          RedSlash.Anchored = true
2210
          RedSlash.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
2211
          game.Debris:AddItem(RedSlash, 0.1)
2212
        end
2213
      end))
2214
      for i = 1, 3 do
2215
        wait()
2216
        RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
2217
        RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
2218
      end
2219
      local ray = Ray.new(Handle.CFrame.p, (mouse.Hit.p - Handle.CFrame.p).unit * 1000)
2220
      local hit, position = game.Workspace:FindPartOnRay(ray, player)
2221
      wait(0.1)
2222
      local ray = Ray.new(Handle.CFrame.p, (mouse.Hit.p - Handle.CFrame.p).unit * 300)
2223
      local position = mouse.Hit.p
2224
      local distance = (position - Handle.CFrame.p).magnitude
2225
      local rp = Instance.new("Part", workspace)
2226
      rp.Anchored = true
2227
      rp.TopSurface = "Smooth"
2228
      rp.BottomSurface = "Smooth"
2229
      rp.Transparency = 1
2230
      rp.BrickColor = BrickColor.new("Deep orange")
2231
      rp.FormFactor = "Custom"
2232
      rp.CanCollide = false
2233
      rp.Size = Vector3.new(0.6, 0.6, distance)
2234
      rp.Material = "Neon"
2235
      rp.CFrame = CFrame.new(position, Handle.CFrame.p) * CFrame.new(0, 0, -distance / 2)
2236
      local cy = Instance.new("BlockMesh", rp)
2237
      for i = 1, 10 do
2238
        wait()
2239
        cy.Scale = cy.Scale - Vector3.new(0.1, 0.1, 0)
2240
      end
2241
      rp:Destroy()
2242
      local ps = Instance.new("Part", suit)
2243
      ps.Name = "MagicPart"
2244
      ps.TopSurface = "Smooth"
2245
      ps.BottomSurface = "Smooth"
2246
      ps.BrickColor = BrickColor.new("Black")
2247
      ps.FormFactor = "Custom"
2248
      ps.Transparency = 0.9
2249
      ps.Size = Vector3.new(5, 250, 5)
2250
      ps.Anchored = true
2251
      ps.CanCollide = false
2252
      ps.CFrame = CFrame.new(position)
2253
      local cy = Instance.new("BlockMesh", ps)
2254
      function touch(hit)
2255
        if hit.Parent:findFirstChild("Humanoid") ~= nil then
2256
          if hit.Parent.Name == char.Name then
2257
            return
2258
          end
2259
          hit.Parent.Torso.Anchored = true
2260
          do
2261
            local HitSounds = {
2262
              Hurt = Instance.new("Sound")
2263
            }
2264
            HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
2265
            HitSounds.Hurt.Volume = 1
2266
            function PlayHitSound(soundname, pitch)
2267
              HitSounds[soundname].Parent = hit.Parent.Torso
2268
              HitSounds[soundname].Pitch = pitch
2269
              HitSounds[soundname]:Play()
2270
              local oldsound = HitSounds[soundname]
2271
              coroutine.resume(coroutine.create(function()
2272
                wait(4)
2273
                oldsound:Destroy()
2274
              end))
2275
              HitSounds[soundname] = HitSounds[soundname]:clone()
2276
            end
2277
            PlayHitSound("Hurt", 1)
2278
            local p = Instance.new("Part", handle)
2279
            p.FormFactor = "Custom"
2280
            p.Material = "Neon"
2281
            p.Size = Vector3.new(1, 2, 1)
2282
            p.Transparency = 0
2283
            local selectionBox = Instance.new("SelectionBox", p)
2284
            selectionBox.Adornee = p
2285
            selectionBox.Color = BrickColor.new("Really black")
2286
            selectionBox.LineThickness = 0.001
2287
            p.TopSurface = 0
2288
            p.BottomSurface = 0
2289
            local colorc = {"Black"}
2290
            local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
2291
            p.BrickColor = Fire
2292
            p.CanCollide = false
2293
            p.Anchored = true
2294
            p.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
2295
            coroutine.resume(coroutine.create(function()
2296
              for i = 1, 100 do
2297
                wait()
2298
                p.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
2299
              end
2300
            end))
2301
            local light1 = Instance.new("SpotLight", p)
2302
            light1.Brightness = 164
2303
            light1.Color = Color3.new(255, 0, 0)
2304
            light1.Range = 7
2305
            for i = 1, 13 do
2306
              p.Transparency = p.Transparency + 0.1
2307
              wait(0.4)
2308
            end
2309
            game.Debris:AddItem(p, 0.1)
2310
            PlaySound("Slash", 1)
2311
            coroutine.resume(coroutine.create(function()
2312
              for i = 1, 10 do
2313
                wait()
2314
                local RedSlash = Instance.new("Part", handle)
2315
                RedSlash.FormFactor = "Custom"
2316
                RedSlash.Size = Vector3.new(0.5, 2, 0.5)
2317
                RedSlash.Transparency = 0.5
2318
                local selectionBox = Instance.new("SelectionBox", RedSlash)
2319
                selectionBox.Adornee = RedSlash
2320
                selectionBox.Color = BrickColor.new("Really black")
2321
                selectionBox.LineThickness = 0.005
2322
                RedSlash.TopSurface = 0
2323
                RedSlash.BottomSurface = 0
2324
                local colorc = {"Black"}
2325
                local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
2326
                RedSlash.BrickColor = Fire
2327
                RedSlash.CanCollide = false
2328
                RedSlash.Anchored = true
2329
                RedSlash.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
2330
                game.Debris:AddItem(RedSlash, 0.1)
2331
              end
2332
            end))
2333
            for i = 1, 3 do
2334
              wait()
2335
              RW.C0 = cf(1.5, 0.5, 0) * euler(1.5, 0, 0)
2336
              RW.C1 = cf(0, 0.5, 0) * euler(0.6 * i, 0, 0)
2337
            end
2338
            hit.Parent.Torso.Anchored = false
2339
            hit.Parent.Torso:BreakJoints()
2340
          end
2341
        end
2342
      end
2343
      ps.Touched:connect(touch)
2344
      for i = 1, 8 do
2345
        wait(0.5)
2346
        ps.Transparency = ps.Transparency - 0.1
2347
      end
2348
      wait(2)
2349
      RW.C0 = CFrame.new(1.5, 0.5, 0)
2350
      RW.C1 = CFrame.new(0, 0.5, 0)
2351
      ps:remove()
2352
    end
2353
    vDebounce = false
2354
  end
2355
  mouse.Button1Down:connect(function()
2356
    if slashvalue == 1 then
2357
      slash1()
2358
    elseif slashvalue == 3 then
2359
      slash3()
2360
    elseif slashvalue == 2 then
2361
      slash2()
2362
    end
2363
  end)
2364
  function WelcomeToMySpecialAttack()
2365
    CharaTalks()
2366
    RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
2367
    RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
2368
    wait(0.1)
2369
    PlaySound("Slash", 1)
2370
    coroutine.resume(coroutine.create(function()
2371
      for i = 1, 10 do
2372
        wait()
2373
        local RedSlash = Instance.new("Part", handle)
2374
        RedSlash.FormFactor = "Custom"
2375
        RedSlash.Size = Vector3.new(0.5, 2, 0.5)
2376
        RedSlash.Transparency = 0.5
2377
        local selectionBox = Instance.new("SelectionBox", RedSlash)
2378
        selectionBox.Adornee = RedSlash
2379
        selectionBox.Color = BrickColor.new("Really black")
2380
        selectionBox.LineThickness = 0.005
2381
        RedSlash.TopSurface = 0
2382
        RedSlash.BottomSurface = 0
2383
        local colorc = {"Black"}
2384
        local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
2385
        RedSlash.BrickColor = Fire
2386
        RedSlash.CanCollide = false
2387
        RedSlash.Anchored = true
2388
        RedSlash.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
2389
        game.Debris:AddItem(RedSlash, 0.1)
2390
      end
2391
    end))
2392
    for i = 1, 3 do
2393
      wait()
2394
      RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
2395
      RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
2396
    end
2397
    PlaySound("Explode", 1)
2398
    coroutine.resume(coroutine.create(function()
2399
      local ps = Instance.new("Part", suit)
2400
      ps.Name = "MagicPart"
2401
      ps.TopSurface = "Smooth"
2402
      ps.BottomSurface = "Smooth"
2403
      ps.BrickColor = BrickColor.new("Black")
2404
      ps.Material = "Neon"
2405
      ps.FormFactor = "Custom"
2406
      ps.Size = Vector3.new(1500, 1500, 1000)
2407
      ps.Anchored = true
2408
      ps.Transparency = 0
2409
      ps.CanCollide = false
2410
      ps.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -55) * CFrame.Angles(0, 0, 0)
2411
      local selectionBox = Instance.new("SelectionBox", ps)
2412
      selectionBox.Adornee = ps
2413
      selectionBox.Color = BrickColor.new("Black")
2414
      selectionBox.LineThickness = 0.2
2415
      selectionBox.Transparency = 0.5
2416
      function touch(hit)
2417
        if hit.Parent.Name == char.Name then
2418
          return
2419
        end
2420
        if hit.Parent:findFirstChild("Humanoid") ~= nil then
2421
          if hit.Parent.Name == char.Name then
2422
            return
2423
          end
2424
          hit.Parent:BreakJoints()
2425
          do
2426
            local HitSounds = {
2427
              Hurt = Instance.new("Sound")
2428
            }
2429
            HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
2430
            HitSounds.Hurt.Volume = 1
2431
            function PlayHitSound(soundname, pitch)
2432
              HitSounds[soundname].Parent = hit.Parent.Torso
2433
              HitSounds[soundname].Pitch = pitch
2434
              HitSounds[soundname]:Play()
2435
              local oldsound = HitSounds[soundname]
2436
              coroutine.resume(coroutine.create(function()
2437
                wait(4)
2438
                oldsound:Destroy()
2439
              end))
2440
              HitSounds[soundname] = HitSounds[soundname]:clone()
2441
            end
2442
            PlayHitSound("Hurt", 1)
2443
          end
2444
        end
2445
      end
2446
      ps.Touched:connect(touch)
2447
      coroutine.resume(coroutine.create(function()
2448
        for i = 1, 500 do
2449
          wait()
2450
          ps.CFrame = ps.CFrame * CFrame.new(0, 0, -4)
2451
        end
2452
        ps.Transparency = ps.Transparency + 0.2
2453
        wait()
2454
        ps.Transparency = ps.Transparency + 0.2
2455
        wait()
2456
        ps.Transparency = ps.Transparency + 0.2
2457
        wait()
2458
        ps.Transparency = ps.Transparency + 0.2
2459
        wait()
2460
        ps.Transparency = ps.Transparency + 0.2
2461
        ps:remove()
2462
      end))
2463
    end))
2464
    wait(2)
2465
    RW.C0 = CFrame.new(1.5, 0.5, 0)
2466
    RW.C1 = CFrame.new(0, 0.5, 0)
2467
  end
2468
  mouse.KeyDown:connect(function(key)
2469
    if key == "r" and specialattack == false then
2470
      specialattack = true
2471
      WelcomeToMySpecialAttack()
2472
      local Dialogconnect = Instance.new("Part", suit)
2473
      Dialogconnect.TopSurface = "Smooth"
2474
      Dialogconnect.BottomSurface = "Smooth"
2475
      Dialogconnect.Material = "Neon"
2476
      Dialogconnect.FormFactor = "Custom"
2477
      Dialogconnect.Size = Vector3.new(1, 1, 1)
2478
      Dialogconnect.Transparency = 1
2479
      Dialogconnect.CanCollide = false
2480
      Dialogconnect.BrickColor = BrickColor.new("Black")
2481
      local selectionBox1 = Instance.new("SelectionBox", Dialogconnect)
2482
      selectionBox1.Adornee = Dialogconnect
2483
      selectionBox1.Color = BrickColor.new("Really black")
2484
      selectionBox1.LineThickness = 0.01
2485
      selectionBox1.Transparency = 1
2486
      local Weld = Instance.new("Weld", char)
2487
      Weld.Part0 = char.Torso
2488
      Weld.Part1 = Dialogconnect
2489
      Weld.C1 = CFrame.new(-3, -3, -1.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
2490
      Dialogconnect.Transparency = 1
2491
      selectionBox1.Transparency = 1
2492
      wait()
2493
      Dialogconnect.Transparency = 0
2494
      selectionBox1.Transparency = 0
2495
      wait()
2496
      Dialogconnect.Transparency = 1
2497
      selectionBox1.Transparency = 1
2498
      wait()
2499
      Dialogconnect.Transparency = 0
2500
      selectionBox1.Transparency = 0
2501
      wait()
2502
      Dialogconnect.Transparency = 1
2503
      selectionBox1.Transparency = 1
2504
      wait()
2505
      Dialogconnect.Transparency = 0
2506
      selectionBox1.Transparency = 0
2507
      wait()
2508
      Dialogconnect.Transparency = 1
2509
      selectionBox1.Transparency = 1
2510
      wait()
2511
      Dialogconnect.Transparency = 0
2512
      selectionBox1.Transparency = 0
2513
      wait()
2514
      Dialogconnect.Transparency = 1
2515
      selectionBox1.Transparency = 1
2516
      wait()
2517
      Dialogconnect.Transparency = 0
2518
      selectionBox1.Transparency = 0
2519
      wait()
2520
      Dialogconnect.Transparency = 1
2521
      selectionBox1.Transparency = 1
2522
      wait()
2523
      Dialogconnect.Transparency = 0
2524
      selectionBox1.Transparency = 0
2525
      wait()
2526
      Dialogconnect.Transparency = 1
2527
      selectionBox1.Transparency = 1
2528
      wait()
2529
      Dialogconnect.Transparency = 0
2530
      selectionBox1.Transparency = 0
2531
      wait()
2532
      Dialogconnect.Transparency = 1
2533
      selectionBox1.Transparency = 1
2534
      wait()
2535
      Dialogconnect.Transparency = 0
2536
      selectionBox1.Transparency = 0
2537
      Dialogconnect.BrickColor = BrickColor.new("New Yeller")
2538
      wait()
2539
      Dialogconnect.Transparency = 1
2540
      selectionBox1.Transparency = 1
2541
      wait()
2542
      Dialogconnect.Transparency = 0
2543
      selectionBox1.Transparency = 0
2544
      wait()
2545
      Dialogconnect.Transparency = 1
2546
      selectionBox1.Transparency = 1
2547
      wait()
2548
      Dialogconnect.Transparency = 0
2549
      selectionBox1.Transparency = 0
2550
      wait()
2551
      Dialogconnect.Transparency = 1
2552
      selectionBox1.Transparency = 1
2553
      wait()
2554
      Dialogconnect.Transparency = 0
2555
      selectionBox1.Transparency = 0
2556
      wait()
2557
      Dialogconnect.Transparency = 1
2558
      selectionBox1.Transparency = 1
2559
      wait()
2560
      Dialogconnect.Transparency = 0
2561
      selectionBox1.Transparency = 0
2562
      Dialogconnect.BrickColor = BrickColor.new("Lime green")
2563
      wait()
2564
      Dialogconnect.Transparency = 1
2565
      selectionBox1.Transparency = 1
2566
      wait()
2567
      Dialogconnect.Transparency = 0
2568
      selectionBox1.Transparency = 0
2569
      wait()
2570
      Dialogconnect.Transparency = 1
2571
      selectionBox1.Transparency = 1
2572
      wait()
2573
      Dialogconnect.Transparency = 0
2574
      selectionBox1.Transparency = 0
2575
      wait()
2576
      Dialogconnect.Transparency = 1
2577
      selectionBox1.Transparency = 1
2578
      wait()
2579
      Dialogconnect.Transparency = 0
2580
      selectionBox1.Transparency = 0
2581
      wait()
2582
      Dialogconnect.Transparency = 1
2583
      selectionBox1.Transparency = 1
2584
      wait()
2585
      Dialogconnect.Transparency = 0
2586
      selectionBox1.Transparency = 0
2587
      wait()
2588
      Dialogconnect.Transparency = 0
2589
      wait()
2590
      Dialogconnect.Transparency = 1
2591
      selectionBox1.Transparency = 1
2592
      wait()
2593
      Dialogconnect.Transparency = 0
2594
      selectionBox1.Transparency = 0
2595
      wait()
2596
      Dialogconnect.Transparency = 1
2597
      selectionBox1.Transparency = 1
2598
      wait()
2599
      Dialogconnect.Transparency = 0
2600
      selectionBox1.Transparency = 0
2601
      wait()
2602
      Dialogconnect.Transparency = 1
2603
      selectionBox1.Transparency = 1
2604
      wait()
2605
      Dialogconnect.Transparency = 0
2606
      selectionBox1.Transparency = 0
2607
      wait()
2608
      Dialogconnect.Transparency = 1
2609
      selectionBox1.Transparency = 1
2610
      wait()
2611
      Dialogconnect.Transparency = 0
2612
      selectionBox1.Transparency = 0
2613
      Dialogconnect:remove()
2614
      specialattack = false
2615
    end
2616
    if key == "q" then
2617
      if beamvalue == 1 then
2618
        KnifeBeam1()
2619
      elseif beamvalue == 2 then
2620
        KnifeBeam2()
2621
      elseif beamvalue == 3 then
2622
        KnifeBeam3()
2623
      end
2624
    end
2625
    if key == "x" and not vDebounce then
2626
      vDebounce = true
2627
      for i = 1, 5 do
2628
        wait()
2629
        Torso.Transparency = 0.5
2630
        char["Left Arm"].Transparency = 0.5
2631
        char["Left Leg"].Transparency = 0.5
2632
        char["Right Arm"].Transparency = 0.5
2633
        char["Right Leg"].Transparency = 0.5
2634
        char.Head.Transparency = 0.5
2635
        wait()
2636
        Torso.Transparency = 0
2637
        char["Left Arm"].Transparency = 0
2638
        char["Left Leg"].Transparency = 0
2639
        char["Right Arm"].Transparency = 0
2640
        char["Right Leg"].Transparency = 0
2641
        char.Head.Transparency = 0
2642
      end
2643
      teleportPlayer(mouse.hit.p)
2644
      vDebounce = false
2645
    end
2646
    if key == "z" and onehitkilltwo == true then
2647
      onehitkilltwo = false
2648
      Stuckhit()
2649
      local Dialogconnect = Instance.new("Part", suit)
2650
      Dialogconnect.TopSurface = "Smooth"
2651
      Dialogconnect.BottomSurface = "Smooth"
2652
      Dialogconnect.Material = "Neon"
2653
      Dialogconnect.FormFactor = "Custom"
2654
      Dialogconnect.Size = Vector3.new(1, 1, 1)
2655
      Dialogconnect.Transparency = 1
2656
      Dialogconnect.CanCollide = false
2657
      Dialogconnect.BrickColor = BrickColor.new("Black")
2658
      local selectionBox1 = Instance.new("SelectionBox", Dialogconnect)
2659
      selectionBox1.Adornee = Dialogconnect
2660
      selectionBox1.Color = BrickColor.new("Really black")
2661
      selectionBox1.LineThickness = 0.01
2662
      selectionBox1.Transparency = 1
2663
      local Weld = Instance.new("Weld", char)
2664
      Weld.Part0 = char.Torso
2665
      Weld.Part1 = Dialogconnect
2666
      Weld.C1 = CFrame.new(3, -3, -1.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
2667
      Dialogconnect.Transparency = 1
2668
      selectionBox1.Transparency = 1
2669
      wait()
2670
      Dialogconnect.Transparency = 0
2671
      selectionBox1.Transparency = 0
2672
      wait()
2673
      Dialogconnect.Transparency = 1
2674
      selectionBox1.Transparency = 1
2675
      wait()
2676
      Dialogconnect.Transparency = 0
2677
      selectionBox1.Transparency = 0
2678
      wait()
2679
      Dialogconnect.Transparency = 1
2680
      selectionBox1.Transparency = 1
2681
      wait()
2682
      Dialogconnect.Transparency = 0
2683
      selectionBox1.Transparency = 0
2684
      wait()
2685
      Dialogconnect.Transparency = 1
2686
      selectionBox1.Transparency = 1
2687
      wait()
2688
      Dialogconnect.Transparency = 0
2689
      selectionBox1.Transparency = 0
2690
      wait()
2691
      Dialogconnect.Transparency = 1
2692
      selectionBox1.Transparency = 1
2693
      wait()
2694
      Dialogconnect.Transparency = 0
2695
      selectionBox1.Transparency = 0
2696
      wait()
2697
      Dialogconnect.Transparency = 1
2698
      selectionBox1.Transparency = 1
2699
      wait()
2700
      Dialogconnect.Transparency = 0
2701
      selectionBox1.Transparency = 0
2702
      wait()
2703
      Dialogconnect.Transparency = 1
2704
      selectionBox1.Transparency = 1
2705
      wait()
2706
      Dialogconnect.Transparency = 0
2707
      selectionBox1.Transparency = 0
2708
      wait()
2709
      Dialogconnect.Transparency = 1
2710
      selectionBox1.Transparency = 1
2711
      wait()
2712
      Dialogconnect.Transparency = 0
2713
      selectionBox1.Transparency = 0
2714
      Dialogconnect.BrickColor = BrickColor.new("New Yeller")
2715
      wait()
2716
      Dialogconnect.Transparency = 1
2717
      selectionBox1.Transparency = 1
2718
      wait()
2719
      Dialogconnect.Transparency = 0
2720
      selectionBox1.Transparency = 0
2721
      wait()
2722
      Dialogconnect.Transparency = 1
2723
      selectionBox1.Transparency = 1
2724
      wait()
2725
      Dialogconnect.Transparency = 0
2726
      selectionBox1.Transparency = 0
2727
      wait()
2728
      Dialogconnect.Transparency = 1
2729
      selectionBox1.Transparency = 1
2730
      wait()
2731
      Dialogconnect.Transparency = 0
2732
      selectionBox1.Transparency = 0
2733
      wait()
2734
      Dialogconnect.Transparency = 1
2735
      selectionBox1.Transparency = 1
2736
      wait()
2737
      Dialogconnect.Transparency = 0
2738
      selectionBox1.Transparency = 0
2739
      Dialogconnect.BrickColor = BrickColor.new("Lime green")
2740
      wait()
2741
      Dialogconnect.Transparency = 1
2742
      selectionBox1.Transparency = 1
2743
      wait()
2744
      Dialogconnect.Transparency = 0
2745
      selectionBox1.Transparency = 0
2746
      wait()
2747
      Dialogconnect.Transparency = 1
2748
      selectionBox1.Transparency = 1
2749
      wait()
2750
      Dialogconnect.Transparency = 0
2751
      selectionBox1.Transparency = 0
2752
      wait()
2753
      Dialogconnect.Transparency = 1
2754
      selectionBox1.Transparency = 1
2755
      wait()
2756
      Dialogconnect.Transparency = 0
2757
      selectionBox1.Transparency = 0
2758
      wait()
2759
      Dialogconnect.Transparency = 1
2760
      selectionBox1.Transparency = 1
2761
      wait()
2762
      Dialogconnect.Transparency = 0
2763
      selectionBox1.Transparency = 0
2764
      wait()
2765
      Dialogconnect.Transparency = 0
2766
      wait()
2767
      Dialogconnect.Transparency = 1
2768
      selectionBox1.Transparency = 1
2769
      wait()
2770
      Dialogconnect.Transparency = 0
2771
      selectionBox1.Transparency = 0
2772
      wait()
2773
      Dialogconnect.Transparency = 1
2774
      selectionBox1.Transparency = 1
2775
      wait()
2776
      Dialogconnect.Transparency = 0
2777
      selectionBox1.Transparency = 0
2778
      wait()
2779
      Dialogconnect.Transparency = 1
2780
      selectionBox1.Transparency = 1
2781
      wait()
2782
      Dialogconnect.Transparency = 0
2783
      selectionBox1.Transparency = 0
2784
      wait()
2785
      Dialogconnect.Transparency = 1
2786
      selectionBox1.Transparency = 1
2787
      wait()
2788
      Dialogconnect.Transparency = 0
2789
      selectionBox1.Transparency = 0
2790
      Dialogconnect:remove()
2791
      onehitkilltwo = true
2792
    end
2793
    if key == "e" then
2794
      drawded()
2795
    end
2796
  end)
2797
  Tool.Deselected:connect(function(mouse)
2798
    RW.Parent = nil
2799
    LW.Parent = nil
2800
    handle:remove()
2801
    RSH.Parent = player.Character.Torso
2802
    LSH.Parent = player.Character.Torso
2803
  end)
2804
end)
2805
function OnDeath()
2806
  GETDUNKED()
2807
  oldloopedsound:remove()
2808
end
2809
char.Humanoid.Died:connect(OnDeath)
2810
print("Made By Jose Likes And Enjoys Roblox for Josemmoya")
2811
wait(5)
2812
print("Based on the animation Determination by Jigsaw Rules.")
2813
wait(5)
2814
print("Special attacks are on q,e,z,x,and m(Megalomaniac).")
2815
print("fixed by ROBLOX")
2816
-- FridgeClan strikes again!
2817
-- Sensuke, this is why you DON'T goto Voidacity's
2818
-- Jaja has been absent, so I've taken it upon myself to steal something
2819
2820
--------------------------------------------------------
2821
2822
        pls = game:GetService'Players'
2823
        rs = game:GetService'RunService'
2824
        uinps = game:GetService'UserInputService'
2825
        lp = pls.LocalPlayer
2826
        mouse = lp:GetMouse()
2827
        c = lp.Character
2828
        human = c.Humanoid
2829
        human.MaxHealth = 50
2830
        wait()
2831
        human.Health = 50
2832
        c.Health:Destroy()
2833
2834
--------------------------------------------------------
2835
2836
        Debounces = {
2837
                AnimationCycles = 0;
2838
                FPS = 0;
2839
                scalingDamage = false;
2840
                damageLevel = 0;
2841
                attackNumber = 0;
2842
                isAttacking = false;
2843
                isMoving = false;
2844
                isSprinting = false;
2845
                isBoosting = false;
2846
                isPassive = false;
2847
                isTyping = false;
2848
        }
2849
2850
--------------------------------------------------------
2851
2852
        numLerp = function(start, goal, alpha)
2853
                return(((goal - start) * alpha) + start)
2854
        end
2855
2856
        CFrameZero = function()
2857
                return CFrame.new(Vector3.new())
2858
        end
2859
2860
        rad = function(value)
2861
                return math.rad(value)
2862
        end
2863
2864
        CFAngles = function(Vector)
2865
                return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
2866
        end
2867
2868
--------------------------------------------------------
2869
2870
        AnimStat = {
2871
                lerpSpeed = .2;
2872
                lerpSpeed2 = .35;
2873
                lerpTween = 0;
2874
        }
2875
2876
        Joints = {
2877
                c.HumanoidRootPart.RootJoint;
2878
                c.Torso.Neck;
2879
                c.Torso['Left Shoulder'];
2880
                c.Torso['Right Shoulder'];
2881
                c.Torso['Left Hip'];
2882
                c.Torso['Right Hip'];
2883
        }
2884
2885
        JointTargets = {
2886
                CFrameZero();
2887
                CFrameZero();
2888
                CFrameZero();
2889
                CFrameZero();
2890
                CFrameZero();
2891
                CFrameZero();
2892
        }
2893
2894
--------------------------------------------------------
2895
2896
        BodyColors = {
2897
                HeadColor = BrickColor.new("Institutional white");
2898
                LeftArmColor = BrickColor.new("Institutional white");
2899
                RightArmColor = BrickColor.new("Institutional white");
2900
                LeftLegColor = BrickColor.new("Institutional white");
2901
                RightLegColor = BrickColor.new("Institutional white");
2902
                TorsoColor = BrickColor.new("Mid gray");
2903
        }
2904
2905
        Customs = {
2906
                Face = "http://www.roblox.com/asset/?id=8560915";
2907
                Shirt = "http://www.roblox.com/asset/?id=334781688";
2908
                Pants = "http://www.roblox.com/asset/?id=335237283";
2909
        }
2910
2911
--------------------------------------------------------
2912
2913
        prepareCharacter = function()
2914
                local transPoints = {
2915
                        NumberSequenceKeypoint.new(0,.819,.0375),
2916
                        NumberSequenceKeypoint.new(.207,.594,.0187),
2917
                        NumberSequenceKeypoint.new(.4,.55,.031),
2918
                        NumberSequenceKeypoint.new(.57,.619,.05),
2919
                        NumberSequenceKeypoint.new(.76,.8,.0375),
2920
                        NumberSequenceKeypoint.new(1,1,0),
2921
                }
2922
                local sizePoints = {
2923
                        NumberSequenceKeypoint.new(0,.687,0),
2924
                        NumberSequenceKeypoint.new(.111,.875,0),
2925
                        NumberSequenceKeypoint.new(.327,1.19,0),
2926
                        NumberSequenceKeypoint.new(.646,1.56,0),
2927
                        NumberSequenceKeypoint.new(.805,1.37,0),
2928
                        NumberSequenceKeypoint.new(.905,1.06,0),
2929
                        NumberSequenceKeypoint.new(.968,.938,0),
2930
                        NumberSequenceKeypoint.new(.984,1.13,0),
2931
                        NumberSequenceKeypoint.new(1,1.62,0),
2932
                }
2933
                local Size = NumberSequence.new(sizePoints)
2934
                local Transparency = NumberSequence.new(transPoints)
2935
                rayModel = Instance.new("Model",c)
2936
                efxBlock = Instance.new("Part",c)
2937
                efxBlock.BrickColor = BrickColor.new("Cyan")
2938
                efxBlock.Material = "Neon"
2939
                efxBlock.FormFactor = "Custom"
2940
                efxBlock.Transparency = .3
2941
                efxBlock.Size = Vector3.new(.3,.3,.3)
2942
                local mesh = Instance.new("SpecialMesh",efxBlock)
2943
                mesh.MeshType = Enum.MeshType.Sphere
2944
                mesh.Scale = Vector3.new(1,1,1)
2945
                light = Instance.new("PointLight",c.Head)
2946
                light.Range = 10
2947
                light.Color = Color3.new(0,200/255,1)
2948
                light.Shadows = false
2949
                local particles = Instance.new("ParticleEmitter",efxBlock)
2950
                particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
2951
                particles.LightEmission = .95
2952
                particles.Size = Size
2953
                particles.Name = "Fire"
2954
                particles.Transparency = Transparency
2955
                particles.LockedToPart = true
2956
                particles.VelocityInheritance = .5
2957
                particles.LockedToPart = true
2958
                particles.Rate = 70
2959
                particles.Texture = "rbxassetid://56561915"
2960
                particles.Lifetime = NumberRange.new(2,2)
2961
                particles.RotSpeed = NumberRange.new(100,100)
2962
                particles.Speed = NumberRange.new(7,7)
2963
                script.Parent = efxBlock
2964
                fire = particles
2965
                local offset = Vector3.new(-0.11, .23, -0.5)
2966
                local weld = Instance.new("Weld",c.Head)
2967
                weld.Part0 = c.Head
2968
                weld.Part1 = efxBlock
2969
                weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
2970
                efxBlock.Parent = c
2971
                local music = Instance.new("Sound",c)
2972
                music.SoundId = "rbxassetid://316012176"
2973
                music.Looped = true
2974
                music.Volume = 0
2975
                fight = music
2976
                local music2 = Instance.new("Sound",c)
2977
                music2.SoundId = "rbxassetid://316014309"
2978
                music2.Looped = true
2979
                music2.Volume = 0
2980
                sans = music2
2981
                pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
2982
                pointGyro.P = 1e7
2983
                pointGyro.D = 1e3
2984
                pointGyro.MaxTorque = Vector3.new(0,1e7,0)
2985
                animator = c.Humanoid:FindFirstChild("Animator")
2986
                if animator then
2987
                        animator:Destroy()
2988
                end
2989
                c.Torso.roblox:Destroy()
2990
                for i,v in pairs (c.Head:children()) do
2991
                        if v.ClassName == "Sound" then
2992
                                v:Destroy()
2993
                        end
2994
                end
2995
                for i = 1,#Joints do
2996
                        Joints[i].C1 = CFrame.new(Vector3.new())
2997
                end
2998
                human.WalkSpeed = 0
2999
                human.JumpPower = 0
3000
        end
3001
3002
        uinps.InputBegan:connect(function(InputObject)
3003
                if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
3004
                        Debounces.isPassive = not Debounces.isPassive
3005
                end
3006
        end)
3007
3008
        setJointCFrames = function(table)
3009
                for i = 1,#table do
3010
                        JointTargets[i] = table[i]
3011
                end
3012
                AnimationCycles = 0
3013
        end
3014
3015
        setLerp = function(speed)
3016
                AnimStat.lerpSpeed = speed
3017
        end
3018
3019
        setTween = function(tween)
3020
                AnimStat.lerpTween = tween
3021
        end
3022
3023
        takeDamage = function(position,damage,distance,platformStand)
3024
                for i,v in pairs (pls:children()) do
3025
                        if v.ClassName == "Player" and v:FindFirstChild("Character") then
3026
                                local torso = v.Character:FindFirstChild("Torso")
3027
                                if torso and (torso.Position - position).magnitude < distance then
3028
                                        v.Character.Humanoid:TakeDamage(damage)
3029
                                        if platformStand == true then
3030
                                                v.Character.PlatformStand = platformStand
3031
                                        end
3032
                                end
3033
                        end
3034
                end
3035
        end
3036
3037
--------------------------------------------------------
3038
3039
        prepareCharacter()
3040
3041
--------------------------------------------------------
3042
3043
        spawn(function()
3044
                local sine = 0
3045
                while wait() do
3046
                        pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
3047
                        if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
3048
                                setLerp(.1)
3049
                                if Debounces.isPassive == true then
3050
                                        setJointCFrames({
3051
                                                CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
3052
                                                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));
3053
                                                CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
3054
                                                CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
3055
                                                CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
3056
                                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
3057
                                        })
3058
                                else
3059
                                        setJointCFrames({
3060
                                                CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
3061
                                                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));
3062
                                                CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
3063
                                                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));
3064
                                                CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
3065
                                                CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
3066
                                        })
3067
                                end
3068
                        elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
3069
                                sine = sine + math.rad(12)
3070
                                human.WalkSpeed = 15
3071
                                setLerp(.15)
3072
                                setJointCFrames({
3073
                                        CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
3074
                                        CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
3075
                                        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));
3076
                                        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));
3077
                                        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));
3078
                                        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));
3079
                                })
3080
                        end
3081
                        if Debounces.scalingDamage == true then
3082
                                takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
3083
                        end
3084
                end
3085
        end)
3086
3087
        human.Changed:connect(function(prop)
3088
                if prop == "MoveDirection" then
3089
                        if human.MoveDirection.magnitude > .02 then
3090
                                Debounces.isMoving = true
3091
                        else
3092
                                Debounces.isMoving = false
3093
                        end
3094
                end
3095
        end)
3096
3097
        uinps.InputBegan:connect(function(InputObject)
3098
                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
3099
                        Debounces.isBoosting = true
3100
                        Debounces.damageLevel = 10
3101
                        Debounces.scalingDamage = true
3102
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
3103
                        setLerp(.15)
3104
                        setJointCFrames({
3105
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
3106
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
3107
                                CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
3108
                                CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
3109
                                CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
3110
                                CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
3111
                        })
3112
                        local boostSpeed = 250
3113
                        local efx = Instance.new("Sound",c.Head)
3114
                        efx.SoundId = "rbxassetid://200632875"
3115
                        efx.Pitch = math.random(1100,1300)/1000
3116
                        efx.Volume = .5
3117
                        efx:Play()
3118
                        spawn(function()
3119
                                wait(5)
3120
                                efx:Destroy()
3121
                        end)
3122
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
3123
                        vel.P = 1e3
3124
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
3125
                        wait(.15)
3126
                        vel.P = 1000
3127
                        vel.MaxForce = Vector3.new(3000,0,3000)
3128
                        vel.Velocity = Vector3.new()
3129
                        wait(.3)
3130
                        setLerp(.3)
3131
                        setJointCFrames({
3132
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
3133
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
3134
                                CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
3135
                                CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
3136
                                CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
3137
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
3138
                        })
3139
                        wait(.2)
3140
                        vel:Destroy()
3141
                        Debounces.damageLevel = 0
3142
                        Debounces.scalingDamage = false
3143
                        Debounces.isBoosting = false
3144
                end
3145
        end)
3146
3147
        uinps.InputBegan:connect(function(InputObject)
3148
                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
3149
                        Debounces.isBoosting = true
3150
                        Debounces.damageLevel = 10
3151
                        Debounces.scalingDamage = true
3152
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
3153
                        setLerp(.15)
3154
                        setJointCFrames({
3155
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
3156
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
3157
                                CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
3158
                                CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
3159
                                CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
3160
                                CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
3161
                        })
3162
                        local boostSpeed = 250
3163
                        local efx = Instance.new("Sound",c.Head)
3164
                        efx.SoundId = "rbxassetid://200632875"
3165
                        efx.Pitch = math.random(1100,1300)/1000
3166
                        efx.Volume = .5
3167
                        efx:Play()
3168
                        spawn(function()
3169
                                wait(5)
3170
                                efx:Destroy()
3171
                        end)
3172
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
3173
                        vel.P = 1e3
3174
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
3175
                        wait(.15)
3176
                        vel.P = 1000
3177
                        vel.MaxForce = Vector3.new(3000,0,3000)
3178
                        vel.Velocity = Vector3.new()
3179
                        wait(.3)
3180
                        setLerp(.3)
3181
                        setJointCFrames({
3182
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
3183
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
3184
                                CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
3185
                                CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
3186
                                CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
3187
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
3188
                        })
3189
                        wait(.2)
3190
                        vel:Destroy()
3191
                        Debounces.damageLevel = 0
3192
                        Debounces.scalingDamage = false
3193
                        Debounces.isBoosting = false
3194
                end
3195
        end)
3196
3197
        uinps.InputBegan:connect(function(InputObject)
3198
                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
3199
                        Debounces.isBoosting = true
3200
                        Debounces.damageLevel = 10
3201
                        Debounces.scalingDamage = true
3202
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
3203
                        setLerp(.15)
3204
                        setJointCFrames({
3205
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
3206
                                CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
3207
                                CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
3208
                                CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
3209
                                CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
3210
                                CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
3211
                        })
3212
                        local boostSpeed = 250
3213
                        local efx = Instance.new("Sound",c.Head)
3214
                        efx.SoundId = "rbxassetid://200632875"
3215
                        efx.Pitch = math.random(1100,1300)/1000
3216
                        efx.Volume = .5
3217
                        efx:Play()
3218
                        spawn(function()
3219
                                wait(5)
3220
                                efx:Destroy()
3221
                        end)
3222
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
3223
                        vel.P = 1e3
3224
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
3225
                        wait(.15)
3226
                        vel.P = 1000
3227
                        vel.MaxForce = Vector3.new(3000,0,3000)
3228
                        vel.Velocity = Vector3.new()
3229
                        wait(.3)
3230
                        setLerp(.3)
3231
                        setJointCFrames({
3232
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
3233
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
3234
                                CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
3235
                                CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
3236
                                CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
3237
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
3238
                        })
3239
                        wait(.2)
3240
                        vel:Destroy()
3241
                        Debounces.damageLevel = 0
3242
                        Debounces.scalingDamage = false
3243
                        Debounces.isBoosting = false
3244
                end
3245
        end)
3246
3247
        uinps.InputBegan:connect(function(InputObject)
3248
                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
3249
                        Debounces.isBoosting = true
3250
                        Debounces.damageLevel = 10
3251
                        Debounces.scalingDamage = true
3252
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
3253
                        setLerp(.15)
3254
                        setJointCFrames({
3255
                                CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
3256
                                CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
3257
                                CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
3258
                                CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
3259
                                CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
3260
                                CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
3261
                        })
3262
                        local boostSpeed = 150
3263
                        local boostSpeed = 250
3264
                        local efx = Instance.new("Sound",c.Head)
3265
                        efx.SoundId = "rbxassetid://200632875"
3266
                        efx.Pitch = math.random(1100,1300)/1000
3267
                        efx.Volume = .5
3268
                        efx:Play()
3269
                        spawn(function()
3270
                                wait(5)
3271
                                efx:Destroy()
3272
                        end)
3273
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
3274
                        vel.P = 1e3
3275
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
3276
                        wait(.15)
3277
                        vel.P = 1000
3278
                        vel.MaxForce = Vector3.new(3000,0,3000)
3279
                        vel.Velocity = Vector3.new()
3280
                        wait(.3)
3281
                        setLerp(.3)
3282
                        setJointCFrames({
3283
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
3284
                                CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
3285
                                CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
3286
                                CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
3287
                                CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
3288
                                CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
3289
                        })
3290
                        wait(.2)
3291
                        vel:Destroy()
3292
                        Debounces.damageLevel = 0
3293
                        Debounces.scalingDamage = false
3294
                        Debounces.isBoosting = false
3295
                end
3296
        end)
3297
3298
        uinps.InputBegan:connect(function(InputObject)
3299
                if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
3300
                        local isLooping = true
3301
                        uinps.InputEnded:connect(function(InputObject2)
3302
                                if InputObject2.KeyCode == Enum.KeyCode.Q then
3303
                                        isLooping = false
3304
                                end
3305
                        end)
3306
                        while true do
3307
                                if isLooping == false then
3308
                                        break
3309
                                end
3310
                                Debounces.attackNumber = Debounces.attackNumber + 1
3311
                                local aimPos = mouse.Hit.p
3312
                                local head = Instance.new("Part",c)
3313
                                head.Size = Vector3.new(12,.2,12)
3314
                                head.CanCollide = false
3315
                                head.Anchored = true
3316
                                head.Transparency = 1
3317
                                for i = 1,2 do
3318
                                        local decal = Instance.new("Decal",head)
3319
                                        decal.Texture = "rbxassetid://323497117"
3320
                                        if i == 1 then
3321
                                                decal.Face = Enum.NormalId.Top
3322
                                        else
3323
                                                decal.Face = Enum.NormalId.Bottom
3324
                                        end
3325
                                end
3326
                                if Debounces.attackNumber%2 == 1 then
3327
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
3328
                                else
3329
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
3330
                                end
3331
                                spawn(function()
3332
                                        local timer = 0
3333
                                        while rs.RenderStepped:wait() do
3334
                                                if timer >= 1.55 then
3335
                                                        break
3336
                                                end
3337
                                                head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
3338
                                                timer = timer + 1/30/(Debounces.FPS/60)
3339
                                        end
3340
                                        head.CFrame = CFrame.new(head.CFrame.p,aimPos)
3341
                                        local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
3342
                                        local hit, pos = workspace:FindPartOnRay(ray,c)
3343
                                        local dis = (head.CFrame.p - pos).magnitude
3344
                                        local rayPart = Instance.new("Part",rayModel)
3345
                                        rayPart.Material = "Neon"
3346
                                        rayPart.FormFactor = "Custom"
3347
                                        rayPart.BrickColor = BrickColor.new(1,1,1)
3348
                                        rayPart.Anchored = true
3349
                                        rayPart.CanCollide = false
3350
                                        rayPart.Size = Vector3.new(7,7,dis + 400)
3351
                                        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)
3352
                                        rayPart.CFrame = rayCFrame
3353
                                        head:Destroy()
3354
                                end)
3355
                                wait()
3356
                                local s = Instance.new("Sound",head)
3357
                                s.Volume = 1
3358
                                s.SoundId = "rbxassetid://332223043"
3359
                                s:Play()
3360
                                wait(.04)
3361
                        end
3362
                end
3363
        end)
3364
3365
        uinps.InputBegan:connect(function(InputObj)
3366
                if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
3367
                        Debounces.isAttacking = true
3368
                        local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
3369
                        local head = Instance.new("Part",c)
3370
                        head.Size = Vector3.new(18,.2,18)
3371
                        head.CanCollide = false
3372
                        head.Anchored = true
3373
                        head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
3374
                        head.Transparency = 1
3375
                        for i = 1,2 do
3376
                                local decal = Instance.new("Decal",head)
3377
                                decal.Texture = "rbxassetid://323497117"
3378
                                if i == 1 then
3379
                                        decal.Face = Enum.NormalId.Top
3380
                                else
3381
                                        decal.Face = Enum.NormalId.Bottom
3382
                                end
3383
                        end
3384
                        setLerp(.1)
3385
                        setJointCFrames({
3386
                                CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
3387
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
3388
                                CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
3389
                                CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
3390
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
3391
                                CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
3392
                        })
3393
                        spawn(function()
3394
                                local timer = 0
3395
                                while rs.RenderStepped:wait() do
3396
                                        if timer >= 1.55/.8 then
3397
                                                break
3398
                                        end
3399
                                        head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
3400
                                        timer = timer + 1/30/(Debounces.FPS/60)
3401
                                end
3402
                                head.CFrame = CFrame.new(head.CFrame.p,aimPos)
3403
                                local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
3404
                                local hit, pos = workspace:FindPartOnRay(ray,c)
3405
                                local dis = (head.CFrame.p - pos).magnitude
3406
                                local rayPart = Instance.new("Part",rayModel)
3407
                                rayPart.Material = "Neon"
3408
                                rayPart.FormFactor = "Custom"
3409
                                rayPart.Name = "Punch"
3410
                                rayPart.BrickColor = BrickColor.new(1,1,1)
3411
                                rayPart.Anchored = true
3412
                                rayPart.CanCollide = false
3413
                                rayPart.Size = Vector3.new(28,28,dis + 400)
3414
                                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)
3415
                                rayPart.CFrame = rayCFrame
3416
                                head:Destroy()
3417
                        end)
3418
                        wait()
3419
                        local s = Instance.new("Sound",head)
3420
                        s.Volume = 1
3421
                        s.SoundId = "rbxassetid://332223043"
3422
                        s.Pitch = .8
3423
                        s:Play()
3424
                        wait(.75)
3425
                        setLerp(.17)
3426
                        setJointCFrames({
3427
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
3428
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
3429
                                CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
3430
                                CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
3431
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
3432
                                CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
3433
                        })
3434
                        wait(.5)
3435
                        Debounces.isAttacking = false
3436
                end
3437
        end)
3438
        
3439
        reflect = function(d,n)
3440
                local i, n = -1 * d.unit, n.unit
3441
                local dot = n:Dot(i)
3442
                return 2*dot*n - i
3443
        end
3444
3445
        makeReflectionBeam = function(pos,look,isCrit)
3446
                local ray = Ray.new(pos,look)
3447
                local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
3448
                local e = Instance.new("Part",rayModel)
3449
                e.Anchored = true
3450
                e.CanCollide = false
3451
                e.BrickColor = BrickColor.new("White")
3452
                e.Material = "Neon"
3453
                e.FormFactor = "Custom"
3454
                e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
3455
                if isCrit == true then
3456
                        e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
3457
                        e.Name = "Punch"
3458
                end
3459
                e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
3460
                local e = Instance.new("Sound",c)
3461
                if isCrit == true then
3462
                        e.Volume = .5
3463
                else
3464
                        e.Volume = .3
3465
                        e.Pitch = 1.5
3466
                end
3467
                e.SoundId = "rbxassetid://200632875"
3468
                e:Play()
3469
                spawn(function()
3470
                        wait(6)
3471
                        e:Destroy()
3472
                end)
3473
                wait(.05)
3474
                if hit ~= nil then
3475
                        newDir = reflect(look.unit,norm,isCrit)
3476
                        makeReflectionBeam(hitpos,newDir * 999,isCrit)
3477
                end
3478
        end
3479
3480
        uinps.InputBegan:connect(function(InputObject)
3481
                if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
3482
                        local isLooping = true
3483
                        uinps.InputEnded:connect(function(InputObject2)
3484
                                if InputObject2.KeyCode == Enum.KeyCode.Q then
3485
                                        isLooping = false
3486
                                end
3487
                        end)
3488
                        while true do
3489
                                if isLooping == false then
3490
                                        break
3491
                                end
3492
                                Debounces.attackNumber = Debounces.attackNumber + 1
3493
                                local aimPos = mouse.Hit.p
3494
                                local head = Instance.new("Part",c)
3495
                                head.Size = Vector3.new(12,.2,12)
3496
                                head.CanCollide = false
3497
                                head.Anchored = true
3498
                                head.Transparency = 1
3499
                                for i = 1,2 do
3500
                                        local decal = Instance.new("Decal",head)
3501
                                        decal.Texture = "rbxassetid://323497117"
3502
                                        if i == 1 then
3503
                                                decal.Face = Enum.NormalId.Top
3504
                                        else
3505
                                                decal.Face = Enum.NormalId.Bottom
3506
                                        end
3507
                                end
3508
                                if Debounces.attackNumber%2 == 1 then
3509
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
3510
                                else
3511
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
3512
                                end
3513
                                spawn(function()
3514
                                        local timer = 0
3515
                                        while rs.RenderStepped:wait() do
3516
                                                if timer >= 1.55 then
3517
                                                        break
3518
                                                end
3519
                                                head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
3520
                                                timer = timer + 1/30/(Debounces.FPS/60)
3521
                                        end
3522
                                        head.CFrame = CFrame.new(head.CFrame.p,aimPos)
3523
                                        head:Destroy()
3524
                                        makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)        
3525
                                end)
3526
                                
3527
                                wait()
3528
                                local s = Instance.new("Sound",head)
3529
                                s.Volume = 1
3530
                                s.SoundId = "rbxassetid://332223043"
3531
                                s.Pitch = 1.02
3532
                                s:Play()
3533
                                wait(.2)
3534
                        end
3535
                end
3536
        end)
3537
3538
        uinps.InputBegan:connect(function(InputObj)
3539
                if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
3540
                        Debounces.isAttacking = true
3541
                        local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
3542
                        local head = Instance.new("Part",c)
3543
                        head.Size = Vector3.new(18,.2,18)
3544
                        head.CanCollide = false
3545
                        head.Anchored = true
3546
                        head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
3547
                        head.Transparency = 1
3548
                        for i = 1,2 do
3549
                                local decal = Instance.new("Decal",head)
3550
                                decal.Texture = "rbxassetid://323497117"
3551
                                if i == 1 then
3552
                                        decal.Face = Enum.NormalId.Top
3553
                                else
3554
                                        decal.Face = Enum.NormalId.Bottom
3555
                                end
3556
                        end
3557
                        setLerp(.1)
3558
                        setJointCFrames({
3559
                                CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
3560
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
3561
                                CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
3562
                                CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
3563
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
3564
                                CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
3565
                        })
3566
                        spawn(function()
3567
                                local timer = 0
3568
                                while rs.RenderStepped:wait() do
3569
                                        if timer >= 1.55/.8 then
3570
                                                break
3571
                                        end
3572
                                        head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
3573
                                        timer = timer + 1/30/(Debounces.FPS/60)
3574
                                end
3575
                                head.CFrame = CFrame.new(head.CFrame.p,aimPos)
3576
                                head:Destroy()
3577
                                makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
3578
                        end)
3579
                        wait()
3580
                        local s = Instance.new("Sound",head)
3581
                        s.Volume = 2
3582
                        s.SoundId = "rbxassetid://332223043"
3583
                        s.Pitch = .8
3584
                        s:Play()
3585
                        wait(.75)
3586
                        setLerp(.17)
3587
                        setJointCFrames({
3588
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
3589
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
3590
                                CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
3591
                                CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
3592
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
3593
                                CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
3594
                        })
3595
                        wait(.5)
3596
                        Debounces.isAttacking = false
3597
                end
3598
        end)
3599
3600
        uinps.InputBegan:connect(function(InputObj)
3601
                if InputObj.KeyCode == Enum.KeyCode.Slash then
3602
                        local finishEvent = nil
3603
                        Debounces.isTyping = true
3604
                        finishEvent = uinps.InputBegan:connect(function(InputObj)
3605
                                if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
3606
                                        Debounces.isTyping = false
3607
                                        finishEvent:disconnect()
3608
                                end
3609
                        end)
3610
                end
3611
        end)
3612
3613
        uinps.InputBegan:connect(function(InputObj)
3614
                if InputObj.KeyCode == Enum.KeyCode.LeftShift then
3615
                        Debounces.isSprinting = true
3616
                end
3617
        end)
3618
3619
        uinps.InputEnded:connect(function(InputObj)
3620
                if InputObj.KeyCode == Enum.KeyCode.LeftShift then
3621
                        Debounces.isSprinting = false
3622
                end
3623
        end)
3624
3625
        rs.RenderStepped:connect(function()
3626
                Debounces.FPS = 1/rs.RenderStepped:wait()
3627
                local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
3628
                if Debounces.isPassive == false then
3629
                        fire.Enabled = false
3630
                        light.Range = 0
3631
                        fight:Pause()
3632
                        sans:Resume()
3633
                        efxBlock.Transparency = 1
3634
                else
3635
                        fire.Enabled = true
3636
                        light.Range = 10
3637
                        fight:Resume()
3638
                        sans:Pause()
3639
                        efxBlock.Transparency = 0
3640
                end
3641
                for i,v in pairs (rayModel:children()) do
3642
                        if v.Transparency >= 1 then
3643
                                v:Destroy()
3644
                        else
3645
                                v.CanCollide = true
3646
                                local parts = v:GetTouchingParts()
3647
                                v.CanCollide = false
3648
                                for i = 1,#parts do
3649
                                        if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
3650
                                                parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
3651
                                        elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
3652
                                                parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
3653
                                        end
3654
                                end
3655
                                v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
3656
                                v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
3657
                        end
3658
                end
3659
                for i = 1,#Joints do
3660
                        Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
3661
                end
3662
                local sineval = math.sin(tick() * 2) * 3
3663
                fire.Acceleration = Vector3.new(sineval,1,sineval)
3664
                light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
3665
        end)