client,service=nil,nil return function(z,y)if y then setfenv(1,y)end local C local v=client.UI.Make("\087\105\110\100\111\119",{Name="\067\114\101\097\116\101\067\097\114\100",Title="\067\114\101\097\116\101 \067\097\114\100",Icon=client.MatIcons["\065\100\100 \099\105\114\099\108\101"];Size={400;330},AllowMultiple=false;OnClose=function() end})if v then((v:Add("\084\101\120\116\076\097\098\101\108",{Text="\076\105\115\116 \078\097\109\101\058  ";BackgroundTransparency=1;Size=UDim2.new(0,80,0,30);Position=UDim2.new(0,10,0,10),TextXAlignment="\082\105\103\104\116"})):Copy("\084\101\120\116\076\097\098\101\108",{Text="\067\097\114\100 \078\097\109\101\058  ";Position=UDim2.new(0,10,0,50)})):Copy("\084\101\120\116\076\097\098\101\108",{Text="\067\097\114\100 \068\101\115\099\058  ",Position=UDim2.new(0,10,0,90)})local z=v:Add("\084\101\120\116\066\111\120",{Text="";BackgroundTransparency=.5,Position=UDim2.new(0,90,0,10),Size=UDim2.new(1,-100,0,30),BackgroundColor3=v.BackgroundColor3:lerp(Color3.new(1,1,1),.2),TextWrapped=true})local y=z:Copy("\084\101\120\116\066\111\120",{Position=UDim2.new(0,90,0,50)})local x=z:Copy("\084\101\120\116\066\111\120",{Position=UDim2.new(0,90,0,90);Size=UDim2.new(1,-100,1,-100)})local W=false local c=v:Add("\084\101\120\116\066\117\116\116\111\110",{Text="\067\114\101\097\116\101";Size=UDim2.new(0,70,0,30),Position=UDim2.new(0,10,1,-40),OnClick=function()if not W then W=true v:Destroy()client.Remote.Send("\084\114\101\108\108\111\079\112\101\114\097\116\105\111\110",{Action="\077\097\107\101\067\097\114\100";List=z.Text,Name=y.Text,Desc=x.Text})end end})C=v.gTable v:Ready()end end
client, service = nil, nil

return function(data, env)
	if env then
		setfenv(1, env)
	end
	
	local gTable
	local window = client.UI.Make("Window", {
		Name  = "CreateCard";
		Title = "Create Card";
		Icon = client.MatIcons["Add circle"];
		Size  = {400, 330};
		AllowMultiple = false;
		OnClose = function()
			
		end
	})
	
	if window then
		window:Add("TextLabel", {
			Text = "List Name:  ";
			BackgroundTransparency = 1;
			Size = UDim2.new(0, 80, 0, 30);
			Position = UDim2.new(0, 10, 0, 10);
			TextXAlignment = "Right";
		}):Copy("TextLabel", {
			Text = "Card Name:  ";
			Position = UDim2.new(0, 10, 0, 50);
		}):Copy("TextLabel", {
			Text = "Card Desc:  ";
			Position = UDim2.new(0, 10, 0, 90);
		})
		
		local list = window:Add("TextBox", {
			Text = "";
			BackgroundTransparency = 0.5;
			Position = UDim2.new(0, 90, 0, 10);
			Size = UDim2.new(1, -100, 0, 30);
			BackgroundColor3 = window.BackgroundColor3:lerp(Color3.new(1, 1, 1), 0.2);
			TextWrapped = true;
		})
		
		local name = list:Copy("TextBox", {
			Position = UDim2.new(0, 90, 0, 50);
		})
		
		local desc = list:Copy("TextBox", {
			Position = UDim2.new(0, 90, 0, 90);
			Size = UDim2.new(1, -100, 1, -100);
		})
		
		local done = false
		local create = window:Add("TextButton", {
			Text = "Create";
			Size = UDim2.new(0, 70, 0, 30);
			Position = UDim2.new(0, 10, 1, -40);
			OnClick = function()
				if not done then
					done = true
					window:Destroy()
					client.Remote.Send("TrelloOperation", {
						Action = "MakeCard";
						List = list.Text;
						Name = name.Text;
						Desc = desc.Text;
					})
				end
			end
		})
		
		
		gTable = window.gTable
		window:Ready()
	end
end
