Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I check if a player is in a certain team?

Asked by 5 years ago

How would I check if a player is in a certain team, and if they are, do a certain action.

1 answer

Log in to vote
2
Answered by
valchip 789 Moderation Voter
5 years ago
if player.Team == game:GetService("Teams").YourTeamHere then
    --do stuff here
end
Ad

Answer this question