if Detection == false then
PageDisplay.Text = "Page " .. Page - 1 .. "/" .. Max
elseif Detection == true then
PageDisplay.Text = "Page " .. Page + 1 .. "/" .. Max
end
obviously you can see the only difference is the operation, is there any way i can make it efficient?