-- Decompiled with the Synapse X Luau decompiler.

local l__Boards__1 = game.Workspace:WaitForChild("Boards");
local l__Retriever__2 = l__Boards__1:WaitForChild("SettingsHandler"):WaitForChild("Retriever");
local v3 = l__Retriever__2:InvokeServer("Authenticate");
local v4 = v3 == true and l__Retriever__2:InvokeServer("GetData") or nil;
local v5 = nil;
for v6, v7 in pairs(l__Boards__1:GetChildren()) do
	if v7.Name == "Buttons" then
		local l__SurfaceGui__8 = v7:WaitForChild("SurfaceGui");
		for v9, v10 in pairs(l__SurfaceGui__8.MainFrame.ScrollingFrame:GetChildren()) do
			v10.TextButton.MouseButton1Click:connect(function()
				game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, v10.Id.Value, true);
			end);
			v10.MouseEnter:connect(function()
				v10.Title.BackgroundTransparency = 0;
			end);
			v10.MouseLeave:connect(function()
				v10.Title.BackgroundTransparency = 0.25;
			end);
		end;
		l__SurfaceGui__8.MainFrame.ScrollingFrame.ChildAdded:connect(function(p1)
			p1.TextButton.MouseButton1Click:connect(function()
				game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, p1.Id.Value, true);
			end);
			p1.MouseEnter:connect(function()
				p1.Title.BackgroundTransparency = 0;
			end);
			p1.MouseLeave:connect(function()
				p1.Title.BackgroundTransparency = 0.25;
			end);
		end);
	elseif v7.Name == "Screen" then
		local l__SurfaceGui__11 = v7:WaitForChild("SurfaceGui");
		l__SurfaceGui__11.MainFrame.Information.Take.MouseButton1Click:connect(function()
			game:GetService("MarketplaceService"):PromptPurchase(game.Players.LocalPlayer, 391248083);
		end);
		local u1 = true;
		l__SurfaceGui__11.MainFrame.Footer.Title.ImageButton.MouseButton1Click:connect(function()
			if u1 then
				u1 = false;
				l__SurfaceGui__11.MainFrame.Title:TweenPosition(UDim2.new(1, 0, 0, 5), "InOut", "Quart", 0.5, true);
				wait();
				l__SurfaceGui__11.MainFrame.ScrollingFrame:TweenPosition(UDim2.new(1, 0, 0, 35), "InOut", "Quart", 0.5, true);
				wait();
				l__SurfaceGui__11.MainFrame.Footer:TweenPosition(UDim2.new(1, 0, 1, -25), "InOut", "Quart", 0.5, true);
				wait();
				l__SurfaceGui__11.MainFrame.Information:TweenPosition(UDim2.new(0, 0, 0, 0), "InOut", "Quart", 0.5, true);
				wait();
				l__SurfaceGui__11.MainFrame.Information.Title:TweenPosition(UDim2.new(0, 5, 0, 5), "InOut", "Quart", 0.5, true);
				wait();
				l__SurfaceGui__11.MainFrame.Information.Message1:TweenPosition(UDim2.new(0, 10, 0, 35), "InOut", "Quart", 0.5, true);
				wait();
				l__SurfaceGui__11.MainFrame.Information.Message2:TweenPosition(UDim2.new(0, 10, 0, 140), "InOut", "Quart", 0.5, true);
				wait();
				l__SurfaceGui__11.MainFrame.Information.Close:TweenPosition(UDim2.new(0.5, 5, 0, 245), "InOut", "Quart", 0.5, true);
				wait();
				l__SurfaceGui__11.MainFrame.Information.Take:TweenPosition(UDim2.new(0, 10, 0, 245), "InOut", "Quart", 0.5, true);
				wait(0.5);
				u1 = true;
			end;
		end);
		l__SurfaceGui__11.MainFrame.Information.Close.MouseButton1Click:connect(function()
			if u1 then
				u1 = false;
				l__SurfaceGui__11.MainFrame.Information.Title:TweenPosition(UDim2.new(-1, 5, 0, 5), "InOut", "Quart", 0.5, true);
				wait();
				l__SurfaceGui__11.MainFrame.Information.Message1:TweenPosition(UDim2.new(-1, 10, 0, 35), "InOut", "Quart", 0.5, true);
				wait();
				l__SurfaceGui__11.MainFrame.Information.Message2:TweenPosition(UDim2.new(-1, 10, 0, 140), "InOut", "Quart", 0.5, true);
				wait();
				l__SurfaceGui__11.MainFrame.Information.Take:TweenPosition(UDim2.new(-1, 10, 0, 245), "InOut", "Quart", 0.5, true);
				wait();
				l__SurfaceGui__11.MainFrame.Information.Close:TweenPosition(UDim2.new(-1, 5, 0, 245), "InOut", "Quart", 0.5, true);
				wait();
				delay(0.5, function()
					l__SurfaceGui__11.MainFrame.Information.Position = UDim2.new(-1, 0, 0, 0);
				end);
				wait();
				l__SurfaceGui__11.MainFrame.Title:TweenPosition(UDim2.new(0, 5, 0, 5), "InOut", "Quart", 0.5, true);
				wait();
				l__SurfaceGui__11.MainFrame.ScrollingFrame:TweenPosition(UDim2.new(0, 5, 0, 35), "InOut", "Quart", 0.5, true);
				wait();
				l__SurfaceGui__11.MainFrame.Footer:TweenPosition(UDim2.new(0, 5, 1, -25), "InOut", "Quart", 0.5, true);
				wait(0.5);
				u1 = true;
			end;
		end);
		if v3 == true then
			l__SurfaceGui__11.MainFrame.Footer.Title.Settings.Visible = true;
			local u2 = v4;
			local u3 = v5;
			l__SurfaceGui__11.MainFrame.Footer.Title.Settings.MouseButton1Click:connect(function()
				if u1 then
					u1 = false;
					local v12, v13 = l__Retriever__2:InvokeServer("GetData");
					u2 = v12;
					u3 = v13;
					l__SurfaceGui__11.MainFrame.Settings.Message2.ListSize.TextBox.Text = u2.ListSize;
					l__SurfaceGui__11.MainFrame.Settings.Message2.Datastore.TextBox.Text = u2.Datastore;
					l__SurfaceGui__11.MainFrame.Settings.Message2.Refresh.TextBox.Text = u2.Refresh;
					if u3 == true then
						l__SurfaceGui__11.MainFrame.Settings.Message2.Datastore.TextBox.Min.Visible = false;
						l__SurfaceGui__11.MainFrame.Settings.Message2.Datastore.TextBox.Plus.Visible = false;
						l__SurfaceGui__11.MainFrame.Settings.Message2.Datastore.TextBox.Text = "Disabled because AbortCustomPurchases";
					end;
					l__SurfaceGui__11.MainFrame.Title:TweenPosition(UDim2.new(1, 0, 0, 5), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.ScrollingFrame:TweenPosition(UDim2.new(1, 0, 0, 35), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.Footer:TweenPosition(UDim2.new(1, 0, 1, -25), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.Settings:TweenPosition(UDim2.new(0, 0, 0, 0), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.Settings.Message1:TweenPosition(UDim2.new(0, 10, 0, 5), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.Settings.Message2:TweenPosition(UDim2.new(0, 10, 0, 90), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.Settings.Save:TweenPosition(UDim2.new(0.5, 0, 0, 175), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.Settings.Cancel:TweenPosition(UDim2.new(0, 10, 0, 175), "InOut", "Quart", 0.5, true);
					wait(0.5);
					u1 = true;
				end;
			end);
			l__SurfaceGui__11.MainFrame.Settings.Cancel.MouseButton1Click:connect(function()
				if u1 then
					u1 = false;
					l__SurfaceGui__11.MainFrame.Settings.Message1:TweenPosition(UDim2.new(-1, 10, 0, 5), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.Settings.Message2:TweenPosition(UDim2.new(-1, 10, 0, 90), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.Settings.Cancel:TweenPosition(UDim2.new(-1, 10, 0, 175), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.Settings.Save:TweenPosition(UDim2.new(-1, 5, 0, 175), "InOut", "Quart", 0.5, true);
					wait();
					delay(0.5, function()
						l__SurfaceGui__11.MainFrame.Settings.Position = UDim2.new(-1, 0, 0, 0);
					end);
					wait();
					l__SurfaceGui__11.MainFrame.Title:TweenPosition(UDim2.new(0, 5, 0, 5), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.ScrollingFrame:TweenPosition(UDim2.new(0, 5, 0, 35), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.Footer:TweenPosition(UDim2.new(0, 5, 1, -25), "InOut", "Quart", 0.5, true);
					wait(0.5);
					u1 = true;
				end;
			end);
			l__SurfaceGui__11.MainFrame.Settings.Save.MouseButton1Click:connect(function()
				if u1 then
					u1 = false;
					l__SurfaceGui__11.MainFrame.Settings.Save.Text = "Saving...";
					u2 = l__Retriever__2:InvokeServer("SetData", u2);
					l__SurfaceGui__11.MainFrame.Settings.Save.Text = "Save";
					l__SurfaceGui__11.MainFrame.Settings.Message1:TweenPosition(UDim2.new(-1, 10, 0, 5), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.Settings.Message2:TweenPosition(UDim2.new(-1, 10, 0, 90), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.Settings.Cancel:TweenPosition(UDim2.new(-1, 10, 0, 175), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.Settings.Save:TweenPosition(UDim2.new(-1, 5, 0, 175), "InOut", "Quart", 0.5, true);
					wait();
					delay(0.5, function()
						l__SurfaceGui__11.MainFrame.Settings.Position = UDim2.new(-1, 0, 0, 0);
					end);
					wait();
					l__SurfaceGui__11.MainFrame.Title:TweenPosition(UDim2.new(0, 5, 0, 5), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.ScrollingFrame:TweenPosition(UDim2.new(0, 5, 0, 35), "InOut", "Quart", 0.5, true);
					wait();
					l__SurfaceGui__11.MainFrame.Footer:TweenPosition(UDim2.new(0, 5, 1, -25), "InOut", "Quart", 0.5, true);
					wait(0.5);
					u1 = true;
				end;
			end);
			l__SurfaceGui__11.MainFrame.Settings.Message2.ListSize.TextBox.Min.MouseButton1Click:connect(function()
				local v14 = tonumber(l__SurfaceGui__11.MainFrame.Settings.Message2.ListSize.TextBox.Text);
				if v14 > 1 then
					local v15 = v14 - 1;
					l__SurfaceGui__11.MainFrame.Settings.Message2.ListSize.TextBox.Text = v15;
					u2.ListSize = v15;
				end;
			end);
			l__SurfaceGui__11.MainFrame.Settings.Message2.ListSize.TextBox.Plus.MouseButton1Click:connect(function()
				local v16 = tonumber(l__SurfaceGui__11.MainFrame.Settings.Message2.ListSize.TextBox.Text);
				if v16 < 100 then
					local v17 = v16 + 1;
					l__SurfaceGui__11.MainFrame.Settings.Message2.ListSize.TextBox.Text = v17;
					u2.ListSize = v17;
				end;
			end);
			l__SurfaceGui__11.MainFrame.Settings.Message2.Datastore.TextBox.Min.MouseButton1Click:connect(function()
				local v18 = tonumber(l__SurfaceGui__11.MainFrame.Settings.Message2.Datastore.TextBox.Text);
				if v18 > 1 then
					local v19 = v18 - 1;
					l__SurfaceGui__11.MainFrame.Settings.Message2.Datastore.TextBox.Text = v19;
					u2.Datastore = v19;
				end;
			end);
			l__SurfaceGui__11.MainFrame.Settings.Message2.Datastore.TextBox.Plus.MouseButton1Click:connect(function()
				local v20 = tonumber(l__SurfaceGui__11.MainFrame.Settings.Message2.Datastore.TextBox.Text);
				if v20 < 100 then
					local v21 = v20 + 1;
					l__SurfaceGui__11.MainFrame.Settings.Message2.Datastore.TextBox.Text = v21;
					u2.Datastore = v21;
				end;
			end);
			l__SurfaceGui__11.MainFrame.Settings.Message2.Refresh.TextBox.Min.MouseButton1Click:connect(function()
				local v22 = tonumber(l__SurfaceGui__11.MainFrame.Settings.Message2.Refresh.TextBox.Text);
				if v22 > 1 then
					local v23 = v22 - 1;
					l__SurfaceGui__11.MainFrame.Settings.Message2.Refresh.TextBox.Text = v23;
					u2.Refresh = v23;
				end;
			end);
			l__SurfaceGui__11.MainFrame.Settings.Message2.Refresh.TextBox.Plus.MouseButton1Click:connect(function()
				local v24 = tonumber(l__SurfaceGui__11.MainFrame.Settings.Message2.Refresh.TextBox.Text);
				if v24 < 10 then
					local v25 = v24 + 1;
					l__SurfaceGui__11.MainFrame.Settings.Message2.Refresh.TextBox.Text = v25;
					u2.Refresh = v25;
				end;
			end);
		end;
	end;
end;