Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = 0
- clock = 0
- t = {}
- for c in pairs(t) do
- print(c)
- end
- function eventChatMessage(nick, txt)
- if txt == "ZA WARUDO!" then
- za_warudo(nick)
- dio = nick
- end
- end
- idd = 0
- function za_warudo(nick)
- idd = 0
- for c in pairs(tfm.get.room.playerList) do
- if c == nick then
- print(c)
- else
- tfm.exec.movePlayer(c,tfm.get.room.playerList[c].x,tfm.get.room.playerList[c].y,false,0,0,true)
- tfm.exec.addPhysicObject(idd, tfm.get.room.playerList[c].x+20, tfm.get.room.playerList[c].y,{type=14, friction=10000})
- idd=idd+1
- t[idd] = idd
- print(idd)
- tfm.exec.addPhysicObject(idd, tfm.get.room.playerList[c].x-20, tfm.get.room.playerList[c].y,{type=14, friction=10000})
- idd=idd+1
- t[idd] = idd
- print(idd)
- tfm.exec.addPhysicObject(idd, tfm.get.room.playerList[c].x, tfm.get.room.playerList[c].y-20,{type=14, friction=10000})
- idd=idd+1
- t[idd] = idd
- print(idd)
- tfm.exec.addPhysicObject(idd, tfm.get.room.playerList[c].x, tfm.get.room.playerList[c].y+20,{type=14, friction=10000})
- idd=idd+1
- t[idd] = idd
- print(idd)
- tfm.exec.movePlayer(c,tfm.get.room.playerList[c].x,tfm.get.room.playerList[c].y,false,0,0,true)
- a = true
- end
- end
- end
- function eventLoop()
- if a == true then
- clock=clock+0.5
- yp = tfm.get.room.playerList[dio].y
- xp = tfm.get.room.playerList[dio].x
- tfm.exec.displayParticle(2, xp+math.random(-30, 30), yp+math.random(-30, 30), 0, 0, 0, 0, nil)
- tfm.exec.displayParticle(2, xp+math.random(-30, 30), yp+math.random(-30, 30), 0, 0, 0, 0, nil)
- tfm.exec.displayParticle(2, xp+math.random(-30, 30), yp+math.random(-30, 30), 0, 0, 0, 0, nil)
- tfm.exec.displayParticle(2, xp+math.random(-30, 30), yp+math.random(-1, 1), 0, 0, 0, 0, nil)
- tfm.exec.displayParticle(2, xp+math.random(-30, 30), yp+math.random(-30, 30), 0, 0, 0, 0, nil)
- tfm.exec.displayParticle(2, xp+math.random(-30, 30), yp+math.random(-30, 30), 0, 0, 0, 0, nil)
- tfm.exec.displayParticle(2, xp+math.random(-30, 30), yp+math.random(-30, 30), 0, 0, 0, 0, nil)
- tfm.exec.displayParticle(11, xp+math.random(-30, 30), yp+math.random(-60, 60), 0, 0, 0, 0, nil)
- tfm.exec.displayParticle(11, xp+math.random(-30, 30), yp+math.random(-1, 1), 0, 0, 0, 0, nil)
- tfm.exec.displayParticle(11, xp+math.random(-30, 30), yp+math.random(-30, 30), 0, 0, 0, 0, nil)
- tfm.exec.displayParticle(11, xp+math.random(-30, 30), yp+math.random(-30, 30), 0, 0, 0, 0, nil)
- tfm.exec.displayParticle(11, xp+math.random(-30, 30), yp+math.random(-30, 30), 0, 0, 0, 0, nil)
- tfm.exec.displayParticle(11, xp+math.random(-30, 30), yp+math.random(-60, 60), 0, 0, 0, 0, nil)
- print(clock)
- if clock == 6 then
- a = false
- clear_g()
- end
- end
- end
- function clear_g()
- for p in pairs(t) do
- tfm.exec.removePhysicObject(p-1)
- print(p)
- end
- t = {}
- clock = 0
- end
Advertisement
Add Comment
Please, Sign In to add comment