ValueBase
Abstract parent of the single-value classes.
ValueBase is the shared parent of the value objects such as StringValue, NumberValue, and BoolValue. It adds no members of its own and can't be created.
Getting started
local value = Instance.new("StringValue")
print(value:IsA("ValueBase")) -- trueMembers
None. Each concrete value class adds its own Value property.
Notes
ValueBaseisn't creatable withInstance.new().- It's useful for type checks that should accept any value object.
- Cloning a concrete value copies its stored value.
- The adornment classes also descend from
ValueBasein this engine, which is worth knowing when writingIsAchecks.
See also
StringValue,NumberValue, andBoolValue.ObjectValuefor instance references.
