← resources/ module / ragdoll-r15
FREE
R15 ragdoll
One-call ragdoll and recovery for R15 characters. Network-owned by the server, no jitter, clean stand-up.
Ragdoll.luaupreview — first 10 of 32 lines
--!strict-- Ragdoll — one-call R15 ragdoll + clean recovery, network-owned by the server.local Ragdoll = {}local function swapToSockets(char: Model) for _, motor in char:GetDescendants() do if motor:IsA("Motor6D") then local socket = Instance.new("BallSocketConstraint") local a0, a1 = Instance.new("Attachment"), Instance.new("Attachment") a0.CFrame = motor.C0 a1.CFrame = motor.C1 a0.Parent = motor.Part0 a1.Parent = motor.Part1 socket.Attachment0 = a0 socket.Attachment1 = a1 socket.Parent = motor.Part1 motor.Enabled = false end endendfunction Ragdoll.enable(char: Model) local hum = char:FindFirstChildOfClass("Humanoid") if hum then hum:ChangeState(Enum.HumanoidStateType.Physics) hum.PlatformStand = true end swapToSockets(char)endreturn Ragdoll