function ConsumeTarget(C,h)local g=BasePart:Clone()g.Name="\069\102\102\101\099\116"g.Transparency=1 g.Size=Vector3.new(.5,.5,.5)g.CanCollide=false local r=SoulFire:Clone()r.Size=1 r.Enabled=true r.Parent=g local I=SoulLight:Clone()I.Color=r.Color I.Enabled=true I.Parent=g if h and h<3 then h=3 end if C then local r=C:FindFirstChild("\084\111\114\115\111")if r then h=h or 4 for C=1,h,1 do local h=g:Clone()h.CFrame=Torso.CFrame+Torso.CFrame.lookVector*4 local I=(Create("\082\111\099\107\101\116\080\114\111\112\117\108\115\105\111\110"))({Target=r;TargetOffset=Vector3.new(0,2,0),ThrustP=500,ThrustD=5;MaxSpeed=150;MaxTorque=Vector3.new(4000000,4000000,0),Parent=h})Debris:AddItem(h,15)h.Parent=game:GetService("\087\111\114\107\115\112\097\099\101")I.ReachedTarget:connect(function()if not CheckIfAlive()then return end if h and h.Parent then h:Destroy()end end)I:Fire()wait(.25)end end else local C=InvokeClient("\077\111\117\115\101\080\111\115\105\116\105\111\110")if C then C=C.Position local h=(C-Torso.Position).Unit for C=1,5,1 do local r=g:Clone()r.CFrame=Torso.CFrame+Torso.CFrame.lookVector*4 local I=h*150 local u=r:GetMass()*Gravity local e=(Create("\066\111\100\121\070\111\114\099\101"))({Parent=r;force=Vector3.new(0,r:GetMass()*196.2,0)})r.Velocity=I r.Touched:connect(function(C)if not C or not C.Parent then return end local h=C.Parent if h:IsA("\072\097\116")then h=C.Parent end local g=h:FindFirstChild("\072\117\109\097\110\111\105\100")if not g or g.Health==0 then return end local I=Players:GetPlayerFromCharacter(h)if I and(Player==I or IsTeamMate(Player,I))then return end if r and r.Parent then r:Destroy()end end)Debris:AddItem(r,15)r.Parent=game:GetService("\087\111\114\107\115\112\097\099\101")end end end end function CreateFirePart(C)for C,h in pairs(Handle:GetChildren())do if h:IsA("\066\097\115\101\080\097\114\116")then h:Destroy()end end if not C then return end FirePart=BasePart:Clone()FirePart.Name="\069\102\102\101\099\116"FirePart.Transparency=1 FirePart.CanCollide=false local h=SoulFire:Clone()h.Enabled=true h.Parent=FirePart local g=SoulLight:Clone()g.Color=h.Color g.Enabled=true g.Parent=FirePart local r=(Create("\087\101\108\100"))({Part0=Handle,Part1=FirePart;C0=CFrame.new(0,0,0,1,0,0,0,1,0,0,0,1),C1=CFrame.new(0,1,0,1,0,0,0,1,0,0,0,1);Parent=FirePart})FirePart.Parent=Handle end function CheckIfAlive()return(Character and(Character.Parent and(Humanoid and(Humanoid.Parent and(Humanoid.Health>0 and(Torso and(Torso.Parent and(Player and Player.Parent))))))))and true or false end function Activated()if not Tool.Enabled or not ToolEquipped or not CheckIfAlive()then return end Tool.Enabled=false local C=RunService.Stepped:wait()if C-LastAttack<.2 then Lunge()else Attack()end LastAttack=C Tool.Enabled=true end function Equipped()Character=Tool.Parent Player=Players:GetPlayerFromCharacter(Character)Humanoid=Character:FindFirstChild("\072\117\109\097\110\111\105\100")Torso=Character:FindFirstChild("\084\111\114\115\111")if not CheckIfAlive()then return end ToolEquipped=true Spawn(function()local C=true ToolUnequipped1=Tool.Unequipped:connect(function()C=false if ToolUnequipped1 then ToolUnequipped1:disconnect()end end)Sounds.Unsheath:Play()Humanoid.WalkSpeed=18 CreateFirePart(true)Spawn(function()while ToolEquipped and(C and CheckIfAlive())do wait(1)if not ToolEquipped or not C or not CheckIfAlive()then break end Humanoid.Health=Humanoid.Health+.25 end end)end)end function Unequipped()CreateFirePart(true)if CheckIfAlive()then Humanoid.WalkSpeed=16 end Tool.Grip=Grips.Up ToolEquipped=false end function InvokeClient(C,h)local g=nil pcall(function()g=ClientControl:InvokeClient(Player,C,h)end)return g end CreateFirePart(true)Tool.Activated:connect(Activated)Tool.Equipped:connect(Equipped)Tool.Unequipped:connect(Unequipped)Blow(Handle,SwordDamage)
--[[
function SetPlayerMaxHealth(humanoid, health)
	if not humanoid or not health then
		return
	end
	local Ratio = (humanoid.Health / humanoid.MaxHealth)
	humanoid.MaxHealth = health
	humanoid.Health = (Ratio * humanoid.MaxHealth)
end
]]

