Advertisement
Frenkky

Script For Coolpaw (Gabrijelr copyrighted)

Aug 9th, 2014
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 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= "Tunsax"
  3.  
  4. -- Insert YOUR name here without removing the quotation marks.
  5. god = "Coolpaw"
  6. -- That's it! Done! You can now run the script and troll people!
  7.  
  8. ------------------------------------------------------------------------------------------------------
  9. ------------------------------------------------------------------------------------------------------
  10. ------------------------------------------------------------------------------------------------------
  11. -----Do NOT edit the following code unless you're a developer, otherwise it probably won't work.------
  12. ------------------------------------------------------------------------------------------------------
  13. ------------------------------------------------------------------------------------------------------
  14. ------------------------------------------------------------------------------------------------------
  15.  
  16. -- Binding the keyboard for god(you)
  17. -- 73 is I, the key for Up.
  18. -- 75 is K, the key for Down
  19. -- 74 is J, the key for Left.
  20. -- 76 is L, the key for Right.
  21.  
  22. for name in pairs(tfm.get.room.playerList) do
  23. -- Instead of binding each key seperately, we put them all in a group.
  24. for keys, k in pairs({73, 74, 75, 76}) do
  25. --And now the keys are binded!
  26. tfm.exec.bindKeyboard(god, k, true, true)
  27. end
  28. end
  29.  
  30. -- Listening for keyboard events.
  31. -- You'll notice that move values are different because it makes the doll easier to control.
  32.  
  33. function eventKeyboard(god, key, down, x, y)
  34. if key == 73 then
  35. --Moves the player Up by 50 pixels
  36. tfm.exec.movePlayer(doll, 0, 0, true, 0, -50, false)
  37. elseif key == 75 then
  38. -- Moves the player Down by 40pixels
  39. tfm.exec.movePlayer(doll, 0, 0, true, 0, 40, false)
  40. elseif key == 74 then
  41. -- Moves the player Left by 40 pixels
  42. tfm.exec.movePlayer(doll, 0, 0, true, -40, 0, false)
  43. elseif key == 76 then
  44. -- Moves the player Right by 40 pixels
  45. tfm.exec.movePlayer(doll, 0, 0, true, 40, 0, false)
  46. end
  47. end
  48.  
  49. -- Prints out you your doll only to you.
  50.  
  51. print("<font color='#FFFF00'>"..doll.."<font color='#FFFF00'> is now your doll!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement