Boolean not working after timeline

Where is this code?

Anyway, if you just set ‘has red valve’ to false here

I think it should be ok?