client,service=nil,nil return function(z,y)if y then setfenv(1,y)end local C local v local x=client.UI.Make("\087\105\110\100\111\119",{Name=z.Name or"\080\114\111\109\112\116",Title=z.Title or"\080\114\111\109\112\116",Size=z.Size or{225;150};SizeLocked=true,OnClose=function()if not v then v=z.DefaultAnswer or""end end})local W=x:Add("\084\101\120\116\076\097\098\101\108",{Text=z.Question,Font="\083\111\117\114\099\101\083\097\110\115";TextScaled=true;BackgroundTransparency=1;TextWrapped=true,Size=UDim2.new(1,-10,1,-35)})local c=x:Add("\084\101\120\116\066\111\120",{Text="";TextSize=18;PlaceholderText=z.PlaceholderText or"",ClearTextOnFocus=z.ClearTextOnFocus or false,Size=UDim2.new(1,-40,0,25);Position=UDim2.new(0,5,1,-30)})c.FocusLost:Connect(function(z)if z then v=c.Text x:Close()end end)local V=x:Add("\084\101\120\116\066\117\116\116\111\110",{Text="\062",Font="\065\114\105\097\108",TextSize=22,Size=UDim2.new(0,25,0,25),Position=UDim2.new(1,-30,1,-30);OnClick=function()v=c.Text x:Close()end})C=x.gTable x:Ready()repeat task.wait()until v return v end
client, service = nil, nil

return function(data, env)
	if env then
		setfenv(1, env)
	end
	
	local gTable
	local answer

	local window = client.UI.Make("Window", {
		Name  = data.Name or "Prompt";
		Title = data.Title or "Prompt";
		Size  = data.Size or {225, 150};
		SizeLocked = true;
		OnClose = function()
			if not answer then
				answer = data.DefaultAnswer or ""
			end
		end
	})

	local label = window:Add("TextLabel", {
		Text = data.Question;
		Font = "SourceSans";
		TextScaled = true;
		BackgroundTransparency = 1;
		TextWrapped = true;
		Size = UDim2.new(1, -10, 1, -35);
	})

	local input = window:Add("TextBox", {
		Text = "";
		TextSize = 18;
		PlaceholderText = data.PlaceholderText or "";
		ClearTextOnFocus = data.ClearTextOnFocus or false;
		Size = UDim2.new(1, -40, 0, 25);
		Position = UDim2.new(0, 5, 1, -30);
	})
	input.FocusLost:Connect(function(entered)
		if entered then
			answer = input.Text
			window:Close()
		end
	end)

	local submit = window:Add("TextButton", {
		Text = ">";
		Font = "Arial";
		TextSize = 22;
		Size = UDim2.new(0, 25, 0, 25);
		Position = UDim2.new(1, -30, 1, -30);
		OnClick = function()
			answer = input.Text
			window:Close()
		end;
	})

	gTable = window.gTable
	window:Ready()
	repeat task.wait() until answer 
	return answer
end
