Is it possible to get a table of a players groups, and then see the ranks in that group and see if they are the lowest rank with some code WITHOUT them being in the server
1 Like
You need to use GroupService.
Example:
local gs = game:GetService("GroupService")
local groups = gs:GetGroupsAsync(1116383079) --userid
local groupsminrank = {}
for _, v in pairs(groups) do
local min = gs:GetGroupInfoAsync(v.Id).Roles[1].Rank --alrady sorted
if v.Rank==min then
table.insert(groupsminrank, v.Id)
end
end
print(groupsminrank) --array of groups where player rank is min (1)
If I misunderstood you, let me know.
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.