THis must be easy since other people do it, please answer this thx guys :)
The following can make a number value that includes a decimal into an integer
1 | math.floor(number) -- Rounds a number down |
OR
1 | math.ceil(number) -- Rounds a number up |
Whole numbers are technically only positive, so you can also use
1 | math.abs(number) -- Takes the absolute value |
math.floor(health)