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