Roblox Studio Tutorials - October 24, 2021

How to Make a Leaderboard


Buzzy Beth


Download – Leaderboard Script

How To – Make a Leaderboard (Leaderstats)

What’s up everyone welcome to buzzygames, my name is BuzzyGamesBeth and today I’ll be teaching you how to make a leaderboard with leaderstats!

  • Right now if I hop into my clicker game, so that’s what i’m going to add the leaderboard into. So anytime I press the button it will update on my surfaceGUI, but there really isn’t a leaderboard to indicate you know how many clicks I’ve done or how many clicks another player has done. So I want to add thati t’s really simple.
  • So first thing I want to do is head over to serverscriptservice and I’m going to go ahead and add a script
  • Let’s go ahead and delete our print statement. So what we want to do is go ahead and create a leaderstats folder and create a value an value for our clicks so you can change the you knowthe value of to anything you want
  • You can do like rebirth kills anything you want but for me I want to get the amount of clicks. So inside of my script inside of click detector I want to update this leaderstats value by plus one for any time I click the button
  • I’m gonna do player.leaderstats.clicks.value it’s going to be equal to 1. So anytime I click the button it’s going to add one and then i’m gonna rename my script and server script service to “leaderstats”
  • Cool and that’s it! So if I hop into the game, i’m gonna go ahead and click play. You’ll see that in the top right corner it has a little leaderboard that shows me the amount of clicks I do. So if anybody else joins the game it’ll show their name as well as the amount of clicks that they do! Look at that it updates in real time 😀