First problem:
Make sure that you don't set health to 0 anywhere. You can also try if the problem ist still there if you define your variable in your main script. If it does, your problem does not related to your second script.


Second problem:
You can use str_for_num.