ValueObject

Back to reference

To work like value objects in ROBLOX and track a single item, with .Changed events

Members

Events

Events Description
Changed ( Variant newValue Variant oldValue ) Event fires when the value's object value change

Functions

Returns Functions Description
ValueObject ValueObject.new ( ) Constructs a new value object

Fields

Fields Type Description
Value Variant The value of the ValueObject

Methods

Returns Methods Description
Destroy ( ) Forces the value to be nil on cleanup, cleans up the Maid

Events Descriptions

ValueObject.Changed ( Variant newValue Variant oldValue )

Event fires when the value's object value change

Params

Functions Descriptions

ValueObject ValueObject.new ( )

Constructs a new value object

Returns

Fields Descriptions

Variant ValueObject.Value

The value of the ValueObject

Methods Descriptions

ValueObject:Destroy ( )

Forces the value to be nil on cleanup, cleans up the Maid