Palette
A fixed row of colour swatches, for when a full picker is overkill.
The smallest palette#
main:Palette({
Text = "Trail colour",
Callback = function(colour)
trailColour = colour
end,
})Without Colors it uses a sensible default set.
Live preview
My Script
v1.0
Search…
Main
Visuals
Settings
Trail colour
Building it up#
Choose the swatches:
main:Palette({
Text = "Trail colour",
Colors = {
Color3.fromRGB(232, 93, 93),
Color3.fromRGB(90, 209, 122),
Color3.fromRGB(74, 168, 240),
},
Default = Color3.fromRGB(90, 209, 122),
Callback = setTrailColour,
})Every option#
| Option | Type | Default | What it does |
|---|---|---|---|
Textreq | string | — | The label. |
Callback | function(Color3) | — | Called with the chosen colour. |
Colors | Color3[] | — | The swatches to offer. Colours is accepted too. |
Default | Color3 | — | Which swatch starts selected. |
Description | string | — | A quieter second line. |
Icon | string | — | An icon shown before the label. |
Save | string | — | Persist the choice under this key. |
Colors or Colours
Both spellings work. The library reads Colors first and falls back to
Colours, so neither is wrong.
Methods#
| Method | What it does |
|---|---|
Get() | The selected Color3 |
Set(colour) | Selects it and fires Callback |
Palette or ColorPicker?#
Use a palette when the choices are a short, curated list — team colours, rarity tiers, a handful of highlight options. It is one click, and impossible to end up with an unreadable colour.
Use a ColorPicker when the user needs any colour in the spectrum.