Instances / ValueBase
NumberValue
Stores a number.
Inheritance
NumberValue is a ValueBase class and inherits the shared hierarchy API from Instance.
Members
| Name | Type | Description |
|---|---|---|
Value | number | The value stored by this instance. inf and -inf are supported. |
Changed | signal | Fires when Value changes and passes the new value. |
Example
Luau
local value = Instance.new("NumberValue")
value.Name = "ExampleValue"
value.Value = 12.5
value.Parent = workspace
value.Changed:Connect(function(newValue)
print(newValue)
end)