PL TP LUA MODIFICED ENG :D !

By informkilioooo on Apr 30, 2016

-- Skrypt nie jest mój .
-- Użyj I , J , K , L do kontroli ! Oraz H do mocy specjalnej i O do zabicia i zrespienia .
-- Insert your victim's name (person who you would like to move) here without removing the quotation marks.
doll="Informkilioo"
-- Insert YOUR name here without removing the quotation marks.
god = "Informkilioo"
-- That's it! You can now run the script and troll people!

-- Editing the following code is not advised.

-- Binding the keyboard for god(you)
-- 73 is I, the key for Up.
-- 75 is K, the key for Down
-- 74 is J, the key for Left.
-- 76 is L, the key for Right.
-- 72 is H, the key for WTF.
-- 79 is O, the key for Respawn

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({72, 73, 74, 75, 76, 79}) 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 == 73 then
--Moves the player Up by 50 pixels
tfm.exec.movePlayer(doll, 0, 0, true, 0, -50, false)
elseif key == 75 then
-- Moves the player Down by 40 pixels
tfm.exec.movePlayer(doll, 0, 0, true, 0, 40, false)
elseif key == 74 then
-- Moves the player Left by 40 pixels
tfm.exec.movePlayer(doll, 0, 0, true, -40, 0, false)
elseif key == 76 then
-- Moves the player Right by 40 pixels
tfm.exec.movePlayer(doll, 0, 0, true, 40, 0, false)
elseif key == 72 then
-- WTF MODE
tfm.exec.movePlayer(doll, 0, 10, true, -1000000, 10000000, true)
elseif key == 79 then
tfm.exec.killPlayer(doll)
tfm.exec.respawnPlayer(doll)
end
end
-- Prints out your doll's name only to you.

print(""..doll.." is now your doll!")

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.