View difference between Paste ID: mAd1Fd2u and GhKyVERY
SHOW: | | - or go back to the newest paste.
1
-- tłumaczenie Pl: Theqxd
2
-- Insert your victim's name (person who you would like to move) here without removing the quotation marks.
3-
doll= "nick lalki"
3+
doll= "Neftii"
4
5
-- Insert YOUR name here without removing the quotation marks.
6-
god = "nick kierującego"
6+
god = "Hungrydolph"
7
-- That's it! Done! You can now run the script and troll people!
8
9
------------------------------------------------------------------------------------------------------
10
------------------------------------------------------------------------------------------------------
11
------------------------------------------------------------------------------------------------------
12
----NIE edytować poniższego kodu,chyba że jesteś programistą,w przeciwnym razie prawdopodobnie nie będzie on działać.------
13
------------------------------------------------------------------------------------------------------
14
------------------------------------------------------------------------------------------------------
15
------------------------------------------------------------------------------------------------------
16
17
-- Binding the keyboard for god(you)
18
-- 73 is I, the key for Up.
19
-- 75 is K, the key for Down
20
-- 74 is J, the key for Left.
21
-- 76 is L, the key for Right.
22
23
for name in pairs(tfm.get.room.playerList) do
24
-- Instead of binding each key seperately, we put them all in a group.
25
	for keys, k in pairs({73, 74, 75, 76}) do
26
--And now the keys are binded!
27
		tfm.exec.bindKeyboard(god, k, true, true)
28
	end
29
end
30
 
31
-- Listening for keyboard events.
32
-- You'll notice that move values are different because it makes the doll easier to control.
33
34
function eventKeyboard(god, key, down, x, y)
35
	if key == 73 then
36
--Moves the player Up by 50 pixels
37
		tfm.exec.movePlayer(doll, 0, 0, true, 0, -50, false)
38
	elseif key == 75 then
39
-- Moves the player Down by 40pixels
40
		tfm.exec.movePlayer(doll, 0, 0, true, 0, 40, false)
41
	elseif key == 74 then
42
-- Moves the player Left by 40 pixels
43
		tfm.exec.movePlayer(doll, 0, 0, true, -40, 0, false)                
44
	elseif key == 76 then 
45
-- Moves the player Right by 40 pixels
46
		tfm.exec.movePlayer(doll, 0, 0, true, 40, 0, false)                       
47
	end
48
end
49
50
-- Prints out you your doll only to you.
51
52
print("<font color='#FFFF00'>"..doll.."<font color='#FFFF00'> is now your doll!")