the title says it all, i have this damage script:

local function playerCheck(hit, plyr)
	local playerTouched = hit.Parent.Name
	local playerTouched2 = players:FindFirstChild(playerTouched)
	local humanoid = hit.Parent:FindFirstChild("Humanoid")
	local plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
	if humanoid and humanoid.Parent.Name ~= bullet.Attacker.Value then
		humanoid:TakeDamage(33.5)
		bullet:Destroy()
	elseif not hit.Parent:FindFirstChild("Humanoid") and hit.Name ~= "Handle" and 
		hit.Parent.Name  ~= bullet.Attacker.Value then
		bullet:Destroy()
	end
end
bullet.Touched:Connect(playerCheck)

And i have some teams so how do i make players of the same team get damaged?