--// All global vars will be wiped/replaced except script
--// All guis are autonamed client.Variables.CodeName..gui.Name


return function(data)
	local gui = client.UI.Prepare(script.Parent.Parent)
	local ques = gui.Frame.Main.Question
	local yes = gui.Frame.Main.Yes
	local no = gui.Frame.Main.No
	
	local question = data.Question
	local gTable = data.gTable
	local ans
	
	ques.Text = question
	
	yes.MouseButton1Click:connect(function()
		ans = "Yes"
		gui:Destroy()
	end)
	
	no.MouseButton1Click:connect(function()
		ans = "No"
		gui:Destroy()
	end)
	
	gTable:Ready()
	repeat wait(0.1) until ans
	return ans
end
