how do you change a lights intensity when you collect a pickup

Hey Guys, I have a spotlight in my scene and 20 pickups. i want to be able to decrease the light intensity everytime i collect a pick up but i cant find anything to help with this. can someone please help :slight_smile:

Add a reference to the spotlight to some script that manages your game state or the reference to a script that is attached to your pick up’s. Increase intensity when picking up the object, however you do that.