Class · inherits ValueBase
BoolValue
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
Changed
BoolValue.Changed:Connect(function(value))Fires whenever theBoolValue.Valueis changed.Fires whenever the
BoolValue.Valuechanges. It runs with the new value being stored in the argument object, instead of a string representing the property being changed.Listening for the
Changedsignal can be useful in games that useBoolValuesto 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.