function sameTeam(Z)local N=getPlayer()local Q=(game:GetService("\080\108\097\121\101\114\115")):GetPlayerFromCharacter(Z.Parent)if N and Q then if N==Q then return true end if Q.Neutral then return false end return N.TeamColor==Q.TeamColor end return false end
--used by checkTeams
function sameTeam(otherHuman)
	local player = getPlayer()
	local otherPlayer = game:GetService("Players"):GetPlayerFromCharacter(otherHuman.Parent)
	if player and otherPlayer then
		if player == otherPlayer then
			return true
		end
		if otherPlayer.Neutral then
			return false
		end
		return player.TeamColor == otherPlayer.TeamColor
	end
	return false
end
