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

Easiest way to remove the leaderboard?

Asked by 9 years ago

What's the easiest way to remove the leaderboard?

2 answers

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

You can use a LocalScript to use the SetCoreGuiEnabled method to set the leaderboard value to false. SetCoreGuiEnabled allows you to disable or enable Core Guis of ROBLOX, such as the leaderboard, chat, health bar, and the backpack. The leaderboard's enum value is 0 in CoreGuis.

SetCoreGuiEnabled takes two parameters: The Core GUI you want to disable, and if you want it to to turn visible or not with a boolean.

game.StarterGui:SetCoreGuiEnabled(0, false)

Placing this code in a LocalScript in StarterGui should work perfectly fine.

Here is the wiki page on SetCoreGuiEnabled.

If I helped you out, be sure to accept my answer!

Ad
Log in to vote
0
Answered by
iSvenDerp 233 Moderation Voter
9 years ago

Hi...Since the leaderboard is a Type of core GUI We will use SetCoreGuiEnabled.

game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)-- This means That your getting the GUI Server then going into the core GUI and removing the type called Leaderboard.

Hope this helped let me know if it did. I cant test it right now but im almost positive it worked

Answer this question