Roblox studio, map choosing code example
Example: Random Map in roblox
function module.SelectChapter()
local chapters = game.ReplicatedStorage.Chapters:GetChildren() -- Table of all map models
local chosenChapter = chapters[math.random(1,#chapters)]
return chosenChapter
end