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 11 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 11 years ago

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

Ad
Log in to vote
0
Answered by 11 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
11 years ago

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

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

Use this in a LocalScript.

01local mouse = game.Players.LocalPlayer:GetMouse()
02local key = "t" -- change this
03local leaderboard = game.Players.LocalPlayer.PlayerGui.Leaderboard -- change this too
04 
05mouse.KeyDown:connect(function(k)
06    if k:lower() == key:lower() then
07        leaderboard.Visible = true
08    end
09end)
10 
11mouse.KeyUp:connect(function(k)
12    if k:lower() == key:lower() then
13        leaderboard.Visible = false
14    end
15end)

Answer this question