Slowmice

Teleport mouse [LUA]

Sep 30th, 2013
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. -- Created Flyer
  2. -- Thanks for the script :3
  3. userList = {}
  4. tfm.exec.newGame(0)
  5. for pName, player in pairs(tfm.get.room.playerList) do
  6.     system.bindMouse(pName, true)
  7. end
  8. function eventMouse(playerName, xPosition, yPosition)
  9.     tfm.exec.movePlayer(playerName, xPosition, yPosition, false, 0, 0, false)
  10. end
  11. function eventPlayerDied(playerName)
  12.     tfm.exec.respawnPlayer(playerName)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment