Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to find players in a group and auto rank?

Asked by 6 years ago

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?

0
yes it is possible. DinozCreates 1070 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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!

Ad

Answer this question