Rattle gun noise from the engine bay and dimming lights is classic flat battery. Get a jump start or put a battery pack on it before going in to it any further.
If you have a multimeter, check the voltage across the battery when trying to start the car, if its below 12v with ignition on, or drops below 10v when trying to start it, then you have a flat battery