Smooth number increase

now all thats left is to remove all the numbers after the comma. Like it says 5.213432345345 when it increases

use a lerp function

function lerp(a,b,t)
    return a + (b-a) * t
end

and then for them long decimals, you could use a modified math.round

Could you show me the whole script?