For example if I wanted a gear that group staff would get but normal members won't, how would I use Lua to differentiate between a staff member and a normal member?
GetRankInGroup() returns the number rank of the player it's called on. It's between 0 and 255.
1 | if player:GetRankInGroup(groupId) > 5 then --checks if player is above rank 5 |
GetRoleInGroup will return the name of the player's rank, or "Guest" if they're not in the group.
1 | if player:GetRoleInGroup(groupIs) = = "Knight" then --checks if their rank is knight |
You can use the GetRankInGroup
to find a players rank in a group and decide what happens off of that