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

Team atuo assign with group id?

Ye so i'm making a game which i want when users join they get the rank that the group id is attached to but idk how to start please help?

1 answer

✓ Accepted answer

Hello, I've made this for another guy today i think so, here you go:

local groups = {
[0000] = "TeamNameHere",    -- insted of the 0000 add ur groups id
[2951985] = "Team2"
}

game.Players.PlayerAdded:Connect(function(player)
    for ids,team in pairs(groups) do
        if player:IsInGroup(ids) then
            player.Team = game.Teams[team]
        end
    end
end)

if it worked please accept, thank you.

1 comment

0

Yes it worked thank you

This discussion is preserved as it was. New answers, comments, and votes are closed.