mouse1click Synchronous
Press and release the primary mouse button. Use it for a single primary click at the current pointer position. Move the pointer separately when a specific location is required.
Luau
mouse1click() -> ()Parameters
This function takes no arguments.
Returns
()This function returns no values.
Example
Luau
-- Position the pointer over a harmless control in your own test UI.
task.wait(3)
if isrbxactive() then
mouse1click()
end