local n={}local I={}local w={ID=0;Type="\084\101\120\116\066\117\116\116\111\110",Properties={TextSize=14;Font=Enum.Font.SourceSans;Name="\066\117\116\116\111\110\084\101\109\112\108\097\116\101",TextColor3=Color3.new(0,0,0);Size=UDim2.new(0,200,0,50),Text="",BorderSizePixel=0,BackgroundColor3=Color3.new(.20392156862745,.21176470588235,.21960784313725)},Children={{ID=1,Type="\085\073\067\111\114\110\101\114";Properties={};Children={}},{ID=2,Type="\073\109\097\103\101\076\097\098\101\108";Properties={BackgroundTransparency=1;ScaleType=Enum.ScaleType.Fit,Name="\073\099\111\110";Size=UDim2.new(1,0,1,0);BorderColor3=Color3.new(0,0,0);Image="\114\098\120\116\104\117\109\098\058\047\047\116\121\112\101\061\065\115\115\101\116\038\105\100\061\052\053\054\050\050\053\051\049\050\038\119\061\049\053\048\038\104\061\049\053\048",BorderSizePixel=0,BackgroundColor3=Color3.new(1,1,1)},Children={}};{ID=3,Type="\070\114\097\109\101";Properties={AnchorPoint=Vector2.new(0,1),BackgroundColor3=Color3.new(0,1,.49803921568627);Name="\087\101\097\114\105\110\103";Position=UDim2.new(0,8,1,-8);SizeConstraint=Enum.SizeConstraint.RelativeYY;ZIndex=2;Visible=false,Size=UDim2.new(.10000000149012,0,.10000000149012,0)};Children={{ID=4;Type="\085\073\067\111\114\110\101\114";Properties={CornerRadius=UDim.new(.5)},Children={}}}},{ID=5;Type="\084\101\120\116\076\097\098\101\108";Properties={Visible=false,RichText=true;TextWrapped=true;TextColor3=Color3.new(1,1,1);TextXAlignment=Enum.TextXAlignment.Left;Text="\089\111\117\114 \072\101\097\100\044 \097 \077\097\114\115\104\109\097\108\108\111\119 \070\108\111\097\116\105\110\103 \105\110 \072\111\116 \067\104\111\099\111\108\097\116\101";BackgroundTransparency=1,TextStrokeTransparency=0;Size=UDim2.new(1,0,0,24);Font=Enum.Font.SourceSansSemibold;Name="\073\116\101\109\076\097\098\101\108";TextTruncate=Enum.TextTruncate.AtEnd,TextYAlignment=Enum.TextYAlignment.Top;ZIndex=3,TextSize=20;BackgroundColor3=Color3.new(1,1,1)},Children={{ID=6;Type="\085\073\080\097\100\100\105\110\103";Properties={PaddingLeft=UDim.new(0,4);PaddingTop=UDim.new(0,4)};Children={}}}};{ID=7;Type="\084\101\120\116\066\117\116\116\111\110",Properties={Visible=false;TextWrapped=true;AnchorPoint=Vector2.new(1,1),TextTruncate=Enum.TextTruncate.AtEnd;SizeConstraint=Enum.SizeConstraint.RelativeYY,ZIndex=4;BorderSizePixel=0;Size=UDim2.new(.20000000298023,0,.20000000298023,0),TextColor3=Color3.new(1,1,1);BorderColor3=Color3.new(0,0,0),Text="\046\046\046";Font=Enum.Font.GothamBlack;Name="\077\111\114\101";Position=UDim2.new(.98000001907349,0,.98000001907349,0),TextSize=14;TextScaled=true;BackgroundColor3=Color3.new(1,.66666666666667,0)},Children={{ID=8,Type="\085\073\067\111\114\110\101\114";Properties={};Children={}}}}}}local function E(w,J)local Q=Instance.new(w.Type)if w.ID then local E=I[w.ID]if E then E[1][E[2]]=Q I[w.ID]=nil else n[w.ID]=Q end end for w,E in pairs(w.Properties)do if type(E)=="\115\116\114\105\110\103"then local J=tonumber(E:match("\094\095\082\058\040\037\119\043\041\095\036"))if J then if n[J]then E=n[J]else I[J]={Q,w}E=nil end end end Q[w]=E end for n,I in pairs(w.Children)do E(I,Q)end Q.Parent=J return Q end return function()return E(w,nil)end
local partsWithId = {}
local awaitRef = {}

