Im using a for loop to iterate through a table of text buttons, each equipping a tool when clicked. But when i click one, it equips the amount in the table instead of once.
This should only create one connection per item. The issue is probably unrelated to the loop and has to do with the whole loop being run multiple times to create multiple connections for each item.
The usual way to fix this is have a table that checks for an existing event and replaces it. You use the item as the key and connection as the value.