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(s,e)return s and(e and(not s.Neutral and(not e.Neutral and s.TeamColor==e.TeamColor)))end function TagHumanoid(s,e)local n=(Create("\079\098\106\101\099\116\086\097\108\117\101"))({Name="\099\114\101\097\116\111\114",Value=e})Debris:AddItem(n,2)n.Parent=s end function UntagHumanoid(s)for s,e in pairs(s:GetChildren())do if e:IsA("\079\098\106\101\099\116\086\097\108\117\101")and e.Name=="\099\114\101\097\116\111\114"then e:Destroy()end end end
--Made by Luckymaxer

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
