Title, Description & Separator
Title, description and separator elements for organizing a section.
These three have no value and no callback. They exist to give a long section
some shape. Each returns the Roblox instance it created rather than a handle, so
Tooltip, Disabled and Save do nothing on them.
My Script
v1.0
These only apply while a round is running.
Enabled
FireOnStart runs the callback once at build time.
Status
Title#
A heading inside a section.
main:Title("MOVEMENT") -- shortest form
main:Title({ Text = "MOVEMENT", Icon = "compass" }) -- with an icon| Option | Type | Default | What it does |
|---|---|---|---|
Textreq | string | — | The heading. It is drawn in upper case whatever you pass. |
Icon | string | — | An icon before the text. |
IconColor | Color3 | — | Overrides the icon's colour. |
IconSize | number | 13 | Icon size in pixels. |
LayoutOrder | number | — | Explicit ordering. Without it, it lands in creation order. |
Without Icon, IconColor and IconSize do nothing.
Description#
A paragraph of explanatory text, for anything the user cannot work out from the
controls alone. It takes Text and LayoutOrder, and wraps to as many lines as
it needs.
main:Description("These only apply while a round is running.")
main:Description({ Text = "These only apply while a round is running." })Separator#
A dividing line. It takes LayoutOrder and nothing else.
main:Separator()Putting them together#
main:Title({ Text = "COMBAT", Icon = "crosshair" })
main:Description("These only apply while a round is running.")
main:Toggle({ Text = "Aimbot" })
main:Slider({ Text = "Smoothing", Min = 0, Max = 1, Step = 0.05 })
main:Separator()
main:Title({ Text = "MOVEMENT", Icon = "compass" })
main:Toggle({ Text = "Infinite jump" })Strings or tables
Title and Description both accept a bare string. Title needs the table
form for an icon.
When a group is better#
Titles and separators divide a section, but everything stays on screen. Once a section is long enough that the user scrolls past rows they do not care about, use a collapsible group, which can be shut.