Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Execute function if one of a bunch of buttons is clicked?

Asked by 5 years ago

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?

0
If you just wonder, the buttons of course are textButtons from a GUI masterjosue1998 116 — 5y
0
dont request User#23365 30 — 5y
0
I'm not requesting a full script. I'm just asking how to use MouseButton1Click with a group of buttons. masterjosue1998 116 — 5y
0
use a for i,v in pairs() loop User#23365 30 — 5y

Answer this question