Viewportframe Portal Things

I am trying to create a viewportframe portal thing like in the roblox metaverse, ive gotten multiple models and tried to learn it but it all looks like letters and words, if i could have a description of how one works this may help greatly, thanks!

i have a problem though.
i need the portal to enter a hallway and if i use that you can see outside of the hallway