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

How To Disable Anything Of Roblox?

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

3 answers

✓ Accepted answer
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.

The enum values for each CoreGui is here:

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)

Because 1 is the enum value for Health and we are setting it's enabled setting to false, meaning it would be disabled.

If I wanted to enable the Backpack CoreGui, then this code would work:

game.StarterGui:SetCoreGuiEnabled(2, true)

Because 2 is the enum value for Backpack and we are setting it's enabled setting to true, meaning it would be enabled.

These would have to be in LocalScripts located in StarterGui to run because SetCoreGuiEnabled runs locally.

Here is more information on SetCoreGuiEnabled.

If I helped you out, be sure to accept my answer!

4 comments

0

Awesome thanks man, and thank you all for the answers you given!

2

You don't have to & SHOULD NOT use the numbers. You can use names: e.g. "Backpack" or enums: Enum.CoreGuiType.Backpack

0

Why shouldn't you use the numbers?

2

You can't read them. Want to tell me what "four" means? There's no reason to make yourself or anyone else go look that up.

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