By infinite buttons, I mean it can be any max amount, right now I put individual scripts into each button GUI, and they all connect into an event. How would I do it without scripts, because I am trying to make a plugin, which can only handle one. Here is the base code:
MakeRandom = Random.new()
Folder = workspace.Buttons
CloneButton = workspace.CloneButton
for ButtonNumber = 1,MakeRandom:NextInteger(0,100) do
ClonedButton = CloneButton:Clone()
ClonedButton.Parent = Folder
ClonedButton.Name = "Button_"..ButtonNumber
end
function Print(ObjectValue)
print("yay!")
print("we did it!")
print(ObjectValue.Name)
end
--Each button has: "Button_5" or "Button_6" for ease, or you can use in pairs
The buttons go into the function: Print()

4 comments
What do the buttons need to do?
ill edit it
is there's any specific task the button needs to do or they're all the same?
they actually should give the object value of themself to a function