Some players are not being teleported using Verse (teleport device)

Thank for the response lantram

TeleportToTeamSelection is an array of teleporters that I defined at the head of the file.

I use GetPlayspace().GetPlayers() to get all the current players in order to teleport them to where i want, is it ok to use it like that ?

Regarding the += operation, I switched to what Lama suggested to ensure I always find a valid teleporter.

I changed:

set Team_Manage.TeleporterNum += 1

to this:

set Team_Manage.TeleporterNum = Mod[Team_Manage.TeleporterNum + 1, TeamSelectionTeleportersArray.Length]

Is there anything else I should pay attention to?