In a game I am working on, I want 2 players to be selected. These 2 players will be chosen from an automatically assigned "spectators" team and placed into opposite teams of "player1" and "player2". Basically a 1v1 match. To sum up, I need help making a script that can randomly choose 2 players from a spectators team, and create a 1v1 match. I also am trying to make sure that: ** a player can't be chosen twice** each player will be teleported to their team corresponding side
I hope I am not asking for too much assistance, but I am clueless. Thanks for reading and I hope you can help!
(This is something I've wrote so far. It's not close to done just showing where I'm going)
local player = game.Players.LocalPlayer
local users = game.Players:GetChildren()
local function choosePlayers()
local users = game.Players:GetChildren()
local selectUsers = math.random(1, #users)
end
while true do
wait(3)
choosePlayers()
end

2 comments
First off, don't define users twice, and use :GetPlayers(). Make a loop that selects a new player using the same way of choosing the first player and check if that random player is the same as the first one. Teleporting is simple, use :MoveTo() or move their HumanoidRootPart.
When reading my answer, please hover your mouse over the top write of the code and click "View Source", as the code looks very sloppy with the size constraint of the website.