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.

Syntax
Luau
mouse1click() -> ()

Parameters

This function takes no arguments.

Returns

()

This function returns no values.

Example

Example
Luau
-- Position the pointer over a harmless control in your own test UI.
task.wait(3)
if isrbxactive() then
    mouse1click()
end
Kawaii documentation