Recently I have been working on a game that displays your Leaderstats on a GUI, but when the user gets to let's say 1000 or higher, some people struggle to read the numbers.
Is there any way of adding commas in the correct spots for example 10000 would turn into 10,000 or 1029855 into 1,029,855 , just so it looks better and easier for people to read.
If you need the code for what is displaying the leader stats it's here.
local player = game.Players.LocalPlayer
while wait() do
script.Parent.Text = player:WaitForChild("leaderstats"):WaitForChild("Coins").Value
end
But I'm guessing its got nothing to do with that and would need to be a seperate script inside the TextLabel maybe?

2 comments
A google search shows that this has been answered before on this site: https://scriptinghelpers.org/questions/14293/how-to-add-commas-in-an-updating-number-value
Okay, thanks!