I have this new problem occurring where this ragdoll script isn’t working anymore for some reason. This is a server script inside StarterCharacterScripts which I use mostly for R6 games. It used to work before, but now it doesn’t do anything and also doesn’t output any errors either.
Here is the code for it:
local char = script.Parent
local hum = char:WaitForChild("Humanoid")
hum.BreakJointsOnDeath = false
hum.Died:Connect(function()
for i, j in pairs(char:GetDescendants()) do
if j:IsA("Motor6D") then
local socket = Instance.new("BallSocketConstraint")
local a0 = Instance.new("Attachment")
local a1 = Instance.new("Attachment")
a0.Parent = j.Part0
a1.Parent = j.Part1
socket.Parent = j.Parent
socket.Attachment0 = a0
socket.Attachment1 = a1
a0.CFrame = j.C0
a1.CFrame = j.C1
socket.LimitsEnabled = true
socket.TwistLimitsEnabled = true
j:Destroy()
hum.AutoRotate = false
end
end
end)
I’m assuming this might be due to some new update by Roblox itself. Really appreciated if someone would be able help fix this issue.
just tested it and it works for me too, he needs to check his place, he probably has another script controlling it, also i thought you were asking the question lol