Help On Ragdoll Script

Hello there, I was using an ACS engine that was modified, and when I died the ragdoll didn’t work. I don’t even have a clue how to fix it but I checked output, found this
Screenshot 2021-04-12 123240
So I went to that line of the code and it said
OnDeath(script.Parent)
And I don’t understand what that means. Can somebody help me out?
Edit: I don’t know a lot of scripting basics, but I want to try to fix this since I want it to be more perhaps realistic and have it like a different system.

is the scripts parent a ragdoll animation?

if you turn the scripts parent into a ragdoll animation then on death it will do that anim

No, the ragdoll is this different but ill show an example of what it should look like.


basically like this


here is the one that is bugged

I fixed it and i realized i could just use the original system