Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Coloque o nome da sua vítima (pessoa que vai ser controlada) SEM REMOVER as "aspas".
- doll = "Vítima"
- -- Insira o seu nome SEM REMOVER as "aspas".
- god = "SeuNome"
- -- Prontinho! Agora você pode rodar o script e enganar a pessoa!
- -- Controle sua vítima usando os comandos:
- -- U - Cima
- -- J - Baixo
- -- H - Esquerda
- -- K - Direita
- for name in pairs(tfm.get.room.playerList) do
- -- Instead of binding each key seperately, we put them all in a group.
- for keys, k in pairs({85, 74, 72, 75}) do
- --And now the keys are binded!
- tfm.exec.bindKeyboard(god, k, true, true)
- end
- end
- -- Listening for keyboard events.
- -- You'll notice that move values are different because it makes the doll easier to control.
- function eventKeyboard(god, key, down, x, y)
- if key == 85 then
- --Moves the player Up by 50 pixels
- tfm.exec.movePlayer(doll, 0, 0, true, 0, -50, false)
- elseif key == 74 then
- -- Moves the player Down by 40 pixels
- tfm.exec.movePlayer(doll, 0, 0, true, 0, 40, false)
- elseif key == 72 then
- -- Moves the player Left by 40 pixels
- tfm.exec.movePlayer(doll, 0, 0, true, -40, 0, false)
- elseif key == 75 then
- -- Moves the player Right by 40 pixels
- tfm.exec.movePlayer(doll, 0, 0, true, 40, 0, false)
- end
- end
- -- O nome da sua vítima aparece só para você:
- print("<font color='#FF0000'>"..doll.."<font color='#FFFF'> é agora seu boneco voodo!!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement