--// All global vars will be wiped/replaced except script
--// All guis are autonamed


return function(data)
	local playergui = service.PlayerGui
	local localplayer = service.Players.LocalPlayer
	local gui = script.Parent.Parent
	
	local frame = gui.Frame
	local desc = gui.Frame.Desc
	local name = gui.Frame.Nameb
	local list = gui.Frame.List
	local make = gui.Frame.Make
	local close = gui.Frame.Cancel
	
	make.MouseButton1Click:connect(function()
		gui:Destroy()
		client.Remote.Send("TrelloOperation",{
			Action = "MakeCard",
			List = list.Text,
			Name = name.Text,
			Desc = desc.Text
		})
	end)
	
	close.MouseButton1Click:connect(function()
		gui:Destroy()
	end)
	
	gTable:Ready()
end
