Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Const
- PW = 5 -- intermission break for players
- wait(1)
- math.randomseed(tick())
- function driver()
- local GM = { -- How do I make this constant?
- "Team death match!"
- ,"Free for all!"
- ,"Vote on the next match!"
- ,"Zombies vs Survivors!"
- }
- local p = GM[ math.random( #GM ) ]
- if p == GM[1] then TDM() end if p == GM[2] then FFA() end if p== GM[3] then VOTE() end if p== GM[4] then ZOMBIES() end
- end
- function TDM()
- print("TDM")
- waitfor(5)
- end
- function FFA()
- print("FFA")
- waitfor(5)
- end
- function VOTE()
- print("VOTE")
- waitfor(5)
- end
- function ZOMBIES()
- print("ZOMBIES")
- waitfor(5)
- end
- function waitfor(t) local a = game.Players:GetChildren()
- repeat
- for i = 1, #a do a[i].PlayerGui.TLG.Frame.Counter.Text = t t = t -1 wait(1) end
- until t < 0 end
- while 1 do
- driver()
- wait(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement