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?
✓ ANSWER ACCEPTED
Team atuo assign with group id?
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Yes it worked thank you