So I have a leaderstats put in called CC (Cactus Coins, don't judge it.) and I want to make it so that if it's 1,000,000 it'll change to 1M instead of 1,000,000. And if it's a billion, make it 1B, and if it's 140 million, make it 140M rather than all the digits. How would I do that without calling hundreds of lines of code?
01 | local letters = { |
02 | "K" , |
03 | "M" , |
04 | "B" , |
05 | "T" , |
06 | "QD" , |
07 | "QN" , |
08 | "SX" , |
09 | "SP" , |
10 | "O" , |
11 | "NO" , |
12 | "DEC" , |
13 | "UND" , |
14 | "DUOD" , |
15 | "TRED" , |
Then do what firedDusk said, use a StringValue when displaying the numbers
Well when changing to 1,000,000 that uses a Number Value or Int Value. But if you are wanting to change it to 1M or 1B then you use a string value.