So I want a leaderboard to pop up when someone presses a certain button lets say.. T So What I want is that when someone is playing they can quickly access the leaderboard then have it quickly go away when they stop pressing the button. How would I do this?
COMMUNITY QUESTION
How would I make a Leaderboard tab?
4 answers
Press Tab on your keyboard and it pops up. ROBLOX put that in.
Roblox already allows you to view the leaderboard by pressing tab to open and close the leaderboard
Well, Do you mean the leaderboard roblox has or a GUi leader Board?
Use this in a LocalScript.
local mouse = game.Players.LocalPlayer:GetMouse()
local key = "t" -- change this
local leaderboard = game.Players.LocalPlayer.PlayerGui.Leaderboard -- change this too
mouse.KeyDown:connect(function(k)
if k:lower() == key:lower() then
leaderboard.Visible = true
end
end)
mouse.KeyUp:connect(function(k)
if k:lower() == key:lower() then
leaderboard.Visible = false
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Nvm he got it ^^^^^^^^^^^^^^^
I mean a custom Leaderboard not the Roblox default I want something that I can customize myself.
Ah, First make a leader board then follow their steps on the Button Pressed.
If you have skype I can screen share on how to make a Screen Gui and everything.