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

How would I make a Leaderboard tab?

Asked by 10 years ago

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?

4 answers

Log in to vote
1
Answered by 10 years ago

Press Tab on your keyboard and it pops up. ROBLOX put that in.

Ad
Log in to vote
0
Answered by 10 years ago

Roblox already allows you to view the leaderboard by pressing tab to open and close the leaderboard

Log in to vote
0
Answered by
mnaj22 44
10 years ago

Well, Do you mean the leaderboard roblox has or a GUi leader Board?

0
Nvm he got it ^^^^^^^^^^^^^^^ mnaj22 44 — 10y
0
I mean a custom Leaderboard not the Roblox default I want something that I can customize myself. Stormtrooper12556 0 — 10y
0
Ah, First make a leader board then follow their steps on the Button Pressed. mnaj22 44 — 10y
0
If you have skype I can screen share on how to make a Screen Gui and everything. mnaj22 44 — 10y
Log in to vote
-1
Answered by 10 years ago

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)

Answer this question