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

How do i create my own leaderstats?

Asked by 5 years ago

Hi Mighty friends, I wanna know how to make custom leaderstats but don't know how, Help of you can thanks alot.

0
Go to youtube, and search for how to make a Custom leaderboard. AspectType 151 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Creating leaderstats needs a new instance called leaderstats. Here is the code.

game.Players.PlayerAdded:Connect(function(player)
lb = Instance.new("IntValue",player) --[[Here you set what are you creating and its parent]]
lb.Name = "leaderstats"--[[This has to be called leaderstats]]
Points = Instance.new("IntValue",lb)
Points.Name = "YourCurrency"--Set to whatever
--You can change its value with Points.Value
end
end)
Ad

Answer this question