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

How to find players in a group and auto rank?

Is there anyway first of all to get information from a game to see if a player is in a group. And also can I set people different roles in a group from the game?

1 comment

0

yes it is possible.

1 answer

✓ Accepted answer

You can use the Player:GetRankInGroup() method to get a player's Rank ID. You can also use Player:GetRoleInGroup() to get the name of the Player's role.

Example code:

print(game.Players.RoButCantBlox:GetRankInGroup(1)) -- Gets RoButCantBlox's role in Group ID 1

To rank someone from in-game, you will need to create a proxy server that can access the Roblox API. That is a complex project that I unfortunately can't help you with.

Read more about what I used here: GetRankInGroup GetRoleInGroup

If this helped, mark it correct and upvote! Thanks!

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