I'm building a FPS game and I want to assign only one player to 1 team,and the other 14 to another. Is there any script that will do this
This website is for help debugging any scripts you've already written, or for help understanding a concept. This question is too vague, and does not include your team setup or any other things you have already tried. We will do our best to help when things go wrong, but it seems like you've put little or no effort into trying to do this on your own. Here's what you could try:
1: Get the children of game.Players
2: Use math.random to select a random player
3: Assign the selected player to Team 1
4: Use a for loop to assign all other players to team 2
Closed as Not Constructive by Articulating
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?