mouse1press

Presses the left mouse button.

Syntax

Signature
mouse1press() -> boolean

Aliases

This function has no aliases.

Parameters

This function takes no parameters.

Returns

TypeDescription
booleanWhether the platform accepted the event.

Notes

Pair it with mouse1release to release the button. The pointer must be inside the active game client area.

Example

Luau
local Result = mouse1press()
print(Result)