i know this is a stupid question, but how can i remove/get a percentage of a number? like remove 20% of the players health, or increase 50% health, etc.
1 Like
By multiplying the percentage as a decimal. For example:
Health += Health * 0.25 -- Increase by 25%
-- Turn to negative to decrease by a %
Health += Health * -0.25 -- Decrease by 25%
6 Likes
let me try this out first.
30 ch ars
1 Like
it worked, thank you!
30 ch ars
1 Like