PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

GuiButton.MouseButton1Down

GuiButton.MouseButton1Down

Oct 01 2018, 2:14 AM PST

The below example would print the position of where the GuiButton was clicked on the screen.

Gui.MouseButton1Down:Connect(function(X, Y)
    print(("Left mouse click at (%s, %s)"):format(X, Y))
end)