Skip to main content

Cursor

A specific user's cursor on a TouchScreen.


Player

The Username of the Cursor's owner. It is of the type string. It is read-only, it cannot be assigned to.


Pressed

Whether or not the left mouse button is held. It is of the type boolean. It is read-only, it cannot be assigned to.


UserId

The UserId of the Cursor's owner. It is of the type number. It is read-only, it cannot be assigned to.


X

The X position of the Cursor relative to the top left corner of the display. It is of the type number. It is read-only, it cannot be assigned to.


Y

The Y position of the Cursor relative to the top left corner of the display. It is of the type number. It is read-only, it cannot be assigned to.

Luau Type

This is the luau type for Cursor. It may help clear up mistranslations from the raw data to the wiki page (as it is an automatic process).

export type Cursor = {
read Y: number,
read Player: string,
read X: number,
read UserId: number,
read Pressed: boolean,
}