for i, player in pairs(game.Players:GetChildren()) do
player.Character.Torso.CFrame = ToLobby + Vector3.new(0, i * 5, 0)
end
This script is supposed to teleport all the players to ToLobby and stack them on top of each other. This usually works except for when somebody dies as soon as this script is run...
When they die, their torso is removed from the game until respawned, and if someone's dead while it's running that part of the script, it breaks and stops the entire script. Can someone help me fix this so it doesn't do that?

2 comments
In the case of using MoveTo, ToLobby must be a Vector3 and not a CFrame.
Going to post this again; don't remove my comment this time? It's better to CFrame the HumanoidRootPart than the Torso; the HumanoidRootPart is more reliable in a sense.