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

How do I increase the max leaderstats in roblox?

Asked by
Buugle 0
6 years ago

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?

1 answer

Log in to vote
1
Answered by
Prestory 1395 Moderation Voter
6 years ago
Edited 6 years ago

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)

0
your link's broken Programical 653 — 6y
0
Fixed it thanks for telling me. Prestory 1395 — 6y
Ad

Answer this question