Riffy29
|
  |
| Joined: 10 Jan 2010 |
| Total Posts: 2562 |
|
| |
|
ajmhm1111
|
  |
| Joined: 22 Jun 2013 |
| Total Posts: 164 |
|
|
| 21 Apr 2014 11:16 AM |
Hello,
print(_VERSION) -->Lua 5.1
Yep
--ajmhm1111 |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2014 11:29 AM |
I wish ROBLOX would update to 5.2..... 5.2 has the new 'goto' function, which is really helpful. For example:
::information:: print("My name is ForeverDev!") print("I joined ROBLOX in 2008!")
goto information <--goes to the ::information:: line |
|
|
| Report Abuse |
|
|
Cogitate
|
  |
| Joined: 04 Jun 2011 |
| Total Posts: 14087 |
|
| |
|
Kingmouli
|
  |
| Joined: 28 Sep 2012 |
| Total Posts: 1292 |
|
|
| 21 Apr 2014 11:31 AM |
| What will it do when it'll go to the ::information:: line? Will it just repeat? Why not a while loop |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2014 11:33 AM |
@King
goto is good for repeating things without using functions. You can repeat lines easily even when you don't want to put those lines in a function. |
|
|
| Report Abuse |
|
|
Kingmouli
|
  |
| Joined: 28 Sep 2012 |
| Total Posts: 1292 |
|
|
| 21 Apr 2014 11:40 AM |
So..
::info:: print("Lol") goto ::info::
..will print Lol, read the goto line, go back to ::info::, print Lol, read the goto line, go back to ::info::...
In what way will it be better than a while loop? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|