how to make clicking a button make new gui in roblox studio code example
Example: how to execute scripts when a button gui is pressed roblox
function leftClick()
print("Left mouse click")
end
function rightClick()
print("Right mouse click")
end
script.Parent.MouseButton1Click:Connect(leftClick)
script.Parent.MouseButton2Click:Connect(rightClick)