Ragdoll Tripping

Hey!

Is there a way to prevent humanoid from tripping after they’ve been ragdolled?
https://gyazo.com/6de7d0a879df5ee6dc9de034cde5fed5

Please provide code for us to review, there is no way for us to help you out of you’re just showing a video or explaining it.

Yeah! sorry, here’s the code that’s relevant to the ragdoll

local Humanoid = Character:WaitForChild("Humanoid")
Humanoid.RequiresNeck = false
local Table = {
	["Handle"] = true,
	["HairAttachment"] = true,
	["BodyBackAttachment"] = true,
	["HatAttachment"] = true,
	["WaistCenterAttachment"] = true,
	["Head"] = true,
	["NeckAttachment"] = true,
	["RootRigAttachment"] = true,
	["FaceFrontAttachment"] = true,
}

Storage.ChildAdded:Connect(function(Value)
	if Value.Name == "Ragdoll" then
		for _, v in pairs(Character:GetDescendants()) do
			if not Table[v.Name] and not string.match(v.Name, "Grip") and not string.match(v.Name, "Waist")  and not string.match(v.Name, "Rig") then
				if v:IsA("Motor6D") then
					v.Enabled = false;

					local a0, a1 = Instance.new("Attachment"), Instance.new("Attachment")
					a0.CFrame = v.C0
					a1.CFrame = v.C1
					a0.Parent = v.Part0
					a1.Parent = v.Part1

					local b = Instance.new("BallSocketConstraint")
					b.Attachment0 = a0
					b.Attachment1 = a1
					b.Parent = v.Parent
				end
			end
		end
		Humanoid.HipHeight = 2.02
	end
end)

and

Storage.ChildRemoved:Connect(function(Value)
	if Value.Name == "Ragdoll" then
		for _, v in pairs(Character:GetDescendants()) do
			if not Table[v.Name] and not string.match(v.Name, "Grip") and not string.match(v.Name, "Waist")  and not string.match(v.Name, "Rig")  then
				if v:IsA("BallSocketConstraint") then
					v:Destroy()
				end
				if v:IsA("Attachment") then
					if v.Parent then
						if v.Parent.Name ~= "Handle" then
							v:Destroy()
						end
					else
						v:Destroy()
					end
				end

				if v:IsA("Motor6D") then
					v.Enabled = true;
				end
			end
		end
		--Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
		--Humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
		--Humanoid.HipHeight = 2.02
	end
end)

Yeah, the script type is a serverscript, and it’s under startercharacterscripts

try checking if the humanoid:GetState() if this is in Enum.HumanoidStateType.Ragdoll then instantly change it back to normal state