Toggling Ragdoll State
Once a ragdoll is built, you can toggle its active state.
When ragdolled, Motor6D joints are disabled and constraints take over.
local ragapi = require(game.ReplicatedStorage:WaitForChild("RagdollAPI"))
-- Explicitly set state
ragapi.setRagdoll(character, true)
-- Quick methods
ragapi.ragdoll(character)
ragapi.unRagdoll(character)
-- Toggle
ragapi.toggleRagdoll(character)
Network Syncing
RagdollV9 automatically handles Network Ownership, automatically syncing all clients by default.
However, every ragdoll function comes with a nosync argument for if you don't want it to sync.
-- Ragdoll locally only (will not replicate to server/other clients)
ragapi.ragdoll(character, true)
Events & Checking