How would I make a value on text say "1,000" instead of "1000"

Hi! So I have not found a solution on Dev Forums about how to make text from a number value turn into “1,000” instead of “1000”. Is it a value or function? I’m not quite sure. It’s just a simple while script changing the number so it isn’t the most complicated. Anything will help, thanks!

1 Like

You can use string patterns to do this I’m fairly sure. There’s a resource here in the Lua documentation for things like this.

Just to clarify I cannot help you with writing a string pattern, there are very clever people who have already figured this out.