Maybe use “islmbdown” or something like that, and then use a tick? When it gets to the required amount it ignores the click event and resets?
Addition, wouldn’t it be better for play purposes to have to hold the button to take all items and ignore a single click on that button?