Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I disable the menu button but not the backpack gui?

In the top right corner of the screen, there is a button with 3 lines. When clicked, it opens a menu to tell you how open backpack and leaderboard. I want to remove the button without removing the backpack from my game. I have disabled the leaderboard (I don't need it), but to remove the button altogether I need to remove the backpack as well (which I do not want to do).

So, can I remove the menu button without removing the backpack too? Do I need to create a custom backpack?

Thanks, blocky010101.

Btw If this is confusing, let me know and I'll reword it.

1 comment

0

I don't think it's possible to disable the menu without disabling all of its items.

2 answers

Easy! If this helped you make sure to accept answer!

wait() -- Wait a certain time. Keep this as wait()
pcall( -- Sets it so it wrap.
 function() -- Functions pcall.
  local DisableGUI = game:GetService("StarterGui") -- Variable.
DisableGUI:SetCore("TopbarEnabled", false) -- Sets top bar to false

DisableGUI:SetCoreGuiEnabled(Enum.CoreGuiType.All, false) -- Disable everything except for the black bar:

DisableGUI:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false) -- Disable Backpack:

DisableGUI:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false) -- Disable Chat:

DisableGUI:SetCoreGuiEnabled(Enum.CoreGuiType.EmotesMenu, false) -- Disable Emotes Menu:

DisableGUI:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false) -- Disable Health

DisableGUI:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false) -- Disable Playerlist:

end)

1 comment

0

I said I wanted to keep everything enabled except for the menu icon in the top right corner of screen

Well, the solution is you can't. If you could disable Menu button people will make you get stuck in their games. You can only disable Backpack, Health, PlayerList and Chat [there migth be more]. So, in order to disable the Menu button, you have to do disable other CoreGui elements.

1 comment

0

I am not talking about the menu where you can leave the game, I'm talking about the menu in the other corner of the screen where u can open and close backpack and leaderboard and emotes menu.

This discussion is preserved as it was. New answers, comments, and votes are closed.