local f=script.Parent local N=f.Handle local o local r local y local B=false local S=game:GetService("\068\101\098\114\105\115")function tagHumanoid(f,N)if f then local o=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")o.Value=N o.Name="\099\114\101\097\116\111\114"o.Parent=f S:AddItem(o,1)end end function cut(f)local N local r if f and(f.Parent and y)then if f.Parent.className=="\072\097\116"then N=f.Parent.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")else N=f.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")end r=game.Players:GetPlayerFromCharacter(o)if N~=nil and N~=y then tagHumanoid(N,r)N:TakeDamage(7.5)end end end function onEquipped()o=f.Parent r=o:FindFirstChild("\084\111\114\115\111")y=o:FindFirstChild("\072\117\109\097\110\111\105\100")end f.Equipped:connect(onEquipped)N.Touched:connect(cut)


local Tool = script.Parent
local Sword = Tool.Handle

local vCharacter
local myTorso
local myHumanoid 

local equipped = false

local debris = game:GetService("Debris")

function tagHumanoid(humanoid, player)
	if humanoid then 
		local creatorTag = Instance.new("ObjectValue")
		creatorTag.Value = player
		creatorTag.Name = "creator"
		creatorTag.Parent = humanoid
		debris:AddItem(creatorTag, 1)
	end
end

function cut(hit)
	local humanoid
	local vPlayer
	if hit and hit.Parent and myHumanoid then 
		if hit.Parent.className == "Hat" then
			humanoid = hit.Parent.Parent:FindFirstChild("Humanoid")
		else
			humanoid = hit.Parent:FindFirstChild("Humanoid")
		end
		vPlayer = game.Players:GetPlayerFromCharacter(vCharacter)
		if humanoid ~= nil and humanoid ~= myHumanoid then 
			tagHumanoid(humanoid, vPlayer)
			humanoid:TakeDamage(7.5)
		end
	end
end

function onEquipped()
	vCharacter = Tool.Parent
	myTorso = vCharacter:FindFirstChild("Torso")
	myHumanoid = vCharacter:FindFirstChild("Humanoid")	
end

Tool.Equipped:connect(onEquipped)

Sword.Touched:connect(cut)
