I have a piston that create security activity and when it detect something it start to flash some lights using the flash method .
I want it to stop if mod changes to Home or a button pressed .
I need it stop ASAP and not wait till the end of the flash counter .
I tried using a virtual switch and a while loop but it didn’t work
Here is a sample piston I created
Thanks