Damage script doing full damage when it should only do partial.

This is the script that contains the damage and does the damage to the player when he collides with it.

And this is the script attached to the player, when the player collides with the object they are meant to take ‘damage’ which is set to 10 and then the object is destroyed not allowing it to do the damage again, but what is actually happening is the players health is instantly dropping to 0 before the object is destroyed, which was making it change level. I would really appreciate if anyone could help me fix my problem. Also the GUI.Label is not displaying the players health.

Don’t worry, all I needed to do was update the int ‘damage’ in the objects inspector rather than the script and it works fine. derp.