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 11 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 11 years ago
1--intermission code
2local h = Instance.new("Hint",game.Workspace)
3local maps = game.ServerStorage:FindFirstChild("Maps"):GetChildren() --Put all the maps into one model
4local map = maps[math.random(1,#maps)]
5map:Clone().Parent = game.Workspace
6h.Text = "The map is "..map.Name.."!"
7wait(2)
8h.Text = ""
Ad

Answer this question