how to make a random map generator in roblox 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