client=nil service=nil return function(r)local X=client.UI.Make("\087\105\110\100\111\119",{Name="\084\101\114\109\105\110\097\108";Title="\084\101\114\109\105\110\097\108";Size={500,300},AllowMultiple=false;OnClose=function() end})local v=X:Add("\083\099\114\111\108\108\105\110\103\070\114\097\109\101",{Size=UDim2.new(1,-10,1,-40);BackgroundTransparency=1;List={}})local V=X:Add("\084\101\120\116\066\111\120",{Text="",Size=UDim2.new(1,0,0,30);Position=UDim2.new(0,0,1,-30),PlaceholderText="\069\110\116\101\114 \099\111\109\109\097\110\100",TextXAlignment="\076\101\102\116"})local function I(r,X)table.insert(X,r)if#X>500 then table.remove(X,1)end end local J={}X:BindEvent(service.Events.TerminalLive,function(r)local X=r.Type I(r.Data,J)end)V.FocusLost:connect(function(r)service.Debounce("\095\084\069\082\077\073\078\065\076\095\066\079\088\095\070\079\067\085\083\076\079\083\084",function()if r and(V.Text~=""and V.Text~="\069\110\116\101\114 \099\111\109\109\097\110\100")then local r=V.Text V.Text=""I("\062"..r,J)local X=client.Remote.Get("\084\101\114\109\105\110\097\108",r,{Time=tick()})if X and type(X)=="\116\097\098\108\101"then for r,X in ipairs(X)do I(X,J)end end V:CaptureFocus()end wait(.1)end)end)X:Ready()local e=0 while X.gTable.Active and wait(.5)do if e<#J then e=#J v:GenerateList(J,nil,true)end end end
-- Decompiled with the Synapse X Luau decompiler.

client = nil
service = nil
return function(p1)
	local v1 = client.UI.Make("Window", {
		Name = "Terminal",
		Title = "Terminal",
		Size = { 500, 300 },
		AllowMultiple = false,
		OnClose = function() end,
	})
	local v2 = v1:Add("ScrollingFrame", {
		Size = UDim2.new(1, -10, 1, -40),
		BackgroundTransparency = 1,
		List = {},
	})
	local v3 = v1:Add("TextBox", {
		Text = "",
		Size = UDim2.new(1, 0, 0, 30),
		Position = UDim2.new(0, 0, 1, -30),
		PlaceholderText = "Enter command",
		TextXAlignment = "Left",
	})
	local function u1(p2, p3)
		table.insert(p3, p2)
		if #p3 > 500 then
			table.remove(p3, 1)
		end
	end
	local u2 = {}
	v1:BindEvent(service.Events.TerminalLive, function(p4)
		local l__Type__4 = p4.Type
		u1(p4.Data, u2)
	end)
	v3.FocusLost:connect(function(p5)
		service.Debounce("_TERMINAL_BOX_FOCUSLOST", function()
			if p5 and v3.Text ~= "" and v3.Text ~= "Enter command" then
				local l__Text__5 = v3.Text
				v3.Text = ""
				u1(">" .. l__Text__5, u2)
				local v6 = client.Remote.Get("Terminal", l__Text__5, {
					Time = tick(),
				})
				if v6 and type(v6) == "table" then
					for v7, v8 in ipairs(v6) do
						u1(v8, u2)
					end
				end
				v3:CaptureFocus()
			end
			wait(0.1)
		end)
	end)
	v1:Ready()
	local v9 = 0
	while v1.gTable.Active and wait(0.5) do
		if v9 < #u2 then
			v9 = #u2
			v2:GenerateList(u2, nil, true)
		end
	end
end
