mousemoveabs Synchronous
Place the pointer at an absolute screen coordinate before another local input action. This moves the pointer without pressing a button.
Luau
mousemoveabs(x: number, y: number) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
x | number | Horizontal destination coordinate. |
y | number | Vertical 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
Luau
if isrbxactive() then
mousemoveabs(240, 160)
print("Pointer moved to the example position")
end