-- Decompiled with the Synapse X Luau decompiler.


client = nil;
service = nil;
return function(p1)
	local v1 = {
		Name = "Vote", 
		Title = "Vote", 
		Size = { 300, 200 }, 
		AllowMultiple = false
	};
	local u1 = nil;
	function v1.OnClose()
		if not u1 then
			u1 = false;
		end;
	end;
	local v2 = client.UI.Make("Window", v1);
	local v3 = v2:Add("TextLabel", {
		Text = p1.Question, 
		TextScaled = true, 
		TextWrapped = true, 
		Size = UDim2.new(1, -10, 0, 50), 
		BackgroundTransparency = 1
	});
	local v4 = v2:Add("ScrollingFrame", {
		Size = UDim2.new(1, -10, 1, -60), 
		Position = UDim2.new(0, 5, 0, 55)
	});
	for v5, v6 in next, p1.Answers do
		local v7 = {
			Text = v5 .. ". " .. v6, 
			Size = UDim2.new(1, -10, 0, 25), 
			Position = UDim2.new(0, 5, 0, 25 * (v5 - 1)), 
			TextXAlignment = "Left"
		};
		local v8 = {};
		function v8.MouseButton1Click()
			v2:Close();
			u1 = v6;
		end;
		v7.Events = v8;
		v4:Add("TextButton", v7);
	end;
	v4:ResizeCanvas();
	local l__gTable__9 = v2.gTable;
	v2:Ready();
	while true do
		wait();
		if u1 then
			break;
		end;
		if not l__gTable__9.Active then
			break;
		end;	
	end;
	return nil;
end;
