local W={"\065\098\111\117\116","\067\111\109\109\097\110\100\115";"\083\112\101\099\105\097\108";"\065\100\109\105\110";"\083\101\116\116\105\110\103\115"}function module.DisplayPagesAccordingToRank(w,W)for W,w in pairs(main.settings.RankRequiredToViewPage)do local g=pages.Home:FindFirstChild(W)w=tonumber(w)if not w then w=0 end if g then if W~="\065\098\111\117\116"and(W~="\083\112\101\099\105\097\108"and main.pdata.Rank<w)then g.RankBlocker.Visible=true local W=(main:GetModule("\099\102")):GetRankName(w)g.RankBlocker.TextLabel.Text=W.."\043"else g.RankBlocker.Visible=false end end end end

local homeSortOrder = {"About", "Commands", "Special", "Admin", "Settings"}
function module:DisplayPagesAccordingToRank(updateCommands)
	for pageName, rankId in pairs(main.settings.RankRequiredToViewPage) do
		local pageButton = pages.Home:FindFirstChild(pageName)
		rankId = tonumber(rankId)
		if not rankId then
			rankId = 0
		end
		if pageButton then
			if pageName ~= "About" and pageName ~= "Special" and main.pdata.Rank < rankId then
			pageButton.RankBlocker.Visible = true
				local rankName = main:GetModule("cf"):GetRankName(rankId)
				pageButton.RankBlocker.TextLabel.Text = rankName.."+"
			else
				pageButton.RankBlocker.Visible = false
			end
		end
	end
	--[[
	local yScaleTotal = 0.08
	for i, pageName in pairs(homeSortOrder) do
		local pageButton = pages.Home:FindFirstChild(pageName)
		if pageButton and pageButton.Visible then
			pageButton.Position = UDim2.new(0, 0, yScaleTotal, 0)
			yScaleTotal = yScaleTotal + pageButton.Size.Y.Scale
		end
	end--]]
end



