Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- or target in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(target,72,true,true)
- end
- eventNewPlayer=function(target)
- tfm.exec.bindKeyboard(target,72,false,true)
- end
- eventKeyboard=function(target,key)
- if key==72 then
- if tfm.get.room.playerList[target].isFacingRight then
- tfm.exec.movePlayer(target,nil,nil,false,14,0,true)
- else
- tfm.exec.movePlayer(target,nil,nil,false,-14,0,true)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement