PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

BoolValue.Changed

BoolValue.Changed

Oct 01 2018, 1:47 AM PST

The below example, assuming all referenced objects existed, would print the BoolValue’s new value each time it changed.

Workspace.BoolValue.Changed:Connect(function(NewValue)
    print(NewValue)
end)

Workspace.BoolValue.Value = not Workspace.BoolValue.Value