return function(o)local Z=client.UI.Prepare(script.Parent.Parent)local h=service.PlayerGui local K=Z.Drag.Frame local H=Z.Drag.Frame.Close local V=Z.Drag.Frame.Main local e=Z.Drag.Frame.Main.Question local I=Z.Drag.Frame.Main.Answers local c=Z.Entry local w=o.Question local g=o.Answers local l e.Text=w H.MouseButton1Click:connect(function()Z:Destroy()l=false end)local b=0 for o,h in pairs(g)do local K=c:clone()K.Parent=I K.Text=h K.Position=UDim2.new(0,0,0,b*20)K.Visible=true K.MouseButton1Click:connect(function()Z:Destroy()l=h end)b=b+1 end gTable:Ready()local M=0 repeat wait(.1)M=M+.1 until M>60 or l~=nil if Z and Z.Parent then Z:Destroy()end return l end


return function(data)
	local gui = client.UI.Prepare(script.Parent.Parent)
	local playergui = service.PlayerGui
	
	local frame = gui.Drag.Frame
	local close = gui.Drag.Frame.Close
	local main = gui.Drag.Frame.Main
	local ques = gui.Drag.Frame.Main.Question
	local ans = gui.Drag.Frame.Main.Answers
	local entry = gui.Entry
	
	local question = data.Question
	local answers = data.Answers
	
	local selected
	
	ques.Text = question
	
	close.MouseButton1Click:connect(function()
		gui:Destroy()
		selected = false
	end)
	
	local num = 0
	for i,v in pairs(answers) do
		local clone = entry:clone()
		clone.Parent = ans
		clone.Text = v
		clone.Position = UDim2.new(0,0,0,num*20)
		clone.Visible = true
		clone.MouseButton1Click:connect(function()
			gui:Destroy()
			selected = v
		end)
		num=num+1 
	end
	
	gTable:Ready()
	
	local temp = 0
	repeat wait(0.1) temp=temp+0.1 until temp>60 or selected~=nil
	
	if gui and gui.Parent then gui:Destroy() end
	
	return selected
end
