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

How do you have a random map changer on games?

Like when players wait in the lobby and then after a certain amount of time in intermission the map will be assigned and the players will play on that map.

1 answer

--intermission code
local h = Instance.new("Hint",game.Workspace)
local maps = game.ServerStorage:FindFirstChild("Maps"):GetChildren() --Put all the maps into one model
local map = maps[math.random(1,#maps)]
map:Clone().Parent = game.Workspace
h.Text = "The map is "..map.Name.."!"
wait(2)
h.Text = ""

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