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.
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