Input

mouse1click

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

Syntax

mouse1click()

Description

Sends a left mouse down and left mouse up event when the Roblox window is active. The function takes no arguments, returns nothing, 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.

mouse1click()