Instances / ValueBase
Colour3Value
Stores an RGB colour.
Inheritance
Colour3Value is a ValueBase class and inherits the shared hierarchy API from Instance.
Members
| Name | Type | Description |
|---|---|---|
Value | Colour3 | The value stored by this instance. |
Changed | signal | Fires when Value changes and passes the new value. |
Example
Luau
local value = Instance.new("Colour3Value")
value.Name = "ExampleValue"
value.Value = Colour3.fromRGB(80, 140, 255)
value.Parent = workspace
value.Changed:Connect(function(newValue)
print(newValue)
end)Canadian and American spelling
Glorpia uses Canadian spelling in Studio and documentation, so Colour3Value is the displayed class name.
For compatibility, Instance.new("Color3Value"), IsA("Color3Value") and older places that contain Color3Value continue to work and are normalised to Colour3Value.