--[[**
	Gets the player's rank in the given group.
	@param [Instance<Player>] Player The player you are checking for. Can also be their UserID.
	@param [Integer] GroupID The ID of the group you are checking rank in.
	@returns [Integer] The player's rank.
**--]]

function GroupService:GetRankInGroupAsync(Player, GroupID)
	for _, Group in ipairs(GroupService:GetGroupsAsync(Player)) do
		if Group.Id == GroupID then
			return Group.Rank
		end
	end

	return 0
end
