Glorpia Docs
Instances / ValueBase

BoolValue

Stores true or false.

Inheritance

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

Members

NameTypeDescription
ValuebooleanThe value stored by this instance.
ChangedsignalFires when Value changes and passes the new value.

Example

Luau
local value = Instance.new("BoolValue")
value.Name = "ExampleValue"
value.Value = true
value.Parent = workspace

value.Changed:Connect(function(newValue)
    print(newValue)
end)

Related