switch places with player verse mechanic

i need to work on a switch places with (neareast) or (random) player i have virtually no experience in verse so players a b and c player a is 15 meters from player b then player a activates a signal remote and switches location with player b because they are the closest