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.