How to use collision to enable light?

I have tried a few codes already on the topic, usually resulting in errors and broken scripts that were not able to be attached to the game objects. I’d simply like to have a sphere’s collision detect the player when they walk into this objects range. Thus enabling the parented light on. I am new to scripts my apologies.
Can you please show an example of the script? I am not sure of how to have everything setup properly for the script to work.
To note, I wish to activate the lights only by player proximity to the lights. The characters death would deactivate the lights as well as enemies passing by, but one thing at a time for now.

then use this function instead of ur’s ,

function OnControllerColliderHit (hit : ControllerColliderHit){

but the script is for First Person Controller mind it,