Question about proximity teleporting

is there a way to teleport player/s near another player? not directly unto another player but in a close proximity, while also ensuring the safety of the teleported player?
Was this page helpful?