Well if you shot your friends in the same manner than it's likely not the gun, plus you confirmed it works ok from a rest. It's probably just grip or trigger finger related, either too much trigger finger or you are tightening your grip as you pull the tigger moving the gun off sight. Try loosening your grip a little, put just the pad on the trigger and pull very slowly and let it surprise you. If you've got too much finger and pull fast it could throw it off. Also follow through, keep the gun on sight, don't try to drop the gun and look over it to see if you hit anything. Shoot, let it recoil, come back on sight, then look at your target.