Changing player scale

Hello, I am working on a game where the player will change his body size I got the script done but I want to give it a limit of how much it becomes bigger for BodyDepthScale, BodyWidthScale, HeadScale:

The Script:

NOTE: Each of BodyDepthScale, BodyWidthScale, HeadScale will have a different limit and not everything has the same limit. And I am still learning more about scripting so this would be helpful if I will have to mess with player scale ever again.

1 Like

Before setting the size use an If statement to check if plrbodyscale < limit then. If it is less than the max limit then it will increase the size, if it isn’t you can return “limit”

3 Likes