mousemoverel Synchronous

Nudge the pointer by an offset from wherever it is now. This is easier than calculating an absolute coordinate for small adjustments.

Syntax
Luau
mousemoverel(x: number, y: number) -> ()

Parameters

Function parameters
ParameterTypeDescription
xnumberHorizontal offset.
ynumberVertical offset.

Returns

()

No values.

Usage notes

Positive and negative offsets choose direction. Neither button is pressed by this call.

Synthetic input goes to the Roblox game surface, not to Android dialogs or other app views.

Example

Example
Luau
if isrbxactive() then
    mousemoverel(12, -8)
end