Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can team member kill their teammate?

Can team members kill their own team member?

3 comments

0

No they can not unless they are from another team.

0

Yes they can. You have to program friendly forces.

0

@Ziffixture can you tell me how?

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.