You can write your topic however you want, but you need to answer these questions:
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?
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
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
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