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