local root = {
	ID = 0;
	Type = "TextButton";
	Properties = {
		TextSize = 14;
		Font = Enum.Font.SourceSans;
		Name = "ButtonTemplate";
		TextColor3 = Color3.new(0,0,0);
		Size = UDim2.new(0,200,0,50);
		Text = "";
		BorderSizePixel = 0;
		BackgroundColor3 = Color3.new(52/255,18/85,56/255);
	};
	Children = {
		{
			ID = 1;
			Type = "UICorner";
			Properties = {};
			Children = {};
		};
		{
			ID = 2;
			Type = "ImageLabel";
			Properties = {
				BackgroundTransparency = 1;
				ScaleType = Enum.ScaleType.Fit;
				Name = "Icon";
				Size = UDim2.new(1,0,1,0);
				BorderColor3 = Color3.new(0,0,0);
				Image = "rbxthumb://type=Asset&id=456225312&w=150&h=150";
				BorderSizePixel = 0;
				BackgroundColor3 = Color3.new(1,1,1);
			};
			Children = {};
		};
		{
			ID = 3;
			Type = "Frame";
			Properties = {
				AnchorPoint = Vector2.new(0,1);
				BackgroundColor3 = Color3.new(0,1,127/255);
				Name = "Wearing";
				Position = UDim2.new(0,8,1,-8);
				SizeConstraint = Enum.SizeConstraint.RelativeYY;
				ZIndex = 2;
				Visible = false;
				Size = UDim2.new(0.10000000149012,0,0.10000000149012,0);
			};
			Children = {
				{
					ID = 4;
					Type = "UICorner";
					Properties = {
						CornerRadius = UDim.new(0.5);
					};
					Children = {};
				};
			};
		};
		{
			ID = 5;
			Type = "TextLabel";
			Properties = {
				Visible = false;
				RichText = true;
				TextWrapped = true;
				TextColor3 = Color3.new(1,1,1);
				TextXAlignment = Enum.TextXAlignment.Left;
				Text = "Your Head, a Marshmallow Floating in Hot Chocolate";
				BackgroundTransparency = 1;
				TextStrokeTransparency = 0;
				Size = UDim2.new(1,0,0,24);
				Font = Enum.Font.SourceSansSemibold;
				Name = "ItemLabel";
				TextTruncate = Enum.TextTruncate.AtEnd;
				TextYAlignment = Enum.TextYAlignment.Top;
				ZIndex = 3;
				TextSize = 20;
				BackgroundColor3 = Color3.new(1,1,1);
			};
			Children = {
				{
					ID = 6;
					Type = "UIPadding";
					Properties = {
						PaddingLeft = UDim.new(0,4);
						PaddingTop = UDim.new(0,4);
					};
					Children = {};
				};
			};
		};
		{
			ID = 7;
			Type = "TextButton";
			Properties = {
				Visible = false;
				TextWrapped = true;
				AnchorPoint = Vector2.new(1,1);
				TextTruncate = Enum.TextTruncate.AtEnd;
				SizeConstraint = Enum.SizeConstraint.RelativeYY;
				ZIndex = 4;
				BorderSizePixel = 0;
				Size = UDim2.new(0.20000000298023,0,0.20000000298023,0);
				TextColor3 = Color3.new(1,1,1);
				BorderColor3 = Color3.new(0,0,0);
				Text = "...";
				Font = Enum.Font.GothamBlack;
				Name = "More";
				Position = UDim2.new(0.98000001907349,0,0.98000001907349,0);
				TextSize = 14;
				TextScaled = true;
				BackgroundColor3 = Color3.new(1,2/3,0);
			};
			Children = {
				{
					ID = 8;
					Type = "UICorner";
					Properties = {};
					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