musugas

Touch the sky

Dec 2nd, 2015
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. local timeForFly = 10
  2. local users = 0
  3.  
  4. function outputMsg(txt,to)
  5.     ui.addTextArea(1000,"<p align='center'>"..txt,to,0, 380,800,20,0x1,0x1,0.9,true)
  6. end
  7.  
  8. i = 0
  9. tablu = {-25,-50,-75,-100,-125,-150,-175,-180,-200,60}
  10.  
  11. function eventLoop()
  12.     timeForFly = timeForFly-0.5
  13.     outputMsg("<p align='center'><J>You will touch the sky in <V>"..math.floor(timeForFly).."<J> seconds!")
  14.         if timeForFly <= 0 then
  15.             if i <= 10 then
  16.                 i = i + 1
  17.             else
  18.                 i = 0
  19.             end
  20.             for name, player in pairs(tfm.get.room.playerList) do
  21.                 tfm.exec.movePlayer(name, nil,nil, false, 0, tablu[i], false)
  22.             end        
  23.         timeForFly = 10    
  24.     end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment