When player presses escape - current central window is automatically closed, next escape press - pause menu.
I wish it could be a thing for custom frames.
It can be property like 'close_on_menu_toggle' on LuaGuiElement for type = 'frame'.
Close current player.gui.center windows on escape.
Re: Close current player.gui.center windows on escape.
You can do this by using player.opened, and listening for the on_gui_closed event
Re: Close current player.gui.center windows on escape.
Thanks! I should have posted this in another section.