How would I make a part that's only visible through a GUI Element?

I’m trying to make it so that you can only see certain parts when a specific UI is enabled. I can’t change their visibility because the togglable element does not take up the whole screen, only part of it.

The effect I’m looking for is sort of like a polarizer to a monitor. I’m not sure if this is the right category for it though, but I’m not sure how to implement it so I assume it’s via scripting?

Use a viewportframe, then if you want to allow the player only to see it through it while moving their camera parent the part into the viewportframe, then make also sure to make a script to set the camera of the viewport to the CurrentCamera.

2 Likes

Use ViewportFrame, if you want the player to see it with the camera, then set the transparency to 1 and make it’s camera to current camera of workspace

Experimented with it a bit, and it’s worked. Thank you for the help.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.