How do you create a system to kill players from the same team with different weapons?

Hey someone know how to make a system than you can kill players on the same team with tools?

like we have 5 players on team “Blue” and they can fight ?

  • Thanks

Just utilize your own or another kill/combat system. The only difference is that your version has the opposite of anti-team kill(only allowing players in the same team to fight). Therefore the check you must do to figure out if two players are allowed to fight is player1.Team == player2.Team:

function canFight(player1, player2) 
	return (player1.Team == player2.Team)

if canFight(killer, victim) then 
	--damage the victim