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!

3 comments
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?
^ Will try, thanks!
Try using number values and math.floor to round it down.