I wanna put it out there that I am only 2 weeks into lua so my knowledge range isn’t too far, anyways I am using bereza moneylib module to abbreviate values, however i noticed 2 things when adding, it seems if the value is less that 100, it never gets added, secondly when the leaderstat is less than 1k and not abbreviated the value comes back as nil
local MoneyLib = require(ReplicatedStorage:WaitForChild("MoneyLib"))
game.ReplicatedStorage.Element.E1.OnServerEvent:connect(function(player)
local Element1 = MoneyLib.ShortToLong(player.leaderstats.Element.Value)
local Element2 = MoneyLib.DealWithPoints(Element1 + 99)
player.leaderstats.Element.Value = Element2
end)
heres the entire moneylib module https://github.com/berezaa/minershaven/blob/master/src/ReplicatedStorage/MoneyLib.lua