So the question is pretty straight forward, just wanting to know if theres a better way and faster way of doing it instead of
local button1 = button1 -- just a bunch of buttons and then detecting when each seperate one is clicked
local button2 = button2
or looping through a frame that has the buttons in it and detecting a click.

1 comment
I would just use a loop that creates a MouseButton1Click event for each button, i'm unsure if there's a more efficient way or not.