IRL520 schematic help for all led circuits

MOSFET usually has quite high value of internal capacitance, Gate - Source and Gate - Drain. To protect arduino digital output from current spike when this cap is starting to charge ("0" to "1" transition) or discharge ("1" to "0" transition) 130 Ohm resistor. To keep MOSFET OFF, if you disconnect arduino, 10 k resistor.