Skip to content

Class · inherits ValueBase

BoolValue

Official docs ↗

A container object for a single boolean value.

About BoolValue

Stores a single boolean value. The value can be used for many things, including to communicate between scripts.

Like all ValueBase objects, this single value is stored in the Value property. The Changed event fires with the new value being stored in the object, instead of a string representing the property being changed.

Properties 1

  • Value: booleanUsed to hold a boolean value.

Events 1

  • ChangedBoolValue.Changed:Connect(function(value))Fires whenever the BoolValue.Value is changed.

    Fires whenever the BoolValue.Value changes. It runs with the new value being stored in the argument object, instead of a string representing the property being changed.

    Listening for the Changed signal can be useful in games that use BoolValues to track switch or enabled states.

BoolValue also has every member of ValueBase. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.