UiPageLayout Doesn't work

I’m working with UiPageLayouts and am using :JumpTo() to get to a certain page. The pages are siblings of the UiPageLayout but whenever I call :JumpTo it tells me this in output:

“Object passed to UIPageLayout JumpTo is not part of the layout”

How do I get the script to recognize the pages?

Figured it out. I made some of the pages invisible, so the script doesn’t consider them part of the layout.