I made a script but what I want a GUI button to trigger it, and I don't know how.
button.MouseButton1Down:connect(function() --script here end)
replace button with the button you want to press