Dunno if this'll work. Should work in theory.
_array = [loon1,loon2,loon3,etc]
_i = 0
#loop
? ((player distance (_array select _i)) < 10) : [(_array select _i)] join (group player)
_i = _i + 1
? _i > count _array : _i = 0
~0.05
goto "loop"
:beat: *Gets Shot* :beat: