So what I'm trying to say is that when you script a part to make it so that (for example) it sets your health value to 50 when you touch it, how do you make it so that if your health is below 50, you can't set it higher. Because what I'm trying to do is to decrease your health after the part goes from green to red after you touch it.
For example, you touch a part then it sets your health to 50(color orange), then you touch another part that would make your health 25(darker orange), how do you make it so that if your health is lower than 50 and when you press the part to make your health to 25, it wont go back to 50 after pressing the part that makes your health 50. Sorry if that looked pretty confusing, I would make it look simpler but I'm rushing while making this because I have to eat for dinner. Lol

1 comment
Instead of setting the health, you should try just lowering it by a said amount. For example in the first part you do, humanoid.Health = humanoid.Health - 50, for the second part, same but with 25 for example. It isn't perfect but it works too,