Yuari
Documentation
Docs/Input/mousemoveabs

mousemoveabs

Moves or scrolls the mouse.

Syntax

mousemoveabs(x: any, y: any) -> nil

Parameters

ParameterTypeDescription
xanyThe x value used by the call.
yanyThe y value used by the call.

Returns

TypeDescription
nilThis function does not return a value.

Description

mousemoveabs is part of the Input library. Input helpers either read the current OS input state or synthesize OS-level events. Some game interactions also require the Roblox window to be focused.

The operation is performed immediately using the arguments supplied at the call site.

The aliases mousemoverel(dx, dy), mousescroll(notches) resolve to the same implementation.

Example

mousemoveabs(100, 100)
mousemoverel(10, -5)
mousescroll(1)

Notes

  • Aliases: mousemoverel(dx, dy), mousescroll(notches).
  • Synthetic input may be ignored by games that validate input origins.