--loop for _, Button in pairs(workspace.Buttons:GetChildren()) do --function Button.MouseButton1Click:Connect(funcion() print(Button.Name, "Pressed!") end) end