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

Lua
1

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)
Posted by: Guest on July-29-2020

Code answers related to "how to execute scripts when a button gui is pressed roblox"

Browse Popular Code Answers by Language