areas = {Vector3.new(x, y, z), Vector3.new(x, y, z),Vector3.new(x, y, z)}--and so on, put the vectors of where to spawn
py = {}
game.Players.PlayerAdded:connect(function(player)
for i = 1, 8 do
if py[i] == nil then
py[i] = player
player.CharacterAdded:connect(function(character)
repeat wait() until character
character.Torso.CFrame = CFrame.new(areas[i]) or CFrame.new(0, 100000, 0)--in case there are more players than areas
end)
repeat wait() until player.Parent~=game.Players
py[i] = nil
break
end
end
end) |