How would i remove all of the number except the front number?

So lets say the number is “1.200” how would i remove the .200 and just leave the 1?

You can split the number as a string and index the first element returned.

local number = 1.200
local firstNumber = tostring(number):split('.')[1]
1 Like

Thanks, Im small brained rn no sleep ):

Alternatively, you could just math.floor() or math.ceil() the number and it will round to a whole number, based on which function you used.

But that solution also works just as well, if not better if you want that specific number.