You would probably want to make some collision volumes where your lit areas are, and if they overlap your bots, make them invisible however you want to do that. Light itself is pretty complicated and as far as I know there isn’t a good way to know if something is “lit” because that can mean a lot of things. It depends on what you situation is and how complicated you want your system to be, but rather than using the lighting itself as the way of measuring if something is lit, you should just put collision volumes attached to your lights or in your level where you would reasonably expect someone standing there to be illuminated by your standards.