Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- updated 30-09-2014
- randomly chooses a map for the next round
- replace num with how many maps you have
- replace default-map with your default map's name and map1 etc with each map's name
- programmed by NewtPewt
- ]]--
- num =
- main = "first-map"
- maps = {"map1", "map2", "map3", "map4", "map5", "first-map"}
- time = 60
- function change(0
- m = math.random(1, num)
- t = game.lighting:findfirstchild(maps[m]):clone()
- t.parent = workspace
- ms = instance.new("message", workspace)
- ms.text = game.lighting:findfirstchild(maps[m]).name.. " has been chosen."
- wait(5)
- ms:remove()
- end
- function mainit()
- game.workspace[main]:remove(0
- end
- wait(time)
- mainit()
- while true do
- wait()
- change()
- wait(time)
- t:remove()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement