How do I hide objects that are not in the light, similarly to among us?

Check out this older post on how to raycast

.