Yuari
Documentation
Docs/Input/mouse1press

mouse1press

Injects left mouse input.

Syntax

mouse1press() -> nil

Parameters

This function takes no parameters.

Returns

TypeDescription
nilThis function does not return a value.

Description

mouse1press is part of the Input library. Input helpers either read the current OS input state or synthesize OS-level events. Some game interactions also require the Roblox window to be focused.

The operation is performed immediately using the arguments supplied at the call site.

The aliases mouse1release(), mouse1click() resolve to the same implementation.

Example

mouse1press()
mouse1release()
mouse1click()

Notes

  • Aliases: mouse1release(), mouse1click().
  • Synthetic input may be ignored by games that validate input origins.