View difference between Paste ID: EhJn8Hcy and N7U0URmN
SHOW: | | - or go back to the newest paste.
1-
--[[
1+
2-
updated 30-09-2014
2+
3-
randomly chooses a map for the next round
3+
4-
replace num with how many maps you have
4+
5-
replace default-map with your default map's name and map1 etc with each map's name
5+
6-
programmed by NewtPewt
6+
7-
]]--
7+
8
	m = math.random(1, num)
9
	t = game.lighting:findfirstchild(maps[m]):clone()
10
	t.parent = workspace
11
	ms = instance.new("message", workspace)
12
	ms.text = game.lighting:findfirstchild(maps[m]).name.. " has been chosen."
13
	wait(5)
14
	ms:remove()
15
end
16
function mainit()
17
	game.workspace[main]:remove(0
18
end
19
wait(time)
20
mainit()
21
while true do
22
	wait()
23
	change()
24
	wait(time)
25
	t:remove()
26
end