For light painting, you need to set your focus in light, then make your actual exposure in relative darkness.
Autofocus will allow you to rapidly set the focus point - assuming your subject isn't going to move too far through your depth of field or you have a small enough aperture to cope with the movement. You can set autofocus simply by providing enough extra, temporary, light - even if it's just a torch [flashlight U.S.] held pointing straight at someone's face from 2 feet away. This doesn't need to look pretty, it's just so the camera can focus, nothing else.
Once focussed, you then need to set your exposure levels for the 'dark + light painting'.
This will invariably be too dark for an autofocus mechanism, it would cause it to constantly 'hunt' & never find anything it can grab. So before you proceed towards setting your exposure, switch off auto-focus. You can then concentrate only on the exposure time/aperture/ISO until you're happy.
One thing about light painting is you don't know what you're going to get until you've got it, so setting focus then switching off auto is one less thing to think about. In fact, light painting will usually involve setting every parameter manually, test, tweak, test, tweak, until it works.