Skip to content

input.GetMousePos

Get the current mouse position.

Syntax

{x, y} input.GetMousePos()

Parameters

This function has no parameters.

Return value

Returns the x, y coordinates of the mouse on screen.

Example

local X, Y = input.GetMousePos();