Hello. I'm making a stop-motion animating plugin which generates a button when you add a new frame. The thing is, that button should execute something when it is clicked.
What Im trying to do is to use the MouseButton1Click function with a group of buttons at once, without having to write "ButtonName.MouseButton1Click:Connect" one by one.
Do you know how to write a code like that?

4 comments
If you just wonder, the buttons of course are textButtons from a GUI
dont request
I'm not requesting a full script. I'm just asking how to use MouseButton1Click with a group of buttons.
use a for i,v in pairs() loop