I have a couple GUI’s that I’d like to hide whenever the Main Menu (yes, the Core GUI menu) is opened. Is there an event for this? I scoured the DevHub for answers, nothing. I also checked out :SetCore() and :GetCore() but there was nothing that matched my case.
If what I am asking is unclear, please let me know.
local Player = game.Players.LocalPlayer
local GuiService = game:GetService("GuiService")
GuiService.MenuOpened:Connect(function()
print(Player.Name.." opened their menu.")
end)
GuiService.MenuClosed:Connect(function()
print(Player.Name.." closed their menu.")
end)
Ik old thread but escape key can still be used as a keybind although it’d be kinda dumb, it is still possible. Best to just work with the MenuOpened event.