> ## 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.

# mousemoveabs

Moves the mouse cursor to a pixel position relative to the top-left corner of the Roblox window.

```luau theme={null}
mousemoveabs(x: number, y: number): ()
```

The reference frame is the Roblox window itself, not the OS desktop.

Most commonly used to build aim assist - move the cursor onto a target's screen position, then call `mouse1click()`.

## Parameters

| Parameter | Type     | Description                   |
| --------- | -------- | ----------------------------- |
| `x`       | `number` | Target x position, in pixels. |
| `y`       | `number` | Target y position, in pixels. |

## Returns

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

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  mousemoveabs(500, 500)
  =======
  -- mousemoveabs(x: number, y: number): ()
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  mousemoveabs(100, 100) -- Moves cursor to top-left
  ```
</CodeGroup>

<Tip>
  Operates relative to the screen dimensions (usually pixels).
</Tip>
