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

In a server script:

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

Answer this question