local n={}for U,G in pairs(script:GetChildren())do n[G.Name]=G end local U=require(script.Parent:WaitForChild("\103\101\116\076\097\115\116\087\111\114\100\070\114\111\109\080\097\115\099\097\108\067\097\115\101"))function getConstraintTemplate(G)G=U(G)return n[G]or n.Default end function createConstraint(n)local U=n.Joint.Name local G=(getConstraintTemplate(U)):Clone()G.Attachment0=n.Attachment0 G.Attachment1=n.Attachment1 G.Name=U.."\082\097\103\100\111\108\108\067\111\110\115\116\114\097\105\110\116"local y=Instance.new("\079\098\106\101\099\116\086\097\108\117\101",G)y.Name="\082\105\103\105\100\074\111\105\110\116"y.Value=n.Joint return G end return function(n)local U=Instance.new("\070\111\108\100\101\114")U.Name="\082\097\103\100\111\108\108\067\111\110\115\116\114\097\105\110\116\115"for n,G in pairs(n)do if G.Joint.Name~="\082\111\111\116"then(createConstraint(G)).Parent=U end end return U end
--// Hash: 3c31d814e610c566c5bb39cdf2a4c1a58462fc9807524adfec0f0d743e6a3543423cabf7f8115130be5cd265da00a8a0
-- Decompiled with the Synapse X Luau decompiler.

local v1 = {}
for v2, v3 in pairs(script:GetChildren()) do
	v1[v3.Name] = v3
end
local u1 = require(script.Parent:WaitForChild("getLastWordFromPascalCase"))
function getConstraintTemplate(p1)
	p1 = u1(p1)
	return v1[p1] or v1.Default
end
function createConstraint(p2)
	local l__Name__4 = p2.Joint.Name
	local v5 = getConstraintTemplate(l__Name__4):Clone()
	v5.Attachment0 = p2.Attachment0
	v5.Attachment1 = p2.Attachment1
	v5.Name = l__Name__4 .. "RagdollConstraint"
	local v6 = Instance.new("ObjectValue", v5)
	v6.Name = "RigidJoint"
	v6.Value = p2.Joint
	return v5
end
return function(p3)
	local v7 = Instance.new("Folder")
	v7.Name = "RagdollConstraints"
	for v8, v9 in pairs(p3) do
		if v9.Joint.Name ~= "Root" then
			createConstraint(v9).Parent = v7
		end
	end
	return v7
end
