Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How To Disable Anything Of Roblox?

Asked by 9 years ago

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

Log in to vote
0
Answered by 9 years ago
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)

Ad
Log in to vote
2
Answered by 9 years ago

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)

Log in to vote
-2
Answered by
Discern 1007 Moderation Voter
9 years ago

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!

0
Awesome thanks man, and thank you all for the answers you given! GreekGodOfMLG 244 — 9y
2
You don't have to & SHOULD NOT use the numbers. You can use names: e.g. `"Backpack"` or enums: `Enum.CoreGuiType.Backpack` BlueTaslem 18071 — 9y
0
Why shouldn't you use the numbers? Discern 1007 — 9y
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. BlueTaslem 18071 — 9y

Answer this question