How do I add to an integer to make it more then 4 digits?

When I add to an integer, it just stops adding and ends at 9.999k.
Code for the number simplifying system:
I made it so that when an image is clicked, it will add to the integer

Someone help me pls I’m desperate

Please upload blocks that can be read.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.