Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I increase the max leaderstats in roblox?

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

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)

2 comments

0

your link's broken

0

Fixed it thanks for telling me.

This discussion is preserved as it was. New answers, comments, and votes are closed.