mousemoveabs Synchronous

Place the pointer at an absolute screen coordinate before another local input action. This moves the pointer without pressing a button.

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

Parameters

Function parameters
ParameterTypeDescription
xnumberHorizontal destination coordinate.
ynumberVertical destination coordinate.

Returns

()

No values.

Usage notes

Both coordinates must be finite numbers; non-finite values are ignored. Screen layout can change across devices.

Example

Example
Luau
if isrbxactive() then
    mousemoveabs(240, 160)
    print("Pointer moved to the example position")
end
Kawaii documentation