-- Decompiled with the Synapse X Luau decompiler.


client = nil;
service = nil;
return function(p1)
	local v1 = client.UI.Make("Window", {
		Name = "Settings", 
		Title = "Settings", 
		Size = { 225, 200 }, 
		AllowMultiple = false
	});
	local v2 = { {
			Text = "Keybinds: ", 
			Desc = "- Enabled/Disables Keybinds", 
			Entry = "Boolean", 
			Value = client.Variables.KeybindsEnabled, 
			Function = function(p2, p3)
				client.Variables.KeybindsEnabled = p2;
				p3.Text = "Saving..";
				client.Remote.Get("UpdateClient", "KeybindsEnabled", p2);
				p3.Text = p3.Text;
			end
		}, {
			Text = "UI Keep Alive: ", 
			Desc = "- Prevents Adonis UI deletion on death", 
			Entry = "Boolean", 
			Value = client.Variables.UIKeepAlive, 
			Function = function(p4, p5)
				client.Variables.UIKeepAlive = p4;
				p5.Text = "Saving..";
				client.Remote.Get("UpdateClient", "UIKeepAlive", p4);
				p5.Text = p5.Text;
			end
		}, {
			Text = "Particle Effects: ", 
			Desc = "- Enables/Disables certain Adonis made effects like sparkles", 
			Entry = "Boolean", 
			Value = client.Variables.ParticlesEnabled, 
			Function = function(p6, p7)
				client.Variables.ParticlesEnabled = p6;
				p7.Text = "Saving..";
				client.Remote.Get("UpdateClient", "ParticlesEnabled", p6);
				p7.Text = p7.Text;
			end
		}, {
			Text = "Capes: ", 
			Desc = "- Allows you to disable all player capes locally", 
			Entry = "Boolean", 
			Value = client.Variables.CapesEnabled, 
			Function = function(p8, p9)
				client.Variables.CapesEnabled = p8;
				p9.Text = "Saving..";
				client.Remote.Get("UpdateClient", "CapesEnabled", p8);
				p9.Text = p9.Text;
			end
		}, {
			Text = "Console Key: ", 
			Desc = "Key used to open the console", 
			Entry = "Button", 
			Value = client.Variables.CustomConsoleKey or client.Remote.Get("Setting", "ConsoleKeyCode"), 
			Function = function(p10)
				p10.Text = "Waiting...";
				local u1 = nil;
				while true do
					wait();
					if u1 then
						break;
					end;				
				end;
				client.Variables.CustomConsoleKey = u1;
				service.UserInputService.InputBegan:connect(function(p11)
					if not service.UserInputService:GetFocusedTextBox() and rawequal(p11.UserInputType, Enum.UserInputType.Keyboard) then
						u1 = p11.KeyCode.Name;
					end;
				end):Disconnect();
				p10.Text = "Saving..";
				client.Remote.Get("UpdateClient", "CustomConsoleKey", client.Variables.CustomConsoleKey);
				p10.Text = u1;
			end
		}, {
			Text = "Theme: ", 
			Desc = "- Allows you to set the Adonis UI theme", 
			Entry = "DropDown", 
			Setting = "CustomTheme", 
			Function = function(p12)
				local l__Frame__2 = gui.ThemePicker.Frame;
				local l__Entry__3 = gui.ThemePicker.Entry;
				local l__gui_ThemePicker__4 = gui.ThemePicker;
				local l__TextButton__5 = p12.TextButton;
				local function u6()
					l__Frame__2:ClearAllChildren();
					local v3 = { "Default" };
					local v4 = 0;
					for v5, v6 in pairs(client.Deps.UI:GetChildren()) do
						table.insert(v3, v6.Name);
					end;
					for v7, v8 in pairs(v3) do
						local v9 = l__Entry__3:Clone();
						v9.Text = v8;
						v9.Position = UDim2.new(0, 0, 0, 20 * v4);
						v9.Parent = l__Frame__2;
						v9.Visible = true;
						v9.MouseButton1Click:connect(function()
							service.Debounce("ClientSelectingTheme", function()
								l__gui_ThemePicker__4.Visible = false;
								l__TextButton__5.Text = v8;
								client.Variables.CustomTheme = v8;
								if v8 == "Default" then
									client.Remote.Get("UpdateClient", "CustomTheme", nil);
									return;
								end;
								client.Remote.Get("UpdateClient", "CustomTheme", v8);
							end);
						end);
						v4 = v4 + 1;
					end;
					l__gui_ThemePicker__4.Position = UDim2.new(0, l__TextButton__5.AbsolutePosition.X, 0, l__TextButton__5.AbsolutePosition.Y);
					l__gui_ThemePicker__4.Visible = true;
				end;
				l__TextButton__5.MouseButton1Click:connect(function()
					service.Debounce("ClientDisplayThemes", function()
						if l__gui_ThemePicker__4.Visible then
							l__gui_ThemePicker__4.Visible = false;
							return;
						end;
						u6();
					end);
				end);
				if not client.Variables.CustomTheme then
					l__TextButton__5.Text = "Default";
					return;
				end;
				l__TextButton__5.Text = client.Variables.CustomTheme;
			end
		} };
	if v1 then
		local v10 = v1:Add("TabFrame", {
			Size = UDim2.new(1, -10, 1, -10), 
			Position = UDim2.new(0, 5, 0, 5)
		});
		local v11 = v10:NewTab("Client", {
			Text = "Client"
		});
		local v12 = v10:NewTab("Game", {
			Text = "Game"
		});
		for v13, v14 in next, v2 do
			if v14.Entry == "Boolean" then
				v11:Add("TextLabel", {
					Size = UDim2.new(1, -10, 0, 25), 
					Position = UDim2.new(0, 5, 0, 25 * (v13 - 1)), 
					TextXAlignment = "Left", 
					Enabled = v14.Value, 
					Text = v14.Text, 
					ToolTip = v14.Desc
				}):Add("Boolean", {
					Size = UDim2.new(0, 100, 0, 20), 
					Position = UDim2.new(1, -100, 0, 0), 
					Enabled = v14.Value, 
					OnToggle = function(p13, p14)
						print("Toggled thinger");
					end
				});
			end;
		end;
		v11:ResizeCanvas(false, true);
		local l__gTable__15 = v1.gTable;
		v1:Ready();
	end;
end;
