how do I do a splitting system? example if the NPC gets a shot in the leg it comes off the body
You are looking for dismembering