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

Is it possible to raise the maximum of leaderstats somehow? [UNANSWERED] [COME ON PEOPLE .-.]

Asked by
obcdino 113
8 years ago

I am making a tycoon, but instead of nerfing all the upgraders (even though i will nerf some), I want to raise my leaderstats maximum.

I use this script to make sure that if it gets negative, it will turn into 0.

while true do
wait(0.001)
for i,v in pairs(game.Players:GetChildren())do
if v.leaderstats.Money.Value < 0 then
v.leaderstats.Money.Value = 0
end
end
end

The thing is that my upgraders are massive powerful and will get to negative a LOT. I'm just looking if there is a function or line that can change the maximum? Thanks if you answer!

0
roblox int values have a limit, but mabye try storing the amount of money in a script variable, then mabye to get it on leaderstats put it as a string? lucas4114 607 — 8y
0
^ Will try, thanks! obcdino 113 — 8y
0
Try using number values and math.floor to round it down. dirty_catheter 7 — 8y

Answer this question