Making a part visible only through a certain part

Is there any way to make it so that you can see a part through a wall and only through that certain wall?

to be more specific, I’m using a highlight and not a part, just assuming that the same method will work with both a part and a highlight (I am aware of alwaysontop but it’s for every wall, i’m looking to use it for one specific wall)

Although i dont know the details i would assume you would have to raycast.

1 Like

See if this helps you:

If it doesn’t, then let me know and maybe I can make a script template of raycasting for this.

looks interesting but I can’t figure it out

managed to make raycasting work but it’s not what i had in mind

If there’s a script to make parts only visible through a hole, then make it visible through a wall.

I’m sure there’s something you can tweak.