Part 1 out of 2

Tool=script.Parent;
CPlayer=nil
RightS=nil
FakeS=Instance.new("Motor")
FakeS.Name="Right Shoulder"
G=Instance.new("Weld")
Time=0
Type="Slash"
SlashDamage=33 -- damage on a slash
PowerfulSlashDamage=66 -- damage on a more powerful slash
Deb=true
tDeb=true
canTrail=false
sp=true
Rage=0
MaxRage=1000
BloodHandle=function(hit,BLOOD)
	if hit.CanCollide==false or hit.Name=="Blood" or hit.Parent==nil then
		return
	end
	h=hit.Parent:FindFirstChild("Humanoid")
	if h==nil or hit.Name=="Handle" and hit.Parent~=Tool then
		BLOOD.Parent=nil
	end
end
Trail=function(V)
	T=Tool.Handle:clone()
	T.Name="Trail"
	T.Reflectance=0
	T.Transparency=.5
	T.Anchored=true
	T.CanCollide=false
	T.CFrame=T.CFrame*CFrame.new(0,.5,0)
	for ii,vv in pairs(T:children()) do
		if vv.className=="Sound" then
			vv:Remove()
		end
	end
	T.Parent=Tool
	coroutine.resume(coroutine.create(function(m) for i=1, 9 do m.Transparency=i*.1 wait() end m.Parent=nil end))
	game:GetService("Debris"):AddItem(T,5)
end
JumpCon=function(W)
	W.DesiredAngle=1.6
end
dd=true
ShowDamage=function(Char,Dealt,du)
	m=Instance.new("Model")
	m.Name=tostring(Dealt)
	h=Instance.new("Humanoid")
	h.Health=0
	h.MaxHealth=0
	h.Parent=m
	c=Instance.new("Part")
	c.Transparency=0
	c.BrickColor=BrickColor:Red()
	c.Name="Head"
	c.TopSurface=0
	c.BottomSurface=0
	c.formFactor="Plate"
	c.Size=Vector3.new(1,.4,1)
	ms=Instance.new("CylinderMesh")
	ms.Bevel=.1
	ms.Scale=Vector3.new(.8,.8,.8)
	ms.Parent=c
	c.Reflectance=0
	Instance.new("BodyGyro").Parent=c
	c.Parent=m
	c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
	f=Instance.new("BodyPosition")
	f.P=2000
	f.D=100
	f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
	f.position=c.Position+Vector3.new(0,3,0)
	f.Parent=c
	game:GetService("Debris"):AddItem(m,.5+du)
	c.CanCollide=false
	m.Parent=workspace
	c.CanCollide=false
end
Damage=function(hit,Bonus)
	if hit.Parent==nil then
		return
	end
	h=hit.Parent:FindFirstChild("Humanoid")
	if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
		vP=game.Players:GetPlayerFromCharacter(hit.Parent)
		if vP~=nil then
			return
		end
		if not dd then return end
		dd=false
		t=Instance.new("ObjectValue")
		t.Value=game.Players:GetPlayerFromCharacter(Tool.Parent)
		t.Name="creator"
		t.Parent=h
		game:GetService("Debris"):AddItem(t,.5)
		if Type=="Slash" then
			h:TakeDamage(SlashDamage+Bonus)
			ShowDamage(hit.Parent,SlashDamage+Bonus,.7)
		elseif Type=="PowerfulSlash" then
			h:TakeDamage(PowerfulSlashDamage+Bonus)
			ShowDamage(hit.Parent,PowerfulSlashDamage+Bonus,.7)
		end
		Blood(hit.CFrame,3)
			if sp==true then
			Rage=Rage+Bonus
			else
			Rage=Rage+Bonus/20
			end
			if Rage>MaxRage then
				Rage=MaxRage
			end
			v=Instance.new("BodyVelocity")
			v.P=1000
			v.maxForce=Vector3.new(math.huge,0,math.huge)
			v.velocity=Tool.Parent.Torso.CFrame.lookVector*25+Tool.Parent.Torso.Velocity/1.05
			v.Parent=hit
			game:GetService("Debris"):AddItem(v,.3)
		wait(.15)
		dd=true
	end
