dialog refers to the return value of Dialog:Create

Color

dialog:AddColorInput creates a new color input field.

Parameters

dialog:AddColorInput(label, description?, defaultValue?)
NameTypeDescriptionRequired
labelstringThe title of the inputYes
descriptionstringThe description of the input fieldNo
defaultValue[r: number, g: number, b: number, a: number]The default value of the input fieldNo

Example

client/example.lua
local dialog = Dialog:Create('Title');
 
dialog:AddColorInput('Color', 'Your favourite Color', { 255, 0, 255, 0.5 });
 
local results = dialog:Open();
 
print(results[1]) -- The entered text