Just a test to make a math.clamp() function in scratch, since it doesn't have it built in like Lua, C, or other languages. Randomize the max/min distances and see your changes in real-time
Please feel free to copy the source code!