Advertisement
Bolodefchoco_LUAXML

[Script] Listador de Textos

May 13th, 2016
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. --Creator: Bolodefchoco
  2. --Made in: 30/04/2016
  3. --Last update: 26/05/2016
  4. --[[ Notes:
  5.     Does:
  6.         Cria um listador de textos de timer já determinado.
  7. ]]--
  8.  
  9. local texts = {
  10.     [1] = "text 1",
  11.     [2] = "text 2",
  12. }
  13.  
  14. p,q = 0,0
  15. local timer = coroutine.wrap(function()
  16.     for i = 1,#texts do
  17.         _G.p = i
  18.         ui.addTextArea(0,texts[i],nil,nil,nil,nil,nil,1,1,1,true) -- Opções da textarea
  19.         coroutine.yield()
  20.     end
  21. end)
  22.  
  23. eventLoop=function(currentTime)
  24.     q = q + .5
  25.     if q == 25 --[[ Mude o 25 para a quantidade de segundos que você desejar ]] then
  26.         q = 0
  27.         if p < #texts then timer() else ui.removeTextArea(0,nil) end
  28.     end
  29. end
  30. timer()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement