ESC key doesn't work

Hello,

I am trying to make a my own menu that will appears when you’ll press ESC button on your keyboard. But it doesn’t work. I already disabled roblox default guis like backpack, player’s leaderboard, etc… Could someone tell me where is my problem?

Thank you for every reply!

2 Likes

You cannot disable the menu. Roblox does this so people cant lock players (Mobile + Tablet Players) in a game.

1 Like

roblox doesn’t support / allow this. roblox don’t want players lock other players. that would be unfair. that’s why roblox doesn’t want to add disable topbar.

1 Like

Hello,
thanks for reply!

That makes sence now. I just wanted to change menu design and remove those buttons, well… I guess I now must change it to another button. :sob: .

Have a nice rest of the day / night.

1 Like

thanks. after my theorie, roblox patched that you could change the UI. but it’s not possible anymore. :confused:

Enum.KeyCode.Escape exists.

https://developer.roblox.com/en-us/api-reference/property/InputObject/KeyCode

In addition to this here are two events which are fired when the core gui escape menu is opened/closed respectively.

https://developer.roblox.com/en-us/api-reference/event/GuiService/MenuOpened
https://developer.roblox.com/en-us/api-reference/event/GuiService/MenuClosed