Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Map Changer Tutorial plz???

Asked by 10 years ago

I want to make a game like ROBLOX battle, except just a regular brickbattle. I have all my maps set up in Lighting, but how would I be able to randomly pick one and change through it every 10 minutes?

1 answer

Log in to vote
0
Answered by 10 years ago

Make a table of the map models in the ServerStorage you want like so:

maps = {
    "Map one",
    "Super awesome donuts"
}

Then whenever you want a new map:

function newMap()
    local map = game.ServerStorage[maps[math.random(1, #maps)]]:Clone();
    map.Parent = game.Workspace;
    map:MoveTo(Vector3.new(0,0,0)); -- Just if you want to position it in a certain spot
end
0
dem super awesome donuts OniiCh_n 410 — 10y
Ad

Answer this question