BrickColorValue

Show Deprecated

An instance which is used to store a BrickColor value.

Summary

Properties

Used to hold a BrickColor value.

Events


Fired whenever the BrickColorValue.Value of the BrickColorValue is changed.

Methods

Properties

Used to hold a BrickColor value.

Events

Changed

Fired whenever the BrickColorValue.Value of the BrickColorValue is changed. It will run with the new value being stored in the argument object, instead of a string representing the property being changed.

This event, like other changed events, can be used to track when an BrickColorValue changes and to track the different values that it may change to.

Equivalent changed events exist for similar objects, such as NumberValue and StringValue, depending on what object type best suits the need.

Parameters

value: BrickColor

The new value after the change.


Code Samples

BrickColorValue.Changed

1workspace.BrickColorValue.Changed:Connect(function(NewValue)
2 print(NewValue)
3end)
4
5workspace.BoolValue.Value = BrickColor.new("Bright red")

Methods