I tested your script and everything works ok. The only logical possibility is that somewhere, your the Health variable is constantly being set to 10.
Check your character and the health widget, to be sure, health is not being changed.
I tested your script and everything works ok. The only logical possibility is that somewhere, your the Health variable is constantly being set to 10.
Check your character and the health widget, to be sure, health is not being changed.