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

How to hide leaderboard and healthbar?

Asked by 9 years ago

So me and my friend are working on a game. And we wanted to make the leaderboard and the health gui get removed. Is it possible? And how can i do it?

0
zombie, Please use the Search tab first before asking. woodengop 1134 — 9y

1 answer

Log in to vote
3
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

Using the SetCoreGuiEnabled function of StarterGui will do the trick:

--In a LocalScript

game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
Ad

Answer this question