Hi, I was wondering how I can, if possible, make a function run if one of the descendents is clicked when I use GetChildren()? Is there another way besides making a function for each individual button?
local buttons = script.Parent.Frame:GetChildren()
buttons.MouseButton1Click:Connect(function()
print("click")
end)

2 comments
I don't think that will work..?
getchildren makes a table so no i dont think that would work.