mousemoverel Synchronous

Move the pointer by an offset from its current position. Use it to adjust the pointer relative to where it already is. Positive or negative offsets choose the direction; no button is pressed by this call.

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

Parameters

Function parameters
ParameterTypeDescription
xnumberHorizontal movement relative to the current position.
ynumberVertical movement relative to the current position.

Returns

()

This function returns no values.

Example

Example
Luau
if isrbxactive() then
    mousemoverel(10, 0)
    mousemoverel(-10, 0)
end
Kawaii documentation