I'll help you create a Unity script for turning the player into a ragdoll when hit. Let me first check the project structure to understand what we're working with.
It looks like this is a new project. I'll create a Unity C# script that turns the player into a ragdoll when hit by an object.