Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local groupId = 6420058
- local players = game.Players
- function getRank(plr)
- local plrRank = plr:GetRankInGroup(groupId)
- local plrRole = plr:GetRoleInGroup(groupId)
- for i,team in pairs(game.Teams:GetChildren()) do
- local teamRank = team.Rank
- if plrRank == team.Rank.Value then
- plr.Team = team
- end
- end
- print(plr.Name, plrRank, plrRole)
- end
- players.PlayerAdded:Connect(getRank)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement