So basically i made a ragdoll script and the problem is that the character is bouncing on the floor like this
And i want it to stand still when ragdolling(I’m gonna set the walkspeed and stuff like that afterwards i just wanna fix this issue first)
My ragdoll script:
hum.BreakJointsOnDeath = false
local joints = Char:GetDescendants()
for _,joint in pairs(joints) do
if joint:isA("Motor6D") then
local socket = Instance.new("BallSocketConstraint", joint.Parent)
local a0 = Instance.new("Attachment")
a0.Name = "Attachment1"
local a1 = Instance.new("Attachment")
socket.Attachment0 = a0
socket.Attachment1 = a1
a0.Parent = joint.Part0
a1.Parent = joint.Part1
a0.CFrame = joint.C0
a1.CFrame = joint.C1
socket.LimitsEnabled = true
socket.TwistLimitsEnabled = true
joint.Enabled = false
end
end
There is another post about this but they didn’t explain the solution well enough.
Reply’s is heavily appreaciated