Checking boolvalue's value without an infinite loop

I was wondering if there was a way to check if a boolvalue’s value has changed without using an infinite loop. Using a loop, it would constantly check if the value is true or not. However, I want to try another method that does not require checking infinitely.

So far, I’ve tried using GetPropertyChangedSignal but that doesn’t depend on what the value actually has changed to, so no luck. Any help here?

Use :GetPropertyChangedSignal("Value").

local bool = --value

bool:GetPropertyChangedSignal("Value"):Connect(function()
    print(bool.Value)
end)
2 Likes