How To Execute Scripts When A Button Gui Is Pressed

[Solved] How To Execute Scripts When A Button Gui Is Pressed | Lua - Code Explorer | yomemimo.com
Question : how to execute scripts when a button gui is pressed roblox

Answered by : literal-destruction

function leftClick()	print("Left mouse click")
end
function rightClick()	print("Right mouse click")
end
script.Parent.MouseButton1Click:Connect(leftClick)
script.Parent.MouseButton2Click:Connect(rightClick)

Source : | Last Update : Wed, 05 Aug 20

Answers related to how to execute scripts when a button gui is pressed roblox

Code Explorer Popular Question For Lua