Advertisement
Informkilioo

LUA

May 2nd, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. -- Insert your victim's name (person who you would like to move) here without removing the quotation marks.
  2. doll="Julcia1709"
  3. -- u zmianna lalki w wampira
  4. -- Skrypt nie jest mój !
  5. -- Użyj I , J , K , L do kontroli ! Oraz H do mocy specjalnej i O do zabicia i zrespienia
  6. -- Insert YOUR name here without removing the quotation marks.
  7. god = "Informkilioo"
  8. -- That's it! You can now run the script and troll people!
  9.  
  10. -- Editing the following code is not advised.
  11.  
  12. -- Binding the keyboard for god(you)
  13. -- 73 is I, the key for Up.
  14. -- 75 is K, the key for Down
  15. -- 74 is J, the key for Left.
  16. -- 76 is L, the key for Right.
  17. -- 72 is H, the key for WTF.
  18. -- 79 is O, the key for Respawn
  19. -- 85 is U, the key for Vampire
  20.  
  21. for name in pairs(tfm.get.room.playerList) do
  22. -- Instead of binding each key seperately, we put them all in a group.
  23. for keysr, k in pairs({72, 73, 74, 75, 76, 79, 85}) do
  24. --And now the keys are binded!
  25. tfm.exec.bindKeyboard(god, k, true, true)
  26. end
  27. end
  28.  
  29. -- Listening for keyboard events.
  30. -- You'll notice that move values are different because it makes the doll easier to control.
  31.  
  32. function eventKeyboard(god, key, down, x, y)
  33. if key == 73 then
  34. --Moves the player Up by 50 pixels
  35. tfm.exec.movePlayer(doll, 0, 0, true, 0, -50, false)
  36. elseif key == 75 then
  37. -- Moves the player Down by 40 pixels
  38. tfm.exec.movePlayer(doll, 0, 0, true, 0, 40, false)
  39. elseif key == 74 then
  40. -- Moves the player Left by 40 pixels
  41. tfm.exec.movePlayer(doll, 0, 0, true, -40, 0, false)
  42. elseif key == 76 then
  43. -- Moves the player Right by 40 pixels
  44. tfm.exec.movePlayer(doll, 0, 0, true, 40, 0, false)
  45. elseif key == 72 then
  46. -- WTF MODE
  47. tfm.exec.movePlayer(doll, 0, 10, true, -1000000, 10000000, true)
  48. elseif key == 79 then
  49. tfm.exec.killPlayer(doll)
  50. tfm.exec.respawnPlayer(doll)
  51. -- make a vampire
  52. elseif key == 85 then
  53. tfm.exec.setVampirePlayer(doll)
  54. end
  55. end
  56. -- Prints out your doll's name only to you.
  57.  
  58. print("<font color='#FFFF00'>"..doll.."<font color='#FF0F00'> is now your doll!")
  59.  
  60.  
  61. for name,player in pairs(tfm.get.room.playerList) do
  62. system.bindMouse(name, true)
  63. end
  64.  
  65. function eventMouse(name, x, y)
  66. tfm.exec.movePlayer(name, x, y, false, 0, 1, false)
  67. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement