As the title says, I want to achieve a similar effect to that specific item from Phasmophobia. In case you don’t know what it does, it basically casts some dots to reveal something that is invisible at plain sight. I don’t even know where to start. I tried making a trasparent texture, so that light won’t go through it and reveal a hidden part, but it didn’t work. Is there an option so that light won’t go through an invisible part? Here’s a visual example of what I want to achieve:
Maybe you could use raycasts? Make the parts transparent, and cast a whole bunch of rays in every direction from the projector. When the rays hit the invisible part, then have it create a small green part there, to create the ‘dots’. (Or it could make the invisible parts become visible, or show a texture/decal)
For the ghost model you can do something like a green forcefield mesh, for the dots you can do a beam, using the dots light as the center and raycast outwards for the attachment end points (as mentioned before).
Roblox doesn’t have options for selective light collisions, and if all lighting doesn’t go through something then it’s no longer invisible.
If you want a very close affect, you’d need to use code to shoot out raycasts and place small glowing parts where the raycasts collide (make sure to include the ghost models in the raycast targets).
You can see a similar effect in the Roblox LIDAR games:
It wouldn’t be too bad performance wise if you optimize the raycasts or use much fewer than the game, since you could have only the ones by the ghost be redone, but if the performance is a concern, you could instead just use a green light and have the ghost fade in with a forcefield affect when it’s near:
And you could use a texture on the forcefield material to get a dots affect if you’d like:
Please move your post to #help-and-feedback:art-design-support to reach out to more VFX specialists than scripters, as I’m sure they can help you on this topic.