creating new functions using script roblox code example
Example: creating new functions using script roblox
--loop
for _, Button in pairs(workspace.Buttons:GetChildren()) do
--function
Button.MouseButton1Click:Connect(funcion()
print(Button.Name, "Pressed!")
end)
end