How Do I make Text Move When It The Value Grows

So, lets say I have a text counter for money or something, but I also have a image label for like coins or something beside it but when the counter gets to a certain amount it goes onto the label or off screen how do I make it so it doesn’t do this?

1 Like

You can use math.clamp. It allows you to set the minimum and the maximum amount of a value and the value can’t go under the minimum or over the maximum. Example - Let’s say we have a part and we don’t want it to go outside a certain area. You can clamp it’s position axes according to the area and it won’t go outside of that area.

Here’s the documentation I found about the math.clamp : math | Roblox Creator Documentation

I’ll definitely look at this. Thanks for the quick response.

1 Like

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