Part=script.Parent Players=game:GetService("\080\108\097\121\101\114\115")Debris=game:GetService("\068\101\098\114\105\115")RbxUtility=LoadLibrary("\082\098\120\085\116\105\108\105\116\121")Create=RbxUtility.Create Creator=Part:WaitForChild("\067\114\101\097\116\111\114")Damage=Part:WaitForChild("\068\097\109\097\103\101")function IsTeamMate(T,Y)return T and(Y and(not T.Neutral and(not Y.Neutral and T.TeamColor==Y.TeamColor)))end function TagHumanoid(T,Y)local J=(Create("\079\098\106\101\099\116\086\097\108\117\101"))({Name="\099\114\101\097\116\111\114",Value=Y})Debris:AddItem(J,2)J.Parent=T end function UntagHumanoid(T)for T,Y in pairs(T:GetChildren())do if Y:IsA("\079\098\106\101\099\116\086\097\108\117\101")and Y.Name=="\099\114\101\097\116\111\114"then Y:Destroy()end end end


Part = script.Parent

Players = game:GetService("Players")
Debris = game:GetService("Debris")

RbxUtility = LoadLibrary("RbxUtility")
Create = RbxUtility.Create

Creator = Part:WaitForChild("Creator")
Damage = Part:WaitForChild("Damage")

function IsTeamMate(Player1, Player2)
	return (Player1 and Player2 and not Player1.Neutral and not Player2.Neutral and Player1.TeamColor == Player2.TeamColor)
end

function TagHumanoid(humanoid, player)
	local Creator_Tag = Create("ObjectValue"){
		Name = "creator",
		Value = player,
	}
	Debris:AddItem(Creator_Tag, 2)
	Creator_Tag.Parent = humanoid
end

function UntagHumanoid(humanoid)
	for i, v in pairs(humanoid:GetChildren()) do
		if v:IsA("ObjectValue") and v.Name == "creator" then
			v:Destroy()
		end
	end
end
