Suffix Currency Script

I am creating a TextLabel currency script for my game. But it’s with commas. Personally commas are hard to work with. I want to create a suffix (k, m, b, t) but, I don’t know how to make it. Someone show me how to make it.

1 Like

Please search the dev forum before adding a topic, I have already answered this here: I need help with large abbreviations! - #3 by Hello42bacon

2 Likes

Take a look at this module:

It comes from Miner’s Haven which is now open-sourced:

2 Likes

I just saw that module time ago, and i don’t know how to use it, i must set that module and the module will do everything else?

I believe, all you need to do is require it and then call HandleMoney.
For example:

local MoneyLib = require(script.MoneyLib)
local Money = 1000
local MoneyString = MoneyLib.HandleMoney(Money)
print(MoneyString) --// 1k
1 Like