The maximum amount of a leaderstat is 2147483647, i want to make it to infinite. I have seen games like mow my lawn, where the leaderstats when on infinitely. Or of I could create a GUI that displayed a leaderstat too, how would I do that?
COMMUNITY QUESTION
How do I increase the max leaderstats in roblox?
1 answer
Thats only the max on an Intvalue try using a NumberValue
http://wiki.roblox.com/index.php?title=API:Class/NumberValue Heres an example below
function onPlayerEntered(newPlayer)
wait(.5)
local stats = Instance.new("NumberValue")
stats.Name = "leaderstats"
local score = Instance.new("NumberValue")
score.Name = "Money"
score.Value = 0
score.Parent = stats
stats.Parent = newPlayer
end
game.Players.ChildAdded:connect(onPlayerEntered)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
your link's broken
Fixed it thanks for telling me.