for _, players in pairs(game.Players:GetPlayers()) do
local p1 = players[1] -- ERROR HERE
local p2 = players[2]
if p1.Parent and p2.Parent then
statustag.Value = p1.Name .. " vs. " .. p2.Name
Instance.new("StringValue", script.Dueling).Name = p1.Name
Instance.new("StringValue", script.Dueling).Name = p2.Name
p1:MoveTo(arena:WaitForChild("Spawn1").Position)
p2:MoveTo(arena:WaitForChild("Spawn2").Position)
end
end
Output says 1 isn't part of players. The point of this script is to get all players in the servers, pick 2 of them and teleport them to the 'Spawns'. Anyone help?

1 comment
doesnt work and is kind of confusing..