ValueBase¶
Not to be confused with:
-
BoolValue (used for storing bool values.)
-
ColorValue (used for storing color values.)
-
InstanceValue (used for storing instances.)
-
IntValue (used for storing integer values.)
-
NumberValue (used for storing number values.)
-
StringValue (used for storing string values.)
-
? (used for storing Vector2 values.)
-
Vector3Value (used for storing Vector3 values.)
Base class of all value classes.
Abstract Object
This object exists only to serve as a foundation for other objects. It cannot be accessed directly, but its properties are documented below.
Additionally, it cannot be created in the creator menu or with Instance.New()
Inherits Instance
Events¶
Changed¶
Fires when the value of the ValueBase changes.
Example
boolValue.Changed:Connect(function()
print("My new value is " .. boolValue.Value)
end)