The character is not loaded after reset

Hello. I have a problem. Avatar does not load after reset. CharacterAutoLoads is True, and the only script that does anything with a character after a player’s death is this.

game.Players.PlayerAdded:Connect(function(Player)

Player.CharacterAdded:Connect(function(Char)
	Char:WaitForChild("Humanoid").BreakJointsOnDeath = false

	Char.Humanoid.Died:Connect(function()
		if	Char:FindFirstChild("Head") then
			Char.Head.CanCollide = false
		end
		
		for _, v in pairs(Char:GetDescendants()) do
			if v:IsA("Motor6D") then
				local Att0, Att1 = Instance.new("Attachment"), Instance.new("Attachment")
				Att0.CFrame = v.C0
				Att1.CFrame = v.C1
				Att0.Parent = v.Part0
				Att1.Parent = v.Part1
				local BSC = Instance.new("BallSocketConstraint")
				BSC.Attachment0 = Att0
				BSC.Attachment1 = Att1
				BSC.Parent = v.Part0
				BSC.LimitsEnabled = true
				BSC.TwistLimitsEnabled = true
				BSC.UpperAngle = 50
				v:Destroy()
			end
		end
		Char.HumanoidRootPart.CanCollide = false
	end)
end)

end)

More precisely, it is a ragdoll. When the character resets, it gives something like BreakJointsOnDeath = false
but he won’t get into the ragdoll. only when something does not hit the player or does not have a view of the first person. Otherwise, always something that kills the player, respawn works.
what do you think about it?

I found out it does BreakJointsOnDeath = false, but I don’t know why.
nobody knows? please