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

Can someone help me on a script for checking if a player isnt in a group and teaming them thus?

Asked by 4 years ago

I just need a quick script that is something like this is player in group (groupid) if yes place on (team) if no place on (team)

If possible for the groupid's that it looks for on the players group list to be multiple groupid's?

1 answer

Log in to vote
0
Answered by
174gb 290 Moderation Voter
4 years ago
game.Players.PlayerAdded:Connect(function(plr)
    if plr:IsInGroup(000000) then --Change "000000" to your group id
        plr.TeamColor = game.Teams["Team"].TeamColor --Change "Team" to your team name
    end
end)
Ad

Answer this question