Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Map Changer Tutorial plz???

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

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

1 comment

0

dem super awesome donuts

This discussion is preserved as it was. New answers, comments, and votes are closed.