Is there any way to get current rank in the group? Like if I were to join a server as Hotel Guest, then go to app center, get Trainee, and rejoin same server to get Trainee instead of Hotel Guest. I tried playerAdded and even characterAdded but it shows old rank. Is this how its supposed to be or is their a way out?
COMMUNITY QUESTION
Any way to fix Rank Glitch? I want current rank to be accessible.
1 answer
There is a function of the player called :GetRoleInGroup() which will return the rank of the player in that group (if they are not a member, this will return "Guest")
Example Script
game:GetService("Players").PlayerAdded:Connect(function(Player)
print(Player:GetRoleInGroup(0))
end)
For this function, the number "0" in the example is the Group ID
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Thanks for answering, but that shows the cached value. Not the updated one. I want it to show the updated rank.
use groupservice'