Hello,
There is a similar question HERE. Perhaps your answer could be in there as well.
What you would need to do:
Put all the maps into Lighting/ServerStorage
Put all the maps into a table, use math.random, and then load it into Workspace.
A script if you want it:
maps = {}
function LoadMaps()
for i,v in pairs(game.Lighting:GetChildren()) do
if string.lower(string.sub(v,1,3)) == "map" then
table.insert(maps, v.Name)
end
end
end
LoadMaps()
function SelectMap()
local n = math.random(1,#maps)
local map = game.Lighting:FindFirstChild(maps[n])
local newmap = map:Clone()
newmap.Parent = game.Workspace
end
SelectMap()
1 comment
You need to title your question appropriately. "I know parts of it" does not tell us anything about what you want to know about, and it isn't even a question.