How to make player max health?

So I have a health system and some health packs one health pack that adds 10 health and another that adds 25. I have a cube that when touched you take 25 damage. So then you have 75 health. I pick up the 10 health pack then the 25 health pack, my health is now 110 how can I make it so it doesn’t go over 100?

Use “Clamp” node

1 Like

lol i didnt know that existed. up until now, ive been using a bunch of branches. thanks lol.

Be sure to mark Mhousse1247’s answer as correct using the check mark button under the voting for his answer.