You have a script that waits for a trigger and then executes a second script.
What executes the first script? If the answer is “nothing” then it will never work. An unexecuted script never performs its actions.
I suggest you consider replacing the first script with an automation that uses a State Trigger to detect when the input_boolean’s state changes to off (and then it executes your second script).
The differences between scenes, scripts and automations is summarized here: