#is there any better way? :(

1 messages · Page 1 of 1 (latest)

worn frigate
#

I think there r better ways to do this

#

But idk any of them

#

Ty i guess lol

#

Np

chrome olive
#
TakeDamage(math.ceil(health / maxhealth * 10))

this is close to what you want but not the same if it has to be the same then you have to do

local damages = {1, 1, 2, 3, 4, 5, 5, 6, 10, 11}
TakeDamage(damages[math.ceil(health / maxhealth * 10)])
chrome olive
#

You can change the table to have any numbers you like inside

#

Or you can do

10 - 100/100*10