Hello, I wanted to do leader board following this article. But faced a problem that I cannot exceed the numberToShow
limit.
If anyone knows how to do this, can you help me?
1 Like
Try using a stringValue then converting your number to a string then placing that as the value.
Ex:
local CoinAmount = 500
local function Convert(Coins)
ConvertedCoinsValue = tostring(Coins)
end
game.Players.PlayerAdded:Connect(function(plr)
local Leaderstats = Instance.new("Folder")
Leaderstats.Name = "leaderstats"
Leaderstats.Parent = plr
Coins = Instance.new("stringValue")
Coins.Name = "Coins"
Coins.Parent = Leaderstats
end)
while true do
wait(1)
CoinAmount = CoinAmount + 1
Convert(CoinAmount)
Coins.Value = ConvertedCoinsValue
end
1 Like