class doesnt change, please tell me whats wrong.
This is script
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