Skip to main content

Color Picking

Creation Snippet

local ColorPicker = Label:AddColorPicker({
CurrentValue = Color3.fromRGB(33,217,64),

Callback = function(Color)

end,
}, "INDEX")

This is just a snippet, not all parameters are included.
Replace INDEX with a unique identifier of the instance that is not repeated within other nested elements nested in the parent.
Basically, you can just call it the type of nested element since theres only one of these in your label/toggle.

Accepted Parents

Label, Toggle

Parameters

CurrentValue : Color3
The Current Value of the Color Picker.

Transparency : number NOT REQUIRED
The Alpha Value of the Color Picker. Set to nil if you do not wish to use Alpha Channels in your Color picker.

Callback : function
The function that executes when the Color is changed.
Passed Parameters:

  • Color : Color3
    The current color picked by the color picker.
  • Transparency : number
    The current transparency value of the color. Nil if initial was not set.

Returns

GuiObject .Instance

  • The actual Instance of the Element within Roblox.