How did they hide the Leaderboard via a Script?

How did they get a button to hide the Leaderboard? I thought this wasn’t possible (Video for reference)

It also doesn’t seem to be a Custom Leaderboard either, as it perfectly mimics the Roblox Default Leaderboard so it looks like it is the Roblox Leaderboard, but if it’s a custom one then my bad.

External Media
1 Like

Haven’t downloaded the video, but if there’s a custom button to hide the leaderboard then they used the SetCoreGuiEnabled method from StarterGui. Something like this:

--!strict
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)

(Mb, messed up the code, it’s 12 AM lol)

1 Like

This disables it entirely and isn’t the toggle effect like they have, but I can work with this so thank you

1 Like

if u want it to toggle then u can just check if its disabled then make it enabled and vice versa

1 Like