I want to have it so instead of only having the script only show ranks for one group, I can have it as separate groups for each team.
game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new("IntValue")
leaderstats.Name = "leaderstats"
leaderstats.Value = 0
local rank = Instance.new("StringValue")
rank.Name = "Rank"
rank.Value = player:GetRoleInGroup(8073288) -- put group id in parentheses
leaderstats.Parent = player
rank.Parent = leaderstats
end)
