Every ball has a code that sets textX and textY (here you only need to change textX), search for that, and replace the constant value with a variable and tweak as necessary. Then from the main script change it. Or maybe you could do it some other way idk