Thanks for looking at my question, the title is confusing as if I'm trying to shut down servers as if I was a hacker, but it's not what it seems to be.
What I'm Asking
All I'm asking for is how to disable leader board, health, the general Roblox Menu, etc. I want to know if it's possible, and if so how? I know this sounds like a request, but you can just point me into the right direction and I can go from there. If this is possible of course.
GreekGodOfMLG
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
This will get rid of all of the Gui's that Roblox has except the menu.
changing false to true will also enable the Gui. Also make sure you change All to what ever you want to enable.
These are the things you can enable and disable. (Backpack ,PlayerList ,Health, and Chat)
Use this line in a normal script inside a client-side location, so place it in the StarterGui as it will run as soon as possible after the player enters the game:
game.StarterGui:SetCoreGuiEnabled(#, false) -- Change # to the enum number
List here: CoreGuiType (Enum)
Yes, this is possible.
You can use the SetCoreGuiEnabled
method on StarterGui in a LocalScript to remove these elements at your wish. This method takes two parameters, the CoreGui you want to edit and if you want to make it enabled or disabled.
PlayerList - 0
Health - 1
Backpack - 2
Chat - 3
All - 4
If I wanted to disable the Health CoreGui, then this code would work:
game.StarterGui:SetCoreGuiEnabled(1, false)
If I wanted to enable the Backpack CoreGui, then this code would work:
game.StarterGui:SetCoreGuiEnabled(2, true)
SetCoreGuiEnabled
runs locally.Here is more information on SetCoreGuiEnabled.
If I helped you out, be sure to accept my answer!