light on collision help (scripting)

i want a light to be off to start with then turn on when there is a collision with a tagged object here is my script

function Start() {
Orb.enabled = false;
}
var Orb : Light;
Orb.enabled = false;
 
function OnCollisionEnter(hit : Collision)
{
if (hit.gameObject.name == "bullet")
{
Orb.enabled = true;
}
}

the light doesn’t turn on when collision is detected how can i fix this?

any suggestions/ amendments would be great

thanks

use active instead of enable

Orb.active = true;

Perhaps it’s an issue with your lights and their types. Is it set as important or not important? Also, are you in vertex lit or forward rendering? and If in forward, how many pixel lights are you allowing in your project settings?