Need help creating effect

Hello, I’m currently working on an isometric game called Bot Terror its based off another game called Project zomboid and I’m trying to recreate the effect whenever you walk indoors, the outside will disappear and you can only see indoors, I know this can be done with a trigger but I also have no idea how to code one (I’m very bad at explaining things)

Outside
image
Inside
image

3 Likes

I think having a raycast check constantly would keep it modular and less handling of when someone touches a part, and to check if theyre inside or not.

Raycast from the player to the sky, if the raycast hits something, then assume the player is inside a building and u could play around with the lighting to make the outside extremely dark (would help with the interior lighting bleeding out to the outside to allow ppl to see thrgh windows.