PlayerlistModule formatNumber Errors When Given An INF Value

I’m setting a Stringvalue to INF in leaderstats, this is giving an error to PlayerlistModule preventing the CoreGui from loading. I believe this can be solved by adding “and numberValue ~= math.huge” to line 714 of PlayertlistModule.

PlayerlistModule Bug.rbxl (12.8 KB)

Found on version-e88b10e35a0a4e91 of ROBLOX Studio.

image

4 Likes

Can confirm this is happening on 0.391.0.313677 (64bit) version. It’s really damaging my workflow right now. (I know this is 6 months old, but it’s still an issue, and should really just be treated as a string)

1 Like

I’d suggest having data inside the server script, while leaderstats is only used for read-only data, that way if you have an infinite value you can do something like

if data.Cash == 1/0 then
	leaderstats.Cash.Value = "inf"
end