I have a piston that has been working for a while and I have just been dealing with a particular problem. When multiple people arrive at the same time, my piston would not restore the lights to the previous state. Thus I wrapped the entire piston in a variable called “someone_arrived” and it is default to fasle. The idea was to have it set to true when someone arrives thus if multiple people arrive, the piston would continue to run and restore the lights for the individual and eventually reset the variable to false.
However, my variable is not always resetting to false and remains on true, thus not running until I manually reset it.