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

Why my hide leaderboard don't work?

Asked by 9 years ago

Hello, My Hide Leaderboard/HP/Chat script don't work. Umm.. in Roblox Studio work perfect, but not in normal server. Here is code:

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false) --Player list
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false) --Health
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false) --Chat
0
Are you using a Script or a LocalScript? Spongocardo 1991 — 9y
0
LocalScript DevKarolus1 70 — 9y

1 answer

Log in to vote
-2
Answered by
dyler3 1510 Moderation Voter
9 years ago

Yo Problem

Your main problem is that you're trying to use the StarterGui, when you need to use the Players PlayerGui. Also, you also need to make sure the PlayerGui is there before you do this.


Fix Dis Stauf

So let's try this script:

while game.StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.PlayerList)==true do
    game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false) --Player list
    game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false) --Health
    game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false) --Chat
    wait()
end
(Tested and Works) - Put in a LocalScript

Anyways, if you have any further problems/questions, please leave a comment below and I'll see what I can do. Hope I helped :P

-Dyler3

0
Umm.. it should be local script right? DevKarolus1 70 — 9y
0
No, normal script in workspace. magiccube3 115 — 9y
0
Yup, normal Script in Workspace. dyler3 1510 — 9y
0
So don't work... DevKarolus1 70 — 9y
View all comments (6 more)
0
I tested it, and it worked fine for me. You must have something else that's messing it up, or you didn't put it in correctly. dyler3 1510 — 9y
0
I did.. created new normal script in workspace and copy/paste it, deleted these numbers and published to roblox. DevKarolus1 70 — 9y
0
Oh sorry, my bad, I had the wrong script in there. I forgot to update. I'll edit it and post the correct one dyler3 1510 — 9y
0
Also, you were right it needs to be in a LocalScript, lol sorry about that. dyler3 1510 — 9y
0
Mhm, it works perfectly, but i had to put to StarterPlayer>StarterPlayerScripts. Thanks for help :) DevKarolus1 70 — 9y
0
No prob :P dyler3 1510 — 9y
Ad

Answer this question