play = game.Players:GetChildren()
for i = 1,#play do
if p[i] ~= nil then
if play[i].TeamColor == game.Teams.Runners.TeamColor then
char = play[i].Character
if char ~= nil then
torso = char:findFirstChild("Torso")
if torso ~= nil then
torso.CFrame = game.Workspace.RunnerSpawn.CFrame + Vector3.new(math.random(-6, 6), 0, math.random(-6, 6))
wait(0.025)
end
end
When this script is fired and their are more than 2 people on the Runners team, only 1 one of them are teleported. I am trying to figure out why it won't teleport more than 1 people to the Spawn. Can anyone help me?

6 comments
What is p[i]? You don't have it defined anywhere.
p[i] is shortcut for "play[i]"
Even if I added play[i], the people still won't teleport to the RunnerSpawn.
You can't do p[i] unless you define p somewhere. Since you only defined play, p is nil. You problem also could be that the script runs as soon as the game starts, so therefore some players might not be loaded yet.
After everyone loads in and the 2nd time comes around, it still won't teleport all the players, even if I put play[i].
Oh I see the problem now. It was hard to tell with it not tabbed correctly, but you don't have nearly enough ends. You have 2, you need 5.