Can team members kill their own team member?
✓ ANSWER ACCEPTED
Can team member kill their teammate?
1 answer
✓ Accepted answer
when the attack sciript is activated, reference the team like this:
local yourteam = game.Players.LocalPlayer.Team
then make it so that if the player that is hit's team is on your team, the script returns and then ends. else, fire a damage event
because yourteam uses game.Players.LocalPlayer, it won't work on server scripts.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
No they can not unless they are from another team.
Yes they can. You have to program friendly forces.
@Ziffixture can you tell me how?