There are lua files in that topic. As i remember it doesn’t handle death state but it should give you a vague idea of what’s going on.
I think before you had to add a few instances, make a few tweaks in properties and you didn’t even had to script anything. Sadly now it doesn’t work with the default humanoid