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

# mousemoverel

Moves the mouse cursor by an offset from its current position, in pixels.

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

`x` and `y` are pixel offsets applied to the current cursor position.

Most commonly used for smooth aim curves - call `mousemoverel` in small steps inside a loop instead of a single `mousemoveabs` jump, so the cursor's path looks human.

## Parameters

| Parameter | Type     | Description                          |
| --------- | -------- | ------------------------------------ |
| `x`       | `number` | Pixel offset added to the current x. |
| `y`       | `number` | Pixel offset added to the current y. |

## Returns

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

## Example

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

  ```luau Example 2 theme={null}
  -- Move right 100 pixels
  mousemoverel(100, 0)

  -- Move down 50 pixels
  mousemoverel(0, 50)

  -- Move diagonally
  mousemoverel(50, 50)
  ```
</CodeGroup>

<Tip>
  Commonly used for mouse smoothing and automated aiming adjustments.
</Tip>
