Input

mousemoverel

Moves the mouse by a relative delta when the Roblox window is active.

Syntax

mousemoverel(x: number, y: number)

Arguments

NameTypeDescription
xnumberRelative X movement delta read as a Lua number and converted to an integer before being passed as dx to mouse input.
ynumberRelative Y movement delta read as a Lua number and converted to an integer before being passed as dy to mouse input.

Description

Moves the mouse by a relative delta when the Roblox window is active. The x and y arguments are checked as Lua numbers and converted to an integer, then passed directly to mouse input with the requested mouse action as dx and dy. The function does not use the requested mouse action, does not perform client-area conversion, returns nothing, and returns without sending input when isrbxactive would be false.

Call it with 2 parameter(s): x, y. The argument table explains which values are required and which ones only refine the behavior.

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.

mousemoverel(1, 1)