I solved the problem using GameState, I leave the code here if anyone needs it;
LocalPlayerController:
GameState: