Player doesn't get possesed by the Player Controller in multiplayer

Hello,
I’m following a youtube tutorial How to Spawn in Multiplayer | Spawning in Unreal Engine | UE5 Multiplayer Tutorial Series - YouTube about multiplayer with blueprints. I have a weird bug where my player on the server window doesn’t get posses by the player controller (the spawning code happens in my BP_PlayerController). However, everything goes fine when I spawn my player with the world settings.


This is the code on the BP_PlayerController. The event has the same settings as the multiplayer video.
image
This is the code for the spawning function that is called on the PlayerController and is defined in the GameMode.

I tried to make the PlayerController possess another actor (spawned it a few seconds after). It seems that it is possessed because the camera changes to the other actor but I still can not move.
As I said before the only way that everything works is when I spawn it with the world settings and I don’t use the code in the PlayerController.
image
In the video, the Default Pawn Class is set to None.
Thank you for reading.