Alright so I've seen alot of people who can get a random map in their games, and print the name of this random map, and clone this random map into workspace. First how do you get the random map? Second, how do you select it? Third how would you be able to name it a variable so you could;
print("Map is "..MapName.."!")
Any help with this please, I'm a beginner at scripting.
local MapsLocation = game.Lighting:WaitForChild('Maps') -- or anything lol local maps = {} for _,v in pairs(MapsLocation:GetChildren()) do table.insert(maps, v.Name) end --Run ur script local selectMap = maps[math.random(1, #maps)] print('Map selected: ' .. selectMap)
Closed as Not Constructive by Perci1 and M39a9am3R
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?