But the issue is, the closing event only fires once the menu has fully disappeared. The open event also doesn’t fire if it was already visible due to it not closing immediately.
Is there a reliable method of detecting exactly when it starts opening and closing?
The reason for this is because I want to be able to muffle ingame music, while the menu is open. If the transition waits for the menu to fully close, it will be muffled for too long.
I won’t be able to test anything because I won’t be home, but your help is still appreciated! If there’s no solution, I have a method in mind which would be incredibly hacky. It would work, but I would rather ask if anybody knows a better way!
Doing that is part of my hacky method, if there’s no other solution. It would be detecting ESC, clicking near the menu button, pressing menu on a controller, etc.
Whatever workaround you came up with, you’re going to have to use that. The CoreScript responsible for firing the GuiService menu events only chooses to do so after the tween finishes and naturally you, the developer, can’t access any core items, therefore can’t change the timing of the signal fire.