My ragdoll is having a bouncy behavior

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 ="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

There is another post about this but they didn’t explain the solution well enough.

Reply’s is heavily appreaciated


change the humanoid state type
to Physics

For when we want to ragdoll

Humanoid:ChangeState = Enum.HumanoidStateType.Physics

For when we want to stand

Humanoid:ChangeState = Enum.HumanoidStateType.GettingUp

The first one Physics makes the collisions turn on for the players body
and dosnt let you apply force to it anymore no more movement

The second
Is in its name were just making the humanoid get up thats it!