Could you tell me if this line of script could work and teleport all players to a random map, but not teleport them to different maps in the same round?
local coords1 = {Vector3.new(1,1,1), Vector3.new(1,1,2)} --example
local coords2 = {Vector3.new(2,2,2), Vector3.new(2,2,3)}
local coords3 = {Vector3.new(3,3,3), Vector3.new(3,3,4)}
local map1 = coords1[math.random(#coords1)]
local map2 = coords2[math.random(#coords2)]
local map3 = coords3[math.random(#coords3)]
local randMap = map1,map2,map3[math.random(map1,map2,map3)]
for i,v in pairs(game.Players:GetPlayers()) do
v.Character:MoveTo(randMap)
end
Would that choose a random map and spawn them at random coordinates and all of them go to the same map or not?
If it wouldn't can you tell me how I would make it choose a random map and random coords and spawn players at the same map?

1 comment
randMap is not a position if the object has a property that's called Position or refers to then you will be able to use the :MoveTo() method.