Is there a way to get IntValue digits?

Hi there! :wave:
I’m trying to build a 7 segments display that (in theory) should show up an IntValue.


What i’ve made so far is a number interpreter, which defines how do the numbers have to be shown in the display.
I created a table value called “numbers” and in it i put some functions named (“one”, “two”, etc) with an argument called “digit” that refers to a specific digit that has to be changed in the display. What each function does is basically changing the digit’s segments materials so that a number shows up)

My problem:
The problem came when i started to think about how to script something that changes the digit with a sense.
Since i’d like to make this display show up an IntValue in it, is there a way to make the script get every single digit of the IntValue? (e.g. If the value is 128, the code should get 1 for hundreds, 2 for dozens, and 8 for units)

Thanks in advance for your help. :sweat_smile:

Wow thank you very much! :smile: