Hud text visibility doesn't change

I removed the binding function from the visibility and made it using the tick in the hud:


Now it works.

I’m not marking this as solved because I still have no idea why my original solution doesn’t work.