function ConsumeTarget(character, number)
	local Part = BasePart:Clone()
	Part.Name = "Effect"
	Part.Transparency = 1
	Part.Size = Vector3.new(0.5, 0.5, 0.5)
	Part.CanCollide = false
	local Fire = SoulFire:Clone()
	Fire.Size = 1
	Fire.Enabled = true
	Fire.Parent = Part
	local Light = SoulLight:Clone()
	Light.Color = Fire.Color
	Light.Enabled = true
	Light.Parent = Part
	if number and number < 3 then
		number = 3
	end
	if character then
		local torso = character:FindFirstChild("Torso")
		if torso then
			number = (number or 4)
			for i = 1, number do
				local Part2 = Part:Clone()
				Part2.CFrame = (Torso.CFrame + Torso.CFrame.lookVector * 4)
				local Propulsion = Create("RocketPropulsion")({
					Target = torso,
					TargetOffset = Vector3.new(0, 2, 0),
					ThrustP = 500,
					ThrustD = 5,
					MaxSpeed = 150,
					MaxTorque = Vector3.new(4000000, 4000000, 0),
					Parent = Part2,
				})
				Debris:AddItem(Part2, 15)
				Part2.Parent = game:GetService("Workspace")
				Propulsion.ReachedTarget:connect(function()
					if not CheckIfAlive() then
						return
					end
					if Part2 and Part2.Parent then
						Part2:Destroy()
					end
				end)
				Propulsion:Fire()
				wait(0.25)
			end
		end
	else
		local TargetPosition = InvokeClient("MousePosition")
		if TargetPosition then
			TargetPosition = TargetPosition.Position
			local Direction = (TargetPosition - Torso.Position).Unit
			for i = 1, 5 do
				local Part2 = Part:Clone()
				Part2.CFrame = (Torso.CFrame + Torso.CFrame.lookVector * 4)
				local Velocity = (Direction * 150)
				local Mass = (Part2:GetMass() * Gravity)
				local BF = Create("BodyForce")({
					Parent = Part2,
					force = Vector3.new(0, Part2:GetMass() * 196.2, 0),
				})
				Part2.Velocity = Velocity
				Part2.Touched:connect(function(Hit)
					if not Hit or not Hit.Parent then
						return
					end
					local character = Hit.Parent
					if character:IsA("Hat") then
						character = Hit.Parent
					end
					local humanoid = character:FindFirstChild("Humanoid")
					if not humanoid or humanoid.Health == 0 then
						return
					end
					local player = Players:GetPlayerFromCharacter(character)
					if player and (Player == player or IsTeamMate(Player, player)) then
						return
					end
					if Part2 and Part2.Parent then
						Part2:Destroy()
					end
				end)
				Debris:AddItem(Part2, 15)
				Part2.Parent = game:GetService("Workspace")
			end
		end
	end
end

function CreateFirePart(CreateNew)
	for i, v in pairs(Handle:GetChildren()) do
		if v:IsA("BasePart") then
			v:Destroy()
		end
	end
	if not CreateNew then
		return
	end
	FirePart = BasePart:Clone()
	FirePart.Name = "Effect"
	FirePart.Transparency = 1
	FirePart.CanCollide = false
	local Fire = SoulFire:Clone()
	Fire.Enabled = true
	Fire.Parent = FirePart
	local Light = SoulLight:Clone()
	Light.Color = Fire.Color
	Light.Enabled = true
	Light.Parent = FirePart
	local Weld = Create("Weld")({
		Part0 = Handle,
		Part1 = FirePart,
		C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
		C1 = CFrame.new(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
		Parent = FirePart,
	})
	FirePart.Parent = Handle
end

function CheckIfAlive()
	return (
		(
			(
				Character
				and Character.Parent
				and Humanoid
				and Humanoid.Parent
				and Humanoid.Health > 0
				and Torso
				and Torso.Parent
				and Player
				and Player.Parent
			) and true
		) or false
	)
end

function Activated()
	if not Tool.Enabled or not ToolEquipped or not CheckIfAlive() then
		return
	end
	Tool.Enabled = false
	local Time = RunService.Stepped:wait()
	if (Time - LastAttack) < 0.2 then
		Lunge()
	else
		Attack()
	end
	LastAttack = Time
	Tool.Enabled = true
end

function Equipped()
	Character = Tool.Parent
	Player = Players:GetPlayerFromCharacter(Character)
	Humanoid = Character:FindFirstChild("Humanoid")
	Torso = Character:FindFirstChild("Torso")
	if not CheckIfAlive() then
		return
	end
	ToolEquipped = true
	Spawn(function()
		local CurrentlyEquipped = true
		ToolUnequipped1 = Tool.Unequipped:connect(function()
			CurrentlyEquipped = false
			if ToolUnequipped1 then
				ToolUnequipped1:disconnect()
			end
		end)
		Sounds.Unsheath:Play()
		Humanoid.WalkSpeed = 18
		--SetPlayerMaxHealth(Humanoid, 135)
		CreateFirePart(true)
		Spawn(function()
			while ToolEquipped and CurrentlyEquipped and CheckIfAlive() do
				wait(1)
				if not ToolEquipped or not CurrentlyEquipped or not CheckIfAlive() then
					break
				end
				Humanoid.Health = (Humanoid.Health + 0.25)
			end
		end)
	end)
end

function Unequipped()
	CreateFirePart(true)
	--[[for i, v in pairs(Sounds) do
		v:Stop()
	end]]
	if CheckIfAlive() then
		--SetPlayerMaxHealth(Humanoid, 100)
		Humanoid.WalkSpeed = 16
	end
	Tool.Grip = Grips.Up
	ToolEquipped = false
end

function InvokeClient(Mode, Value)
	local ClientReturn = nil
	pcall(function()
		ClientReturn = ClientControl:InvokeClient(Player, Mode, Value)
	end)
	return ClientReturn
end

CreateFirePart(true)

Tool.Activated:connect(Activated)
Tool.Equipped:connect(Equipped)
Tool.Unequipped:connect(Unequipped)

Blow(Handle, SwordDamage)
