@partytonic im not sure why you have a while loop for the humanoid health. I would just use the Died event. Secondly I would not have a script per NPC. Instead have a module with the code that will be shared.
Looks like your connection to Scripting Helpers was lost, please wait while we try to reconnect.