change game mode in runtime


I have two different game mode. Is possible to change in runtime without exit from game? Or I need Open new level?

I have tried like this but not works.

In example from youtube I saw this and not works. Maybe I need any settings? After click on Z I need to change to BP_Spectator pawn. Thanks