Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2014
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. wait()
  2. local plrs = game.Players:GetChildren()
  3. local gTime = game.Workspace.GTime.Value
  4.  
  5. local game = function()
  6.     for aa, a in pairs(plrs) do
  7.         if not a.PlayerGui:FindFirstChild("TimerGui") then
  8.             game.Lighting.TimerGui:Clone().Parent = a.PlayerGui
  9.         end
  10.         if not a.Character:FindFirstChild("Alive") then
  11.             local alive = Instance.new("BoolValue", a.Character)
  12.             alive.Name = "Alive"
  13.         end
  14.     end
  15.     --map generation. ples help me
  16.     print("generating map")
  17.     function generate()
  18.         local players = game.Players:GetChildren()
  19.         local x = 0
  20.         local y = 0
  21.         local mapBlock = game.ReplicatedStorage.SpleefBlock
  22.        
  23.         for var = 1, #players do
  24.            
  25.        
  26.     end
  27.    
  28.     print("timer added")
  29.     game.Workspace.GTime.Value = 120
  30.     print("gametime set")
  31.     local countDown = function()
  32.         for i = 1, gTime do
  33.             gTime = gTime - 1
  34.             wait(1)
  35.         end
  36.     end
  37.    
  38.     countDown()
  39.     print("countdown started")
  40. end
  41.  
  42. while true do
  43.     for normgame = 1, 3 do
  44.         game()
  45.         wait()
  46.     end
  47.     game() -- to be special mode or a different gamemode
  48.     wait(15)
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement