peaspod
|
  |
| Joined: 29 Sep 2010 |
| Total Posts: 2809 |
|
|
| 05 Nov 2012 02:24 PM |
| Is there a way for you to skip the script to a certain line? |
|
|
| Report Abuse |
|
|
OBF
|
  |
| Joined: 29 Sep 2009 |
| Total Posts: 10709 |
|
|
| 05 Nov 2012 02:25 PM |
| If you make it a condition, yeah. Just use if statements. To be more clear, could you give an example? |
|
|
| Report Abuse |
|
|
jewelycat
|
  |
| Joined: 10 Sep 2008 |
| Total Posts: 17345 |
|
| |
|
OBF
|
  |
| Joined: 29 Sep 2009 |
| Total Posts: 10709 |
|
|
| 05 Nov 2012 02:28 PM |
Jewl, you confuse me.
You say you're a cat, but you have a dog's nose.
x_x |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2012 02:29 PM |
Now I know why jewely looks familiar, he made that famous game
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
peaspod
|
  |
| Joined: 29 Sep 2010 |
| Total Posts: 2809 |
|
|
| 05 Nov 2012 02:32 PM |
So for example.
If i == 5 then -code else GoTo line: 5 --- this is the line I need to know if it can happen in LUA end |
|
|
| Report Abuse |
|
|
OBF
|
  |
| Joined: 29 Sep 2009 |
| Total Posts: 10709 |
|
|
| 05 Nov 2012 02:33 PM |
Lua* if*
Anyways. Just put the line you want under the else.
if i == 5 then print("5") else print("4") end |
|
|
| Report Abuse |
|
|
jewelycat
|
  |
| Joined: 10 Sep 2008 |
| Total Posts: 17345 |
|
|
| 05 Nov 2012 02:37 PM |
| No, you can't with Lua... But you don't really have to. You can get around it pretty easily. |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2012 02:40 PM |
If you are trying to run multiple functions, then use a coroutine.
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2012 02:58 PM |
| The newest version of lua does have Goto however the version used on roblox doesn't. |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2012 03:01 PM |
| The use of GoTo is actually bad practice. Most, commonly used Language (C, C#, C++, Java -I think) do not have a GoTo method. |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2012 04:44 PM |
| You can just paste the code a second time in after the "else", it will work just fine. |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2012 04:59 PM |
Peas, as far as I know, no. Also, it's Lua, not LUA nor lua.
print(string.char(169).."easelessSoul".."|S"..string.char(169).."ripting Helper") |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2012 05:00 PM |
| As Chikin said, goto is bad practice. Use functions and control flow instead. |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2012 05:02 PM |
Whatever AFF says just go with it.
print(string.char(169).."easelessSoul".."|S"..string.char(169).."ripting Helper") |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2012 05:02 PM |
^ First person i've seen to get that close to spelling my name right. :D |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2012 05:03 PM |
Chiken, there I win, XD.
print(string.char(169).."easelessSoul".."|S"..string.char(169).."ripting Helper") |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2012 05:07 PM |
@ceaselesssoul,
Yeah but, you paid attention. Everyone else didn't. I get names like this a lot:
teh TehC Chikin Chicken Cikin Ciken Cheken Chekin
I've gotten all of those before. I smacked the guy who said "Cikin". |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2012 05:08 PM |
Imma call you Ticken! :3.
print(string.char(169).."easelessSoul".."|S"..string.char(169).."ripting Helper") |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Nov 2012 09:40 PM |
I even backed my browser to double check your name .... How very sad. |
|
|
| Report Abuse |
|
|