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

Why my hide leaderboard don't work?

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

2 comments

0

Are you using a Script or a LocalScript?

0

LocalScript

1 answer

✓ Accepted answer

##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

10 comments

0

Umm.. it should be local script right?

0

No, normal script in workspace.

0

Yup, normal Script in Workspace.

0

So don't work...

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.

0

I did.. created new normal script in workspace and copy/paste it, deleted these numbers and published to roblox.

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

0

Also, you were right it needs to be in a LocalScript, lol sorry about that.

0

Mhm, it works perfectly, but i had to put to StarterPlayer>StarterPlayerScripts. Thanks for help :)

0

No prob :P

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