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.