Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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