-- Decompiled with the Synapse X Luau decompiler.


client = nil;
cPcall = nil;
Pcall = nil;
Routine = nil;
service = nil;
gTable = nil;
local function u1(p1, p2)
	p1.MouseLeave:connect(function(p3, p4)
		p2.Visible = false;
	end);
	p1.MouseMoved:connect(function(p5, p6)
		p2.Label.Text = p1.Desc.Value;
		p2.Size = UDim2.new(0, 10000, 0, 10000);
		local l__X__1 = p2.Label.TextBounds.X;
		local v2 = math.floor(l__X__1 / 500) + 1;
		if v2 < 1 then
			v2 = 1;
		end;
		local v3 = 500;
		if l__X__1 < 500 then
			v3 = l__X__1;
		end;
		p2.Visible = true;
		p2.Size = UDim2.new(0, v3 + 5, 0, v2 * 20 + 5);
		p2.Position = UDim2.new(0, p5, 0, p6 - 40 - (v2 * 20 + 5));
	end);
end;
return function(p7)
	local l__Player__4 = service.Player;
	local l__Object__5 = gTable.Object;
	local l__Main__6 = l__Object__5.Drag.Main;
	local l__Hide__7 = l__Object__5.Drag.Hide;
	local l__FakeDragger__8 = l__Object__5.Drag.Main.FakeDragger;
	local l__Search__9 = l__Object__5.Drag.Search;
	local l__Refresh__10 = l__Object__5.Drag.Refresh;
	l__Refresh__10.Visible = true;
	l__Search__9.Visible = true;
	local l__Drag__2 = l__Object__5.Drag;
	l__Search__9.InputBegan:connect(function(p8)
		l__Drag__2.Draggable = false;
	end);
	l__Search__9.InputEnded:connect(function(p9)
		l__Drag__2.Draggable = true;
	end);
	l__Object__5.Drag.Close.MouseButton1Click:connect(function()
		l__Drag__2.Draggable = false;
		l__Drag__2:TweenPosition(UDim2.new(0, -l__Drag__2.Size.X.Offset, l__Drag__2.Position.Y.Scale, l__Drag__2.Position.Y.Offset), "Out", "Sine", 0.5, true);
		wait(0.5);
		gTable:Destroy();
	end);
	l__Drag__2.BackgroundColor3 = l__Main__6.BackgroundColor3;
	l__Hide__7.MouseButton1Click:connect(function()
		if not l__Main__6.Visible then
			l__Main__6.Visible = true;
			l__Drag__2.BackgroundTransparency = 1;
			l__Hide__7.Text = "-";
			return;
		end;
		l__Main__6.Visible = false;
		l__Drag__2.BackgroundTransparency = l__Main__6.BackgroundTransparency;
		l__Hide__7.Text = "+";
	end);
	local l__X__11 = l__Drag__2.AbsoluteSize.X;
	local l__Y__12 = l__Main__6.AbsoluteSize.Y;
	local u3 = false;
	local u4 = l__X__11;
	local u5 = l__X__11;
	local l__Dragger__6 = l__Object__5.Drag.Main.Dragger;
	local u7 = l__Y__12;
	local u8 = l__Y__12;
	local u9 = "";
	local l__Title__10 = l__Object__5.Drag.Title;
	service.Player:GetMouse().Move:connect(function(p10, p11)
		if u3 then
			u4 = u5 + (l__Dragger__6.Position.X.Offset + 20);
			u7 = u8 + (l__Dragger__6.Position.Y.Offset + 20);
			if u4 < 230 then
				u4 = 230;
			end;
			if u7 < 200 then
				u7 = 200;
			end;
			l__Drag__2.Size = UDim2.new(0, u4, 0, 30);
			l__Main__6.Size = UDim2.new(1, 0, 0, u7);
			if u4 < 350 then
				if u9 == "" then
					u9 = l__Title__10.Text;
				end;
				l__Title__10.Text = "";
				return;
			end;
			if u9 ~= "" then
				l__Title__10.Text = u9;
				u9 = "";
			end;
		end;
	end);
	l__Dragger__6.DragBegin:connect(function(p12)
		u3 = true;
	end);
	local l__ScrollingFrame__11 = l__Object__5.Drag.Main.ScrollingFrame;
	l__Dragger__6.DragStopped:connect(function(p13, p14)
		u3 = false;
		u5 = u4;
		u8 = u7;
		l__Dragger__6.Position = UDim2.new(1, -20, 1, -20);
		l__ScrollingFrame__11.CanvasSize = UDim2.new(0, 0, 0, #l__ScrollingFrame__11:children() * 20);
	end);
	local l__Entry__12 = l__Object__5.Entry;
	local u13 = game;
	local l__Desc__14 = l__Object__5.Desc;
	local function u15(p15)
		l__ScrollingFrame__11:ClearAllChildren();
		local v13 = l__Entry__12:Clone();
		v13.Position = UDim2.new(0, 5, 0, 0 * 20);
		v13.Text = "Previous...";
		v13.Desc.Value = "Go back";
		v13.Visible = true;
		v13.Parent = l__ScrollingFrame__11;
		v13.Open.MouseButton1Click:connect(function()
			if u13.Parent then
				u13 = u13.Parent;
				u15();
			end;
		end);
		u1(v13, l__Desc__14);
		local v14 = 0 + 1;
		l__ScrollingFrame__11.CanvasSize = UDim2.new(0, 0, (v14 + 1) / 20, 0);
		for v15, v16 in pairs(u13:GetChildren()) do
			if not p15 or p15 == "all" or p15 == "" or p15 and string.find(string.lower(v16.Name), string.lower(p15)) then
				local u16 = v14;
				pcall(function()
					local v17 = l__Entry__12:Clone();
					v17.Position = UDim2.new(0, 5, 0, u16 * 20);
					v17.Text = tostring(v16);
					v17:WaitForChild("Desc");
					v17.Desc.Value = v16.ClassName;
					v17.Visible = true;
					v17.Parent = l__ScrollingFrame__11;
					v17.Delete.MouseButton1Click:connect(function()
						v16:Destroy();
						u15(p15);
					end);
					v17.Open.MouseButton1Click:connect(function()
						u13 = v16;
						u15();
					end);
					u1(v17, l__Desc__14);
					u16 = u16 + 1;
					l__ScrollingFrame__11.CanvasSize = UDim2.new(0, 0, (u16 + 1) / 20, 0);
				end);
			end;
		end;
	end;
	l__Search__9.FocusLost:connect(function(p16)
		if p16 and (l__Search__9.Text ~= "Search" and l__Search__9.Text ~= "" or string.len(l__Search__9.Text) > 0) then
			u15(l__Search__9.Text);
			return;
		end;
		if not p16 or l__Search__9.Text ~= "" and string.len(l__Search__9.Text) ~= 0 and string.lower(l__Search__9.Text) ~= "all" then
			l__Search__9.Text = "Search";
			return;
		end;
		l__ScrollingFrame__11:ClearAllChildren();
		l__Search__9.Text = "Search";
		u15();
	end);
	l__Refresh__10.Visible = false;
	l__Search__9.Text = "Search";
	l__Refresh__10.MouseButton1Click:connect(function()
		if l__Search__9.Text ~= "Search" and l__Search__9.Text ~= "" then
			u15(l__Search__9.Text);
			return;
		end;
		u15("all");
	end);
	gTable:Ready();
	l__Drag__2.Position = UDim2.new(0, -600, 0.5, -160);
	l__Drag__2:TweenPosition(UDim2.new(0, 35, 0.5, -160), "Out", "Sine", 0.5);
	u15("all");
end;
