--[[**
	Checks if the player's primary group is the given group.
	@param [Instance<Player>] Player The player you are checking for. Can also be their UserID.
	@param [Integer] GroupID The group you are checking.
	@returns [Boolean] Whether or not the primary group is the given group.
**--]]

function GroupService:IsPrimaryGroupAsync(Player, GroupID)
	for _, Group in ipairs(GroupService:GetGroupsAsync(Player)) do
		if Group.Id == GroupID and Group.IsPrimary then
			return true
		end
	end

	return false
end
