Advertisement
Dudugz-Contistente

Untitled

Sep 23rd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. ids={0,1,9}
  2. particles={}
  3.  
  4. function eventLoop()
  5. table.foreach(tfm.get.room.playerList,function(k,v) if not v.isDead then table.insert(particles,{id=ids[math.random(#ids)],x=v.x,y=v.y,time=os.time()}) end end)
  6. table.foreach(particles,function(_,v) tfm.exec.displayParticle (v.id, v.x+math.random(-3,3), v.y+20) if v.time < os.time()-1000 then table.remove(particles,_) end end)
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement