how do you make an enemy be afraid of lights? like he/it moves away from the light..
Try adding a trigger to the light in roughly the shape of the light (a few boxes for a spotlight, a sphere for a point light)
Add a kinematic rigidbody to the trigger (since your light is moving).
Enemies can then respond to OnTriggerEnter and OnTriggerExit events.