| Lua Snippets | 
|  Rolico    « Citoyen »  1479751380000 
 
 |          0        | ||
| x1 script pls? | 
|  Hosual    « Consul »  1479758160000 
 
 |          0        | ||
| Im sorry, can you paste here code for fly for all? function eventNewPlayer(nick) for keys, k in pairs({0,2}) do tfm.exec.bindKeyboard(nick, k, true, true) end end function eventLoop() for nick,player in pairs(tfm.get.room.playerList) do x=tfm.get.room.playerList[nick].x y=tfm.get.room.playerList[nick].y end end for nick,player in pairs(tfm.get.room.playerList) do eventNewPlayer(nick) end function eventKeyboard(nick,key) if key==0 then tfm.exec.movePlayer(nick,0,0,false,-70,0,false) tfm.exec.displayParticle(29,x-5,y,0,0,0,0,nick) tfm.exec.displayParticle(29,x-10,y,0,0,0,0,nick) tfm.exec.displayParticle(29,x-15,y,0,0,0,0,nick) tfm.exec.displayParticle(29,x-20,y,0,0,0,0,nick) tfm.exec.displayParticle(29,x-25,y,0,0,0,0,nick) tfm.exec.displayParticle(29,x-30,y,0,0,0,0,nick) else tfm.exec.displayParticle(29,x+5,y,0,0,0,0,nick) tfm.exec.displayParticle(29,x+10,y,0,0,0,0,nick) tfm.exec.displayParticle(29,x+15,y,0,0,0,0,nick) tfm.exec.displayParticle(29,x+20,y,0,0,0,0,nick) tfm.exec.displayParticle(29,x+25,y,0,0,0,0,nick) tfm.exec.displayParticle(29,x+30,y,0,0,0,0,nick) if key==2 then tfm.exec.movePlayer(nick,0,0,false,70,0,false) end end end and for this admin, i don't want spam all mice in tribe D: for name,player in pairs(tfm.get.room.playerList) do tfm.exec.bindKeyboard(name, 70, true, true) tfm.exec.bindKeyboard(name, 71, true, true) end x = 0 y = 0 function eventKeyboard(name, key, down, x, y) if key == 70 then tfm.exec.movePlayer(name,0,-25,true,0,0,true) tfm.exec.addShamanObject(104, x, y, 0, 0, 0, false) elseif key == 71 then tfm.exec.addShamanObject(104, x, y, 0, 0, 0, true) end end Dernière modification le 1479758640000 | 
|  Sar33aj    « Citoyen »  1488241680000 
 
 |          0        | ||
| Uhhhh... what is lua?? | 
|  Sebafrancuz    « Consul »  1488298920000 
 
 |          0        | ||
|  | 
|  Shamousey    « Consul »  1494124200000 
 
 |          3        | ||
|  I've thrown together a quick script to be able to use a skill upon pressing a key, which may have a cooldown before it can be re-used. This script animates a progress bar so you can see when a skill will be ready to use again. https://gist.github.com/ImLiam/6c55e4b5204be055afb8ba0f43783cf4 | 
|  Laderik  « Censeur »  1494133740000 
 
 |          0        | ||
| Shamousey a dit : I hope to try it soon! Seems smart :' | 
|  Supreme    « Citoyen »  1495921620000 
 
 |          0        | ||
| how can i spawn thing ? when im in fancorp lua ? | 
|  Shafeeeq    « Citoyen »  1499049960000 
 
 |          0        | ||
| i dont understand what this all does someone please help me (or means) | 
|  Honorabilis    « Consul »  1499074800000 
 
 |          0        | ||
| Edited. Dernière modification le 1499074860000 | 
|  Hot_choco    « Citoyen »  1501413540000 
 
 |          0        | ||
| I have a question! Can anyone explain the Team command to me? (Sorry Im so dumb) red={} blue={} function makeTeams() local playerList={} for name,player in pairs(tfm.get.room.playerList) do table.insert(playerList,name) end for i=1,#playerList,1 do local index=math.random(#playerList) local name=playerList[index] if i%2==0 then table.insert(red,name) else table.insert(blue,name) end table.remove(playerList,index) end end | 
|          0        | ||
| Hot_choco a dit : Not sure if this explanation is clear enough. If you want more than 2 teams, a different algorithm will be required !! Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 red = {} | 
|  Eleven 1505066940000 
 
 |  | ||
| [Modéré par Wangan, raison : Please speak English on the EN forums.] | 
|  Ocean_dreamy    « Citoyen »  1515576480000 
 
 |          0        | ||
| thanks but how do you teleport people? is that a thing or its not possible | 
|  Ocean_dreamy    « Citoyen »  1515655680000 
 
 |          0        | ||
| Hello i got a question. is there a teleporting Lua code and pls can you tell me how to spawn in a map | 
|          0        | ||
| Joy06 a dit : Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 local teleporter = "Joy06" | 
|  Ocean_dreamy    « Citoyen »  1516525260000 
 
 |          0        | ||
| Shamousey Can you please help me how to clear objects after the shooting is done Thanks! | 
|  Overjoy06    « Citoyen »  1517017320000 
 
 |          0        | ||
| How do you add a text message then when you click it, it will put to another message called "Walljumping" | 
|  Bolodefchoco    « Sénateur »  1517079360000 
 
 |          0        | ||
| Overjoy06 a dit : Code Lua 1 2 3 4 5 6 7 ui.addTextArea(0, "<a href='event:clicked'>text message</a>", nil, 200, 200) | 
|  Overjoy06    « Citoyen »  1517126760000 
 
 |          0        | ||
| Guys is there a script that there is a text then when you click it, it will spawn a map. Also how do you put messages? like 5 of them. |