How can you choose which map you want to spawn? I'd like some help on that sort of advanced tech.
COMMUNITY QUESTION
Map decisive picking?
1 answer
You just have some maps in a Model or Instance in Replicated Storage. I guess I can give you a head start on this. I have included some wiki articles in the bottom of this answer that might help.
EDIT: I noticed you wanted to pick a map that you wanted. This is simple as doing the example below.
Don't forget to make sure everything exist!
local Map = game.ReplicatedStorage:FindFirstChild("MAPNAME")
function InsertMap()
local map = Map:Clone()
map.Parent = game.Workspace
end
or you can do a random map as so:
local Maps = game.ReplicatedStorage.Maps:GetChildren() --Make sure you know what this means!
function RandomMap(maps)
local ChosenMap = maps[math.random(1, #maps)]:Clone()
ChosenMap.Parent = game.Workspace
end
RandomMap(Maps)
http://wiki.roblox.com/index.php?title=API:Class/Instance/GetChildren http://wiki.roblox.com/index.php?title=Table http://wiki.roblox.com/index.php?title=Random_numbers
Don't forget to mark this as solved and as the correct answer!
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
:GetChildren() I assume this selects the children of a specific model/script..etc?
Correct.