evasivedocs
Roblox scriptingLuau 0.748 · 24 guides · 385 API entries
API reference

GUI objects

On-screen GUI elements of the game.

GuiObject

On-screen GUI elements (frames, labels, buttons).

3 entries

GuiObject.AbsolutePosition

field

The top-left corner on screen, in pixels.

Returns
  • Vector2

GuiObject.AbsoluteSize

field

The size on screen, in pixels.

Returns
  • Vector2

GuiObject.Visible

field

Whether it is shown.

Returns
  • boolean

TextLabel, TextButton, TextBox

GUI elements with text.

1 entry

TextLabel.Text

fieldWorks differently

The text. Writable, in place.

Note

A new text must fit in the space the current one has. A longer one raises. An external VM cannot allocate Roblox's strings.

Returns
  • string
Example
Luau
label.Text = "ready"