Glorpia Docs
Instances / ValueBase

IntValue

Stores a signed integer.

Inheritance

IntValue is a ValueBase class and inherits the shared hierarchy API from Instance.

Members

NameTypeDescription
ValueintegerThe value stored by this instance. inf and -inf are accepted as the positive and negative integer limits.
ChangedsignalFires 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)

Related