Ragdoll Movement

When my character dies and ragdolls, it creates a very strange movement with my head and parts of my body. How can I reduce or even remove these?

game.ReplicatedStorage.Fire_Ragdoll.OnServerEvent:Connect(function(Player)
	for i,v in pairs(Player.Character:GetDescendants()) do
		if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
			local Socket = Instance.new("BallSocketConstraint")
			local a1 = Instance.new("Attachment")
			local a2 = Instance.new("Attachment")
			a1.Parent = v.Part0
			a2.Parent = v.Part1
			Socket.Parent = v.Parent
			Socket.Attachment0 = a1
			Socket.Attachment1 = a2
			a1.CFrame = v.C0
			a2.CFrame = v.C1
			Socket.LimitsEnabled = true
			Socket.TwistLimitsEnabled = true
			v:Destroy()
		end
	end
	Player.Character.HumanoidRootPart.CanCollide = false
	Player.Character.Humanoid.RequiresNeck = false
	Player.Character.Humanoid.Sit = true
	wait(5)
	Player:LoadCharacter()
end)
2 Likes

Enabling head collision might help, because the head is clipping through the floor it cant rest maybe?

1 Like