View difference between Paste ID: ffc8FLp5 and A61NNzgX
SHOW: | | - or go back to the newest paste.
1
-- Insert your victim's name (person who you would like to move) here without removing the quotation marks.
2-
doll = "Sydoline"
2+
doll = "moshi88"
3
4
-- Insert YOUR name here without removing the quotation marks.
5-
god = "Tig"
5+
god = "Imtannerbanner56"
6
-- That's it! You can now run the script and troll people!
7
8
-- Editing the following code is not advised.
9
10
-- Binding the keyboard for god(you)
11
-- 73 is I, the key for Up.
12
-- 75 is K, the key for Down
13
-- 74 is J, the key for Left.
14
-- 76 is L, the key for Right.
15
16
for name in pairs(tfm.get.room.playerList) do
17
-- Instead of binding each key seperately, we put them all in a group.
18
	for keys, k in pairs({73, 74, 75, 76}) do
19
--And now the keys are binded!
20
		tfm.exec.bindKeyboard(god, k, true, true)
21
	end
22
end
23
 
24
-- Listening for keyboard events.
25
-- You'll notice that move values are different because it makes the doll easier to control.
26
27
function eventKeyboard(god, key, down, x, y)
28
	if key == 73 then
29
--Moves the player Up by 50 pixels
30
		tfm.exec.movePlayer(doll, 0, 0, true, 0, -50, false)
31
	elseif key == 75 then
32
-- Moves the player Down by 40 pixels
33
		tfm.exec.movePlayer(doll, 0, 0, true, 0, 40, false)
34
	elseif key == 74 then
35
-- Moves the player Left by 40 pixels
36
		tfm.exec.movePlayer(doll, 0, 0, true, -40, 0, false)                
37
	elseif key == 76 then 
38
-- Moves the player Right by 40 pixels
39
		tfm.exec.movePlayer(doll, 0, 0, true, 40, 0, false)                       
40
	end
41
end
42
43
-- Prints out your doll's name only to you.
44
45
print("<font color='#FFFF00'>"..doll.."<font color='#FFFF00'> is now your doll!")