Basically I am running this code in the gamemode and it is supposed to get the player turn index and once the number is higher than the max number of players reduces it back to player controller 0 however the code does not go back to the beginning but I am not sure why that is the case I feel like I am missing something simple but perhaps I need something else?
it could be the old 0 based index meaning you probably need MaxPlayers-1