um the line is kinda crossed out…
It was intentional, as I have updated my post I was mentioning. Have you tried running the code again, with the change I made?
oh wait did you edit it again?
ok yea i have now, but it doesnt work and im starting to think that its formatNumberAlt
Have you checked your Output? Are there any errors displayed?
ah ha its in one of the formatnumberalt scripts
Strange. What Value are you using for the leaderstats? NumberValue
or IntValue
? Something else?
And what value did you exactly place in the object?
i’m using an int value and what object?
Before calling FormatCompact()
, can you print the value of Gems
?
local gemsLabel = script.Parent.Gems.Label
warn(`I have {gems.Value} gem(s)`) ------ Here
local textGems = formatNumber.FormatCompact(tonumber(gems.Value))
gemsLabel.Text = textGems
local function update() -- Callback function separated to its own block.
warn(`I now have {gems.Value} gem(s)`) ------ Here
textGems = formatNumber.FormatCompact(gems.Value)
gemsLabel.Text = textGems
end
ok so which script shall i plop it in?
ok which script though im kinda confused?
It’s the same script. Do not replace all of its code with the one I provided, rather replace the portion of the code that’s identical to it.