Tribul কিMewniপু

Niconiii

Little Mouse
#27
Pentru un Cod Excelent de a Controla alti jucatori poti folosi acest script :

-- Insert your victim's name (person who you would like to move) here without removing the quotation marks.
doll = "Numele jucatorului Controlat"

-- Insert YOUR name here without removing the quotation marks.
god = "Numele celui ce controleaza jucatorul"
-- 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.

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({73, 74, 75, 76}) 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)
end
end

-- Prints out your doll's name only to you
 
Top
"Dev-TR" theme by Soulzone