How would I make a client sided ragdoll?

Hello, I am using this ragdoll system:

This basically puts a script inside a player or npc’s character model which replaces the joints with ball joints. This makes the ragdoll run on the server, and I am wondering how I would make it run on the client solely. I know that I would have to fire all clients, and make them run this script, but locally each time something is ragdolled. What I don’t know is how to truly go about this, like where I should put the script, and how I should use it with remote events.