local s=pages.custom["\065\088 \082\101\115\116\111\114\101"]local d=s.Loading local h=0 s.MouseButton1Down:Connect(function()if h<2 then local F,o,A=Color3.toHSV(s.BackgroundColor3)d.BackgroundColor3=Color3.fromHSV(F,o,A*.5)d.Visible=true if h==0 then h=1 d.Blocker.Visible=false d.TextLabel.Text="\067\111\110\102\105\114\109\063"wait(1)elseif h==1 then h=2 d.Blocker.Visible=true d.TextLabel.Text="\076\111\097\100\105\110\103\046\046\046"local F=main.signals.RestoreDefaultSettings:InvokeServer()if F=="\083\117\099\099\101\115\115"then updateSettings();(main:GetModule("\080\097\103\101\067\111\109\109\097\110\100\115")):CreateCommands()local s=(main:GetModule("\099\102")):FormatNotice("\082\101\115\116\111\114\101\068\101\102\097\117\108\116\083\101\116\116\105\110\103\115");(main:GetModule("\078\111\116\105\099\101\115")):Notice("\078\111\116\105\099\101",s[1],s[2])else s.TextLabel.Text=F end wait(1)end h=0 d.Visible=false d.Blocker.Visible=false end end)
--Restore Default Settings
local restore = pages.custom["AX Restore"]
local loading = restore.Loading
local restoreDe = 0
restore.MouseButton1Down:Connect(function()
	if restoreDe < 2 then
		local h, s, v = Color3.toHSV(restore.BackgroundColor3)
		loading.BackgroundColor3 = Color3.fromHSV(h, s, v * 0.5)
		loading.Visible = true
		if restoreDe == 0 then
			restoreDe = 1
			loading.Blocker.Visible = false
			loading.TextLabel.Text = "Confirm?"
			wait(1)
		elseif restoreDe == 1 then
			restoreDe = 2
			loading.Blocker.Visible = true
			loading.TextLabel.Text = "Loading..."
			local returnMsg = main.signals.RestoreDefaultSettings:InvokeServer()
			if returnMsg == "Success" then
				updateSettings()
				main:GetModule("PageCommands"):CreateCommands()
				local notice = main:GetModule("cf"):FormatNotice("RestoreDefaultSettings")
				main:GetModule("Notices"):Notice("Notice", notice[1], notice[2])
			else
				restore.TextLabel.Text = returnMsg
			end
			wait(1)
		end
		restoreDe = 0
		loading.Visible = false
		loading.Blocker.Visible = false
	end
end)