end
Animation=function(T,C)
	if C=="Stop" then
		RightS=T:FindFirstChild("Right Shoulder")
		if RightS==nil then
			return
		end
		RightS.Parent=nil
		FakeS.Part0=T
		FakeS.C0=RightS.C0
		FakeS.C1=RightS.C1	
		FakeS.Part1=T.Parent["Right Arm"]
		FakeS.Parent=T
		FakeS.DesiredAngle=1.6
		FakeS.MaxVelocity=.15
		G.Part0=T.Parent["Right Arm"]
	elseif C=="Resume" then
		FakeS.Parent=nil
		RightS.Parent=T
	end
end
Reset=function(Weld)
	Weld.DesiredAngle=1.6
	Weld.MaxVelocity=.15
end
Timing=function(trigger)
	if time()-Time<trigger then
		return true
	end
	return false
end
SpinSpec=function()
		Weld=FakeS
		Tool.Handle.Slash:Play()
		Tool.Handle.Slash.Pitch=.5
		Weld.C0=Weld.C0*CFrame.fromEulerAnglesXYZ(-math.pi/2,0,0)+Vector3.new(.25,-.5,0)
		Weld.MaxVelocity=.25
		Weld.CurrentAngle=1.6
		Weld.DesiredAngle=0
		conmain=Tool["Handle"].Touched:connect(function(hit) Damage(hit,3) end)
		r=Instance.new("BodyGyro")
		r.P=6000
		r.D=100
		r.maxTorque=Vector3.new(50000,50000,50000)*5000000000000000000000
		r.cframe=Tool.Parent.Torso.CFrame
		r.Parent=Tool.Parent.Torso
		p=Instance.new("BodyVelocity")
		p.P=4000
		p.maxForce=Vector3.new(math.huge,math.huge,math.huge)
		p.velocity=Vector3.new(0,.5,0)+Tool.Parent.Torso.CFrame.lookVector*20
		p.Parent=Tool.Parent.Torso
		for i=1, 2*(math.floor(Rage/10)+1) do
			r.cframe=r.cframe*CFrame.fromEulerAnglesXYZ(0,-math.pi/6,0)
			wait()
		end
		p.Parent=nil
		wait(.1)
		r.Parent=nil
		wait(.2)
		Tool.Handle.Slash.Pitch=.8
		Weld.C0=RightS.C0
		conmain:disconnect()
		Reset(Weld)
end
MegaSmash=function(val)
		gg=CPlayer["Right Arm"].RightGrip
		FakeS.DesiredAngle=3.6
		Tool.Handle.Slash:Play()
		Tool.Handle.Slash.Pitch=1.8
		FakeS.MaxVelocity=.6
		wait(.2)
		contip1=Tool["Handle"].Touched:connect(function(hit) Damage(hit,5) end)
		FakeS.DesiredAngle=-.3
		wait(.15)
		FakeS.MaxVelocity=.8
		Tool.Handle.Slash:Play()
		Tool.Handle.Slash.Pitch=.5
		wait(.05)

wait(.05) is at line 200 , part 2 starts at line 202 . Answer when you see part two (sorry the script couldn't be asked in one question since it exceeded 10 000 character limit.) Part 2 will be asked in 5 minutes. https://scriptinghelpers.org/questions/21905/gui-not-working-part-2

4 comments

0

Do you got an error, if yes can you tell us?

0

no one will take the time to look through all of this and give you a problem.

0

If you MUST post something this long -- post it as ONE QUESTION. Just use a link like Hastebin. No one will help you if you don't say what the problem is and what you've tried, though.

0

I don't get an error, but the bar is supposed to fill when I kill an enemy. I didn't realise you could use a link so I will try that instead.