local spawns = workspace.Lobby.Spawns game.Players.PlayerAdded:connect(function(plr) for i,v in pairs(spawns:GetChildren()) do plr:MoveTo(CFrame.new(spawns[i].Position)) end end)
It will not move the player to the spawn.
Edited:
You are trying to move their Player you should be moving their Character. Also you probably want to send them to a random spawn not loop through all of them. And you should get the children of the model spawns not the model itself.
local spawns = workspace.Lobby.Spawns:GetChildren() -- Assuming that Spawns is a model with parts in it. game.Players.PlayerAdded:connect(function(player) -- When a new player joins the game do player.CharacterAdded:connect(function(character) -- When a players character loads do i = math.random(#spawns) -- Pick a Spawn X = spawns[i].Position.X Y = spawns[i].Position.Y Z = spawns[i].Position>Z character:MoveTo(Vector3.new(X, Y+4, Z)) -- Move the players character to the spawn picked end) end)
Hope this works!
local spawns = workspace.Lobby.Spawns:GetChildren() game.Players.PlayerAdded:connect(function(plr) repeat wait() until plr.Character local Torso = plr.Character:FindFirstChild('Torso') if Torso then local SpawnChoosen = math.random(1, #spawns) Torso.CFrame = SpawnChoosen.CFrame end end)