Advertisement
Area801

Script The Haunted Doll Transformice (Traduzido)

Jan 13th, 2016
6,264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. -- Coloque o nome da sua vítima (pessoa que vai ser controlada) SEM REMOVER as "aspas".
  2. doll = "Vítima"
  3.  
  4. -- Insira o seu nome SEM REMOVER as "aspas".
  5. god = "SeuNome"
  6. -- Prontinho! Agora você pode rodar o script e enganar a pessoa!
  7.  
  8. -- Controle sua vítima usando os comandos:
  9. -- U - Cima
  10. -- J - Baixo
  11. -- H - Esquerda
  12. -- K - Direita
  13.  
  14. for name in pairs(tfm.get.room.playerList) do
  15. -- Instead of binding each key seperately, we put them all in a group.
  16. for keys, k in pairs({85, 74, 72, 75}) do
  17. --And now the keys are binded!
  18. tfm.exec.bindKeyboard(god, k, true, true)
  19. end
  20. end
  21.  
  22. -- Listening for keyboard events.
  23. -- You'll notice that move values are different because it makes the doll easier to control.
  24.  
  25. function eventKeyboard(god, key, down, x, y)
  26. if key == 85 then
  27. --Moves the player Up by 50 pixels
  28. tfm.exec.movePlayer(doll, 0, 0, true, 0, -50, false)
  29. elseif key == 74 then
  30. -- Moves the player Down by 40 pixels
  31. tfm.exec.movePlayer(doll, 0, 0, true, 0, 40, false)
  32. elseif key == 72 then
  33. -- Moves the player Left by 40 pixels
  34. tfm.exec.movePlayer(doll, 0, 0, true, -40, 0, false)
  35. elseif key == 75 then
  36. -- Moves the player Right by 40 pixels
  37. tfm.exec.movePlayer(doll, 0, 0, true, 40, 0, false)
  38. end
  39. end
  40.  
  41. -- O nome da sua vítima aparece só para você:
  42.  
  43. print("<font color='#FF0000'>"..doll.."<font color='#FFFF'> é agora seu boneco voodo!!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement