Is there any way to give a small "push" when ragdolling, so players always fall flat instead of just their head?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    The ragdoll system works, however one issue: Usually only the head ragdolls back, but the whole body remains upright. How can I make it so the entire body ragdolls flat on the ground every time?

Screenshot 2025-01-09 163039

Code:
local players = game:GetService(“Players”)
local storage = {}

local function getJoints(char)
local tab = {};
for i,v in pairs(char:GetDescendants()) do
if (v:IsA(“Motor6D”)) then table.insert(tab,v) end
end
return tab
end

local function Ragdoll(char)
local hum = char:WaitForChild(“Humanoid”)
hum:SetStateEnabled(Enum.HumanoidStateType.Physics, true)
for i,v in pairs(storage[char]) do
v.Enabled = false
local A0 = Instance.new(“Attachment”)
local A1 = Instance.new(“Attachment”)
A0.CFrame = v.C0
A0.Name = “A0”
A0.Parent = v.Part0
A1.CFrame = v.C1
A1.Name = “A1”
A1.Parent = v.Part1
local socket = Instance.new(“BallSocketConstraint”)
socket.Attachment0 = A0
socket.Attachment1 = A1
socket.Parent = v.Parent
end
storage[char] = nil
end

players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(character)
storage[character] = getJoints(character)
local hum = character:WaitForChild(“Humanoid”)
hum.BreakJointsOnDeath = false
hum.Died:Connect(function()
Ragdoll(character)
end)
end)
end)

2 Likes

the way i do it is an extremely short animation where the torso rotates quite far forward or backwards to make ragdolls “stumble” and fall over better

2 Likes

Can you please explain that a little better?

Like, do I just go into Studio, rotate the character like 359 degrees, and then save that as an animation and play that when the player dies?

Or is there more to it

1 Like

i made like 5 or so animations where legs, arms, torsos, etc. were rotated at funny angles (like the opposite of what you see in your image) so it makes more movement in ragdolls (the anims are 3 keyframes at most and extremely short) and those animations are randomly chosen on ragdolling

Wouldn’t the animation playing be a visual oddity, however? Or are the animations like so fast that it’s hardly noticeable.

I will give that a try, however.

they’re so fast it’s hardly noticable, and the character being ragdolled kind of dulls them down. sort of reminds me of the euphoria ragdolls in the way they flop about

1 Like

Interesting. I’ll see what results I get.

Oh another thing I forgot to ask:
Should I play the animation AFTER i call the Ragdoll function (in my code) or before? Or does that not matter?

1 Like

it should play right after you call it should work

Thanks man, I fixed it. (char)

can i see a video if it in action?

1 Like

Sure, if my Game Bar will work

1 Like


Finally, it’s small enough.
Also yeah as the name of the game would imply this is a custom Item Asylum idea testing game lol

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.