spawns = gameChosenClone.Spawns for i,v in pairs(game.Players:GetPlayers()) do name = v.Name check = workspace:FindFirstChild(name) if check then checkHumanoid = check:FindFirstChild("Humanoid") if checkHumanoid then check:MoveTo(spawns[i].Position)
The error reads line 25, 1 is not a valid member of model. I understand whats wrong, but how should I fix it? Would this work?
spawns = gameChosenClone.Spawns for i,v in pairs(game.Players:GetPlayers()) do name = v.Name check = workspace:FindFirstChild(name) if check then checkHumanoid = check:FindFirstChild("Humanoid") if checkHumanoid then game.Players:MoveTo(spawns[i].Position)