I’m making a round-based system and I ran into a problem.
I have threeSpawnLocations all connected to the same team, ‘Bright blue’.
I have a script that currently changes all of the players team to ‘Bright blue’ then respawns them using the LoadCharacter() function.
My problem is that after changing the team of the players and respawning them, they all will spawn on the same SpawnLocation when it should be random.
I won’t be providing any code as seeing I am not getting any errors and it’s pretty straight forward.
Change Team
LoadCharacter()
All the players spawn on the same one.
As stated under the ‘Spawning Rules’ section on the SpawnLocations page.
If multiple eligible spawns are available to a Player, a random one will be chosen
I assume all the player’s are spawning at the exact same time. Your problem might possibly have to do with the fact that math.random isn’t truly random. Just as an experiment, try loading the different characters on intervals of 1 second, and see if that makes a difference.