Why DefaultPawnClass doesnt work

class doesnt change, please tell me whats wrong.
This is script

280557-capture1.png

280556-capture.png

You sure you set that game mode class in project settings or world settings?

The code looks good, now verify the following:

go to adjustments of the world of your level and check if in gamemode. where it says “GameMode Override” select the name of your gamemode and you will see a preview of the settings of your gamemode that you selected

280588-captura.png