I’ve basically got 2 buttons for going up and down on a page, however they don’t change colors as the pages get changed
local Page = 1
local MaxPages = #Pages:GetChildren() - 2 -- minus 2 because I have 2 UIElements that arent part of the pages
Next.Activated:Connect(function()
if Page < MaxPages then
Next.ImageColor3 = Color3.fromRGB(56, 186, 255)
Page = Page + 1
PageLayout:Next()
if Page > 1 then
if Page == MaxPages then
Next.ImageColor3 = Color3.fromRGB(100, 100, 100)
else
Next.ImageColor3 = Color3.fromRGB(56, 186, 255)
end
end
else
Next.ImageColor3 = Color3.fromRGB(100, 100, 100)
end
end)
Previous.Activated:Connect(function()
if Page > 1 then
Previous.ImageColor3 = Color3.fromRGB(56, 186, 255)
Page = Page - 1
PageLayout:Previous()
if Page < MaxPages then
if Page == 1 then
Previous.ImageColor3 = Color3.fromRGB(100, 100, 100)
else
Previous.ImageColor3 = Color3.fromRGB(56, 186, 255)
end
end
else
Previous.ImageColor3 = Color3.fromRGB(100, 100, 100)
end
end)
When I go down one, the top button doesn’t go blue (to signify you can go back up)
