When one of my AI (which ragdoll on death die), they fall and when making contact with the ground they fling out and the joints cling everywhere. Any fix or suggestions?
1 Like
you should weld them all to eeach other (or motor6d)
1 Like
they are… its a ragdoll script
1 Like
Maybe we could see your ragdoll script?
1 Like
local function ragDoll(character)
for index,joint in pairs(character:GetDescendants()) do
if joint:IsA("Motor6D") then
local socket = Instance.new("BallSocketConstraint")
local a1 = Instance.new("Attachment")
local a2 = Instance.new("Attachment")
a1.Parent = joint.Part0
a2.Parent = joint.Part1
socket.Parent = joint.Parent
socket.Attachment0 = a1
socket.Attachment1 = a2
a1.CFrame = joint.C0
a2.CFrame = joint.C1
socket.LimitsEnabled = true
socket.TwistLimitsEnabled = true
joint:Destroy()
end
end
end
2 Likes