Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ids={0,1,9}
- particles={}
- function eventLoop()
- 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)
- 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)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement