Input

mouse1press

Sends a left mouse down event when the Roblox window is active.

Syntax

mouse1press()

Description

Sends a left mouse down event when the Roblox window is active. The function takes no arguments, returns nothing, does not send a matching left mouse up event, and returns without sending input when isrbxactive would be false.

Call it without parameters. The function reads the needed context from the current runtime state.

It does not return data. Treat the call as an action and handle errors around the call site when needed.

Example

Example call with placeholder values.

mouse1press()