Teleport all Players at the same time

Hi, I would like to change the position of all PlayerControllers when a client interact with an item. I have problems with replication and I don’t really know where I should put my function, so it can access all PlayerControllers, and can be accessed by a replication of a simple spawned actor.

Do you have any ideas ?

The quickest/easiest would be a server RPC from the interacting clients pawn or player controller.

I think that I might do it without RPC, because the owning client can teleport everyone, but the other clients only teleport themselves.

*Normally, I check is the Pawn is Controlled, I forgot to join is controlled in the branch for the screenshot.

I have found a solution, I just put the function to teleport all players in the Gamemode. The client go through the server to activate the function. I know it can be a problem for cheaters, but for the moment, and for the kind of game I want to make, make wars to cheaters is not the priority.