My ragdoll is having a bouncy behavior, Beacuse i made it so the player doesn't die

So basically i made a ragdoll script and the issue is that the ragdoll is bouncing and not standing still. I want it to appear like this:

Right now it appears as this:

Now my script looks like this:

 if game.Players:GetPlayerFromCharacter(Char) ~= nil then
			print("Player = True")
			local Player = game.Players:GetPlayerFromCharacter(Char)
			local hum = Char:WaitForChild("Humanoid")
			hum.BreakJointsOnDeath = false
			hum.WalkSpeed = 0
			hum.JumpPower = 0
			hum.UseJumpPower = true
			--local AnimTrack = hum:LoadAnimation(game.ReplicatedStorage.DeathAnimation)
			local joints = Char:GetDescendants()
		for _,joint in pairs(joints) do
				if joint:isA("Motor6D") then
					local socket ="BallSocketConstraint", joint.Parent)
					local a0 ="Attachment")
					a0.Name = "Attachment1"
					local a1 ="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

This is inside a binable event incase your wondering.
Reply if you know the answer or if you think you know the answer