Ragdoll Walker flies in air on ragdoll

Hello.
So basically I’ve been trying to make this sort of ragdoll walker like in Totally Accurate Battle Simulator.
I’m trying to make it so it doesn’t need platformstand or anything to walk.
For some reason, whenever I don’t platformstand, it does this;
https://gyazo.com/23688ce54d801b61b125327bd836e986
This is my ragdoll code;

local ragdolledMotor6ds = {}
function Ragdoll(parent)
	for _,v in pairs(parent:GetDescendants()) do
		if v:IsA("Motor6D") and ragdolledMotor6ds[v.Parent.Name] == nil then
			ragdolledMotor6ds[v.Parent.Name] = v.Part1.Name
			v.Part1 = nil
			local socket = Instance.new("BallSocketConstraint",v.Parent)
			socket.Attachment0=v.Parent:FindFirstChild(v.Name.."RigAttachment")
			socket.Attachment1=v.Part0:FindFirstChild(v.Name.."RigAttachment")
			socket.LimitsEnabled = true
			socket.TwistLimitsEnabled = true
			socket.UpperAngle = 90
			socket.TwistLowerAngle = -90
			socket.TwistUpperAngle = 90
		end
	end
end
function StopRagdoll(parent)
	for _,v in pairs(parent:GetDescendants()) do
		if v:IsA("Motor6D") then
			if ragdolledMotor6ds[v.Parent.Name] ~= nil then
				for _,a in pairs(parent:GetDescendants()) do
					if ragdolledMotor6ds[v.Parent.Name] == a.Name then
						v.Part1 = a
						break
					end
				end
				if v.Parent:FindFirstChildOfClass("BallSocketConstraint") then
					v.Parent:FindFirstChildOfClass("BallSocketConstraint"):Destroy()
				end
				ragdolledMotor6ds[v.Parent.Name] = nil
			end
		end
	end
end
wait()
Ragdoll(script.Parent)

I’ve tried adding bodyvelocities and stuff with platformstand but that doesn’t work out, as the same effect happens.
Is there a way around this without having to platformstand?
I’d greatly appreciate any help given for this if possible.

1 Like

are you doing the ragdoll on the server or client?

It’s server. Client would only be used for guis and stuff.
Client doesn’t do anything to the ragdoll if I did try it.

Update;
I’ve been able to use BodyPositions to move the ragdoll a bit, while also having platformstand off.
The body parts (legs, arms) don’t collide with the ground or anything, though.
https://gyazo.com/2f140d34ce6f273d1a86a6638c8392b0
Hope this gives more context.

update;
I fixed the issue and made it work without platformstand.

2 Likes

How exactly did you fix the issue? Please post the steps you took to get your solution, so that others with the same problem can understand how to solve it as well.

1 Like

I put in collision parts for the ragdoll character and made it so the character does not collide with those parts. (physicsservice) and then removed all bodyvelocities.

1 Like