How to set half of the text to a different value?

Hi everyone, I am have a question about something. I am trying to change the text value of an object as it increases. But it is set up so it shows the current amount of money slash the maximum amount of money for that wallet:

150/500

How can I change only the first half? In this case the 150 part? Or do I have to make two text objects?

yourTextObject.text = tostring(currentMoney) … “/” … tostring(maximumMoney)

Thanks!

yourTextObject.text = tostring(currentMoney) … “/” … tostring(maximumMoney)

Thanks!