Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Particle = {3, 30}
- numbers=10
- emote={}
- function eventNewPlayer(name)
- tfm.exec.bindKeyboard(name,32,true,true)
- end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- function eventKeyboard(playerName,key,down,x,y)
- if key==32 then
- if tfm.get.room.playerList[playerName].isFacingRight then
- for i=1,4 do
- if emote[playerName] then
- tfm.exec.displayParticle(emote[playerName], x, y+(i*10), 5, 0.05, 0.05, 0, nil)
- else
- tfm.exec.displayParticle(5, x, y+(i*10), 5, 0.05, 0.05, 0, nil)
- end
- end
- else
- for i=1,4 do
- if emote[playerName] then
- tfm.exec.displayParticle(emote[playerName], x, y+(i*10), -5, 0.05, -0.05, 0, nil)
- else
- tfm.exec.displayParticle(5, x, y+(i*10), -5, 0.05, -0.05, 0, nil)
- end
- end
- end
- end
- end
- function eventChatCommand(playerName, cmd)
- if cmd:sub(0,4) == "part" then
- emote[playerName]=cmd:sub(6)
- end
- end
- function eventLoop()
- for i=1,numbers do
- tfm.exec.displayParticle(math.random(3, 4), math.random(50,100), math.random(20, 250), 1, 0, 0, 0, nil)
- end
- end
- system.disableChatCommandDisplay("part", true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement