I can see that Player might be null so since it will return an optional you need to wrap it in a failure context, that is why you have the red squiggle. perhaps try
if(Player := AllPlayers[Index]):
DifferentClass.ChangeClass[Player]
I can see that Player might be null so since it will return an optional you need to wrap it in a failure context, that is why you have the red squiggle. perhaps try
if(Player := AllPlayers[Index]):
DifferentClass.ChangeClass[Player]