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.

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

Example

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