local z=script.Parent local j=z.Handle local I local Z local O local U=false local Y=game:GetService("\068\101\098\114\105\115")function tagHumanoid(z,j)if z then local I=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")I.Value=j I.Name="\099\114\101\097\116\111\114"I.Parent=z Y:AddItem(I,1)end end function cut(z)local j local Z if z and(z.Parent and O)then if z.Parent.className=="\072\097\116"then j=z.Parent.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")else j=z.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")end Z=game.Players:GetPlayerFromCharacter(I)if j~=nil and j~=O then tagHumanoid(j,Z)j:TakeDamage(7.5)end end end function onEquipped()I=z.Parent Z=I:FindFirstChild("\084\111\114\115\111")O=I:FindFirstChild("\072\117\109\097\110\111\105\100")end z.Equipped:connect(onEquipped)j.Touched:connect(cut)
-- Copied from Grimgold Periastron Beta

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)
