Ad
Still have questions? Join our Discord server and get real time help.
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 6 days 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
sO_Ov 135
6 days 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