-- Decompiled with the Synapse X Luau decompiler.


tool = script.Parent;
while not tool:FindFirstChild("WeldProfile") do
	wait();
end;
profile = tool.WeldProfile;
function reweld()
	local v1, v2, v3 = pairs(profile:GetChildren());
	while true do
		local v4, v5 = v1(v2, v3);
		if v4 then

		else
			break;
		end;
		v3 = v4;
		local l__Value__6 = v5.Value;
		l__Value__6:BreakJoints();
		local v7 = Instance.new("ManualWeld");
		v7.Name = "HandleWeld";
		v7.Part0 = l__Value__6;
		v7.Part1 = profile.Value;
		v7.C0 = v5.C0.Value;
		v7.C1 = v5.C1.Value;
		v7.Parent = game.JointsService;	
	end;
end;
tool.AncestryChanged:connect(reweld);
reweld();
