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

How do you make a leaderboard in latest version of studio?

Asked by 7 years ago

I know but don't know. It's weird I watch Peasfactory but his videos are a bit outdated. I get it, but don't. I am really confused lol.

1 answer

Log in to vote
0
Answered by 7 years ago

In a server script:

1game:GetService("Players").PlayerAdded:Connect(function(player)
2    local leaderstats = Instance.new("Model") --could be a folder or whatever
3    leaderstats.Name = "leaderstats" --required
4    leaderstats.Parent = player
5    local Kills = Instance.new("IntValue") --an example of a leaderboard section
6    Kills.Name = "Kills"
7    Kills.Parent = leaderstats
8end)
Ad

Answer this question