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
You need to use ChosenMap = math.random(1,#mapsStorage) So bassicly if that did not work just use math.random.