you could use raycasts from player to light obsticle with light radius distance. repeat for each instance of object: set variable visable = 0 raycast objects Variable visable = 1
Visable = 0 → hide object Visable = 1 → show object
here you can see that kind of raycast i am talking about.