function minigameModule:chooseMap()
local chosenMap = mapsStorage[#mapsStorage]:Clone()
if findFirstChild(chosenMap, "Spawns") then
chosenMap.Parent = workspace
chosenMap:MakeJoints()
self.currentMap = chosenMap
return chosenMap
end
end
COMMUNITY QUESTION
How do I make make maps random?
1 answer
You need to use ChosenMap = math.random(1,#mapsStorage) So bassicly if that did not work just use math.random.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
I would put your functions into an array and then use math.random to pick a random item from the table.