| |
| 0 | ||
Overjoy06 a dit : untested, not sure if this is what you mean 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 52 53 54 local red, blue = {}, {} |
| « Consul » 1531918140000
| 0 | ||
| Script that print()'s mouse cursor's coordinates if "E" is pressed. |
| « Sénateur » 1531919580000
| 0 | ||
Syrius a dit : You can't get the current coordinate, only when the player clicks |
| « Consul » 1531981560000
| 0 | ||
| Okay, can then instead that can be done with shift+click? (or if that can't be done then click) |
| 0 | ||
Syrius 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 22 23 24 25 26 27 local SHIFT_KEY = 16 |
| « Citoyen » 1532090640000
| 0 | ||
| How can i disable the vampires from shooting arrows The code i used : 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 local arrows = {} |
| 0 | ||
Overjoy06 a dit : this should do the trick 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 local arrows = {} |
| « Citoyen » 1532169720000
| 0 | ||
| But the textarea is still visible to the vampires |
| 0 | ||
Overjoy06 a dit : if this doesn't work, please provide the whole code that you're working with 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 local arrows = {} |
| « Citoyen » 1532173320000
| 0 | ||
| In unotfm theres a card when you play it, it will show a emote and you have to click it or you will get cards But what if someone (by someone i meant a RandomPlayer) click a TextArea that says "Dance" when the person clicked it the other mices have to dance if they dont they get killed. Also is there a code that when you type !win you win Dernière modification le 1532173380000 |
| « Censeur » 1532183100000
| 0 | ||
| I need a script that will allow me to spawn a ground and change it size. |
| « Consul » 1532250000000
| 0 | ||
| Script that determines the last one standing (need it for survival challenge) and executes a function for winner. |
| « Sénateur » 1532266500000
| 0 | ||
Syrius a dit : Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 local winnerFunction = function(winner) Dernière modification le 1532266680000 |
| « Consul » 1532336760000
| 0 | ||
| What's the syntax for table parameters? If I have table SETUP = {flymode=false,challengemode=default,challengersonly=true} then how do I make a certain section of the code ran only if challengemode=survival? I tried if SETUP.challengemode=survival then (function here) end - but that doesn't work: if says that it expects then, but I already have it. |
| « Consul » 1532342160000
| 0 | ||
Bolodefchoco a dit : Also, the script certainly does something, but after that it enters infinite loop, crashing the script if ..winner.. is used in print or textarea. Using it in playervicory or givecheese results in major "Argument error" spam. |
| « Citoyen » 1532349240000
| 0 | ||
| Not tested, but should work. Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 function winnerFunction(winner) |
| « Citoyen » 1532349420000
| 0 | ||
| Edit: Sorry for the double post. my bad. Syrius a dit : Not sure if that's what you want: Code Lua 1 2 3 if SETUP.challengemode == "survival" then The "then expected" error you got was because you did "if a = b then". To compare values you need to use "if a == b then". Dernière modification le 1532349540000 |
| « Consul » 1532352480000
| 0 | ||
| Oh, okay. |
| « Sénateur » 1532355660000
| 0 | ||
Syrius a dit : I wrote the winner system only, you should put a new game or something else, depending on what your game does. If you are use to do a value attribution in an if, just like in C# Code CS 1 2 boolean a = false, b = true; Code Lua 1 2 3 local a, b = false, true Heniyengui a dit : It would still loop Dernière modification le 1532355720000 |
| « Consul » 1532377740000
| 0 | ||
| How to make multiple arguments after command? |