An instance which is used to hold a boolean value. The value can be used for many things, including to communicate between scripts.
Used to hold a boolean value.
This event, like other changed events, can be used to track when an BoolValue changes and to track the different values that it may change to.
For instance, this may be useful in games that rely on BoolValues to track game states and values, such as switch or enabled states.
The new value after the change.
workspace.BoolValue.Changed:Connect(function(NewValue)print(NewValue)end)workspace.BoolValue.Value = not workspace.BoolValue.Value