One approach involves playing the guitar with your right hand and using your left hand to control the drumsticks by sliding them between your fingers. You might strum with your right hand while hitting the snare with your left index finger and playing the cymbals with your left thumb and middle finger.
Secondly, you could use a drum machine or software that allows you to pre-record drum parts. With accurate timing, you can play along to the pre-recorded drum beats, essentially accompanying yourself.
Finally, a popular method is to create looped guitar sequences using a looper pedal. Once you have recorded a guitar loop, you can play the drums on top of the loop, layering your performance with rhythm. This technique requires careful planning and coordination to ensure the guitar loop and drums work together seamlessly.
Though challenging, playing guitar and drums at the same time can be an exciting and rewarding experience, especially when experimenting and having fun with the process!