> ## Documentation Index
> Fetch the complete documentation index at: https://docsuncv2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# mouse1press

Simulates holding down the left mouse button.

```luau theme={null}
mouse1press()
task.wait(0.5)
mouse1release()
```

## Returns

<code title="the function does not return a value.">void</code>

## Aliases

* `Mouse1Press`

## Example

Hold the left mouse button down for a fixed duration, then release it after a short while.

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  mouse1press()
  =======
  -- mouse1press(): ()
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  mouse1press()
  task.wait(0.5)
  mouse1release()
  ```
</CodeGroup>

<Tip>
  Useful for dragging or holding down click-and-charge buttons.
</Tip>
