Just trying to work out how to make a barrier that absorbs all damage once depleted it destroys the particle and starts to take away health. I don’t want it regenerative more like a spell I can cast it. Any help would be great

make a float variable get it and minus whatever damage per hit clamp it between min and max values then set it. when <= 0 destroy particle.
Then make another float for health and get it minus whatever per hit. clamp it again and set it then when <= 0 kill char

I would use a on hit event if your using collision to tell wether you’ve hit it or not and just remember a knife is sharp and cold and a bullet is blunt and warm