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

Removing Core GUIs?

Asked by
novipak 70
10 years ago

Here is my script attempting to remove all Core GUIs:

if game:FindService("StarterGui")then --If game finds service StartGui then
game:GetService("StarterGui"):SetCoreGuiEnabled("All",false) --Sets PlayerList into disabled mode
end --The end for the if statement

Please leave a reply

1 answer

Log in to vote
2
Answered by
RedCombee 585 Moderation Voter
10 years ago

This method is only usable in local scripts. This is the way I always do it.

game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
0
I tried this way, and it is still not working for me. I tried putting it into my if statement and after that just straight up putting that line of code. Any idea why? novipak 70 — 10y
0
Just don't use the if statement. Just use this one line of code because the if statement isn't needed. RedCombee 585 — 10y
0
Make sure you're using this in a LocalScript, preferrably inside the StarterGui. adark 5487 — 10y
0
I already mentioned that in my answer. RedCombee 585 — 10y
Ad

Answer this question