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

get list of players on a certain rank using GroupService?

I am currently making a gui with all of the people from that are in a certain rank in a group, but I cant just figure out what to do. I know how to find the owner, but how do i find the people in a specific role? (The role ID is 18)

local groupId = 753277
local group = game:GetService("GroupService"):GetGroupInfoAsync(groupId)
script.Parent.GovName.SurfaceGui.Frame.Editme.Text = group.role --I dont know what would go here

1 answer

Hey Griffon_132,

I'm afraid you can't do that. GroupService does not have a method to get all the members of a group. We find that out by going to the GroupService page:

http://wiki.roblox.com/index.php?title=API:Class/GroupService

Now, that said, you can get the Role of any in-game player by using player:GetRoleInGroup:

(http://wiki.roblox.com/index.php?title=API:Class/Player/GetRoleInGroup)

Again, there is no way to get the users of a group (let alone by role) if they are not in-game. Sorry, bud. :(

Do have a good one.

Warm regards,

tkcmdr

3 comments

0

Yes you can via API

0

What method, though? I know none of that nature. Elaborate, please?

0

Don't forget to mark this question as answered if you have found the solution, bud! Have a nice day! c;

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