clamp(value, min, max): number
value
min
max
number
Clamps a value so it never leaves the given range.
The value to clamp.
The lowest value the result can be.
The highest value the result can be.
The value, limited to the range between min and max.
Last updated 1 month ago
math.clamp(health, 0, 20);