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

How do you have a random map changer on games?

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago
--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 = ""
Ad

Answer this question