How do you create a flashlight system?

yes I did it I found the way

firs you but as many zones and barriers you need

next put the first zone as when entered activate barrier

then get another zone and put when entered deactivate barrier

then put the zone with the barrier it controls to activate when entered