1 | for i = 1 , # players do |
2 | players [ i ] .Character:MoveTo(Vector 3. new(- 53.723 , 346.569 , 91.323 )) |
That will make the players spawn in a certain place. If I add more coordinates will they be able to spawn in a different place, because I don't want everyone spawning at the same spawn. Its a survival game so it needs to all be spread out. Thanks...
use math.random()
so:
1 | for i = 1 , # players do |
2 | players [ i ] .Character:MoveTo(Vector 3. new(math.random(- 53.723 ,- 40 ), math.random( 300 , 346.569 ), math.random( 80 , 91.323 ))) |
It will move you into the area between the two numbers.