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

How do I make a leaderboard? [closed]

Asked by 10 years ago

I have looked at peaspod's leaderboard tutorial but I messed up or something because it don't work every time. So, how do I make a leaderboard?

0
This is not a request site. Please post code that you are having issues with as well as a description of the issue and we will do our best to help you out. bbissell 346 — 10y

Locked by BlueTaslem

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 10 years ago

This isn't a request site, but you can read more on leaderboards on the wiki: http://wiki.roblox.com/index.php?title=Leaderboards

Ad
Log in to vote
0
Answered by 10 years ago

This is not a request site. Please refer to the Wiki for help. They have a whole leaderboard tutorial.

Basically you insert a model called leaderstats into players when they join:

game.Players.PlayerAdded:connect(function(player) --We create a function that will execute when PlayerAdded fires.
     local leaderstats = Instance.new("Model", player) --We insert an Model into the the new player (player)
     leaderstats.Name = "leaderstats"
 end) --closes function

Then you would have a script insert a IntValue into leaderstats