local W={}local q={}local e={ID=0;Type="\070\114\097\109\101";Properties={BackgroundColor3=Color3.new(1,1,1),BackgroundTransparency=1;Name="\083\117\099\099\101\115\115\070\114\097\109\101";Size=UDim2.new(1,0,0,30)},Children={{ID=1;Type="\084\101\120\116\076\097\098\101\108",Properties={Size=UDim2.new(1,0,1,0),Font=Enum.Font.SourceSansSemibold;BackgroundTransparency=1;TextColor3=Color3.new(1,1,1),TextXAlignment=Enum.TextXAlignment.Left;Text="\049\050\051\049\050\051\049";TextSize=20,BackgroundColor3=Color3.new(1,1,1)},Children={{ID=2;Type="\085\073\080\097\100\100\105\110\103";Properties={PaddingLeft=UDim.new(0,10)},Children={}}}};{ID=3;Type="\084\101\120\116\076\097\098\101\108";Properties={TextColor3=Color3.new(0,1,0),Text="\083\117\099\099\101\115\115",Font=Enum.Font.SourceSansSemibold,BackgroundTransparency=1;TextXAlignment=Enum.TextXAlignment.Right,Size=UDim2.new(1,0,1,0);Name="\083\117\099\099\101\115\115\076\097\098\101\108",TextSize=20,BackgroundColor3=Color3.new(1,1,1)};Children={{ID=4;Type="\085\073\080\097\100\100\105\110\103",Properties={PaddingRight=UDim.new(0,10)},Children={}}}}}}local function t(e,V)local d=Instance.new(e.Type)if e.ID then local t=q[e.ID]if t then t[1][t[2]]=d q[e.ID]=nil else W[e.ID]=d end end for e,t in pairs(e.Properties)do if type(t)=="\115\116\114\105\110\103"then local V=tonumber(t:match("\094\095\082\058\040\037\119\043\041\095\036"))if V then if W[V]then t=W[V]else q[V]={d;e}t=nil end end end d[e]=t end for W,q in pairs(e.Children)do t(q,d)end d.Parent=V return d end return function()return t(e,nil)end
local partsWithId = {}
local awaitRef = {}

local root = {
	ID = 0;
	Type = "Frame";
	Properties = {
		BackgroundColor3 = Color3.new(1,1,1);
		BackgroundTransparency = 1;
		Name = "SuccessFrame";
		Size = UDim2.new(1,0,0,30);
	};
	Children = {
		{
			ID = 1;
			Type = "TextLabel";
			Properties = {
				Size = UDim2.new(1,0,1,0);
				Font = Enum.Font.SourceSansSemibold;
				BackgroundTransparency = 1;
				TextColor3 = Color3.new(1,1,1);
				TextXAlignment = Enum.TextXAlignment.Left;
				Text = "1231231";
				TextSize = 20;
				BackgroundColor3 = Color3.new(1,1,1);
			};
			Children = {
				{
					ID = 2;
					Type = "UIPadding";
					Properties = {
						PaddingLeft = UDim.new(0,10);
					};
					Children = {};
				};
			};
		};
		{
			ID = 3;
			Type = "TextLabel";
			Properties = {
				TextColor3 = Color3.new(0,1,0);
				Text = "Success";
				Font = Enum.Font.SourceSansSemibold;
				BackgroundTransparency = 1;
				TextXAlignment = Enum.TextXAlignment.Right;
				Size = UDim2.new(1,0,1,0);
				Name = "SuccessLabel";
				TextSize = 20;
				BackgroundColor3 = Color3.new(1,1,1);
			};
			Children = {
				{
					ID = 4;
					Type = "UIPadding";
					Properties = {
						PaddingRight = UDim.new(0,10);
					};
					Children = {};
				};
			};
		};
	};
};

local function Scan(item, parent)
	local obj = Instance.new(item.Type)
	if (item.ID) then
		local awaiting = awaitRef[item.ID]
		if (awaiting) then
			awaiting[1][awaiting[2]] = obj
			awaitRef[item.ID] = nil
		else
			partsWithId[item.ID] = obj
		end
	end
	for p,v in pairs(item.Properties) do
		if (type(v) == "string") then
			local id = tonumber(v:match("^_R:(%w+)_$"))
			if (id) then
				if (partsWithId[id]) then
					v = partsWithId[id]
				else
					awaitRef[id] = {obj, p}
					v = nil
				end
			end
		end
		obj[p] = v
	end
	for _,c in pairs(item.Children) do
		Scan(c, obj)
	end
	obj.Parent = parent
	return obj
end

return function() return Scan(root, nil) end