Hide leaderboard by default

Is it to hide the leaderboard by default? Is it possible to display a UI over the leaderboard? I am making a loading screen, and it looks bad with the leaderboard covering a huge chunk of it.

You can use the CoreGUI,

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
1 Like

you can use

game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
1 Like

I want the leaderboard to still open when you press tab.

after the loading screen you can again use

game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, true)

to re-enable it

I tried that, but it didn’t seem to re-enable

are you getting any errors ?

It works for me tho

I’m not getting any errors but my game loads in 2-3 seconds, so there are 5ish seconds between disable and enable

it should still work, try debugging using print statements

It was an issue with my code, it is working now

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.