Answered by
4 years ago Edited 4 years ago
So :GetRankInGroup() is getting a rank number. So if you go into a group, and click onto a rank, It would have a rank number. That is what :GetRankInGroup() is getting.
1 | local groupID = "Your groupID would go here" |
3 | game.Players.PlayerAdded:Connect( function (player) |
4 | if player:GetRankInGroup(groupID) = > 5 then |
So if the players rank number in the group is equal to or above 5, then it executes the code in the If statement.
If you want to get the role in the group, you can use :GetRoleInGroup(groupID)
I hope this helps you out. If you're still stuck. Comment on this or this [http://developer.roblox.com/en-us/api-reference/function/Player/GetRankInGroup]