I am in a bit of a pickle (ragoll not working)

This happens when I try to ragdoll, but I want it to obviously lay flat down:

character.Humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
	
	for _, descendant in character:GetDescendants() do
		
		if not descendant:IsA("Motor6D") then continue end
		
		local attachment0 = Instance.new("Attachment")
		local attachment1 = Instance.new("Attachment")
		
		attachment0.CFrame = descendant.C0
		attachment1.CFrame = descendant.C1
		attachment0.Parent = descendant.Part0
		attachment1.Parent = descendant.Part1
		
		local ballsocketConstraint = Instance.new("BallSocketConstraint")
		ballsocketConstraint.Attachment0 = attachment0
		ballsocketConstraint.Attachment1 = attachment1
		
		ballsocketConstraint.LimitsEnabled = true
		
		ballsocketConstraint.Parent = descendant.Parent
		
		descendant:Destroy()
	end
	
	character.Head.CanCollide = false
	character.HumanoidRootPart.CanCollide = false
1 Like

https://devforum.roblox.com/search?q=Ragdoll

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀

you should set humanoid.PlatformStand to true

Seems like the limits on your constraints need to be adjusted.

1 Like

I tried that.

well try again​​​​​​​​​​​​​​​​​​​​​​

There’s 2 approaches one that works, but only occasionally and isn’t reliant, or one that works but can fling you occasionally that I’m aware of.

#1 Change the state to Ragdoll on the client.

Changing the state to ragdoll gives it that desired effect where the parts don’t go through eachother and function like a regular ragdoll. Now obviously like I said it doesn’t work 100% of the time, there may be ways around this, but I’m unaware of any.

#2 Invisible Parts

This ones a normal approach a lot of developers weld parts that are cancollide true to each of the players limbs and make them smaller than the limb’s size to make the parts not go through eachother and clip, resulting in the desired effect you’re trying to achieve.

I hope this helps!

So sir, doing it a 2nd time did, in fact, not work.

Sir, I am very new to this whole physics ting, what would that approximately look like?