roblox how to use functions in a different script 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