This works:
Code: Select all
local page = selectionFrame.pageNumber.caption
if (#global.avatars > page*10) then
updateGUI(player, page+1)
end
Code: Select all
local page = selectionFrame.pageNumber.caption
if (page > 1) then
updateGUI(player, page-1)
end