function module.ShowSpecificPage(m,f,S)for m,x in pairs(pages:GetChildren())do if x.Name==f then if currentPage==x then x.Visible=true else tweenPages(UDim2.new(-1,0,0,0),x,true)end local m=subPageOrders[x.Name]if m then local s local H for f,m in pairs(m)do local N=x[m]if N.Name==S then H=f elseif N.Position.X.Scale==0 then s=f end end if s==nil then for f=1,#m,1 do if f~=H then s=f end end end if f=="\065\100\109\105\110"and currentPage.Name=="\065\100\109\105\110"then spawn(function()(main:GetModule("\080\097\103\101\065\100\109\105\110")):UpdatePages()end)end module:OpenMainFrame()if x:FindFirstChild("\078\097\118\105\103\097\116\101\066\117\116\116\111\110\115")then navigateNewPage(x,s,H,"\076\101\102\116",true)end end else x.Visible=false end end end module:ShowSpecificPage("\072\111\109\101")
--Show a specific page
function module:ShowSpecificPage(pageName, subPageName)
	for a, b in pairs(pages:GetChildren()) do
		if b.Name == pageName then
			if currentPage == b then
				b.Visible = true
			else
				tweenPages(UDim2.new(-1, 0, 0, 0), b, true)
			end
			local subPages = subPageOrders[b.Name]
			if subPages then
				local oldPos
				local newPos
				for i, v in pairs(subPages) do
					local subPage = b[v]
					if subPage.Name == subPageName then
						newPos = i
					elseif subPage.Position.X.Scale == 0 then
						oldPos = i
					end
				end
				--
				if oldPos == nil then
					for i = 1, #subPages do
						if i ~= newPos then
							oldPos = i
						end
					end
				end
				--
				if pageName == "Admin" and currentPage.Name == "Admin" then
					spawn(function()
						main:GetModule("PageAdmin"):UpdatePages()
					end)
				end
				module:OpenMainFrame()
				if b:FindFirstChild("NavigateButtons") then
					navigateNewPage(b, oldPos, newPos, "Left", true)
				end
			end
		else
			b.Visible = false
		end
	end
end
module:ShowSpecificPage("Home")
