Making a user configurable light array to change functions

i’ve got the basics of my code working but I can’t for the life of me figure out how to turn the lights into an array so the user can drag in whatever lights they want in the inspector.

I gather I need to turn the whole thing into a gameobject or something along those lines but im really not a coder and am working mostly off copypasta. The problem with turning them into a gameobject is unity doesn’t seem to like that for lights so i’m at an impasse 🙂

using System.Collections; using System.Collections.Generic; using UnityEngine;  public class headlight : MonoBehaviour  {     public Light headlights;      // Start is called before the first frame update     void Start()     {         headlights = GetComponent<Light>();     }      // Update is called once per frame     void Update()     {         if (Input.GetKeyDown(KeyCode.L))         {             headlights.enabled = !headlights.enabled;         }      } }