I made a script to change the text of an ImageLabel to the travelling speed of a part. I am doing this by getting the part’s velocity. It works fine, it’s just that there are WAY too many numbers, I only want the first 2 or so digits. Is there anything I can do to shorten the amount of digits in the box?
If you want an actual rounded value, I recommend multiplying it by the value whose square root is the amount of digits you want to display and then using math.round on it.
local oldSpeed = Speed
local roundedSpeed = math.round(oldSpeed * 100) / 100 -- should round to the hundredth