client=nil service=nil return function(n)local u={Name="\086\111\116\101";Title="\086\111\116\101",Size={300,200},AllowMultiple=false}local t=nil function u.OnClose()if not t then t=false end end local C=client.UI.Make("\087\105\110\100\111\119",u)local U=C:Add("\084\101\120\116\076\097\098\101\108",{Text=n.Question;TextScaled=true,TextWrapped=true;Size=UDim2.new(1,-10,0,50);BackgroundTransparency=1})local K=C:Add("\083\099\114\111\108\108\105\110\103\070\114\097\109\101",{Size=UDim2.new(1,-10,1,-60);Position=UDim2.new(0,5,0,55)})for n,u in next,n.Answers do local U={Text=n..("\046 "..u);Size=UDim2.new(1,-10,0,25);Position=UDim2.new(0,5,0,25*(n-1)),TextXAlignment="\076\101\102\116"}local Q={}function Q.MouseButton1Click()C:Close()t=u end U.Events=Q K:Add("\084\101\120\116\066\117\116\116\111\110",U)end K:ResizeCanvas()local Q=C.gTable C:Ready()while true do wait()if t then break end if not Q.Active then break end end return nil end
-- 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
