generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Is there a way for you to skip the

Previous Thread :: Next Thread 
peaspod is not online. 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 is not online. 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 is not online. jewelycat
Joined: 10 Sep 2008
Total Posts: 17345
05 Nov 2012 02:26 PM
Need an example .-.
Report Abuse
OBF is not online. 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
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
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 is not online. 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 is not online. 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 is not online. 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
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
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
TheGamer101 is not online. TheGamer101
Joined: 14 Feb 2009
Total Posts: 11943
05 Nov 2012 02:58 PM
The newest version of lua does have Goto however the version used on roblox doesn't.
Report Abuse
TehChikenHater is not online. TehChikenHater
Joined: 11 Jun 2012
Total Posts: 497
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
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
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
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
05 Nov 2012 05:00 PM
As Chikin said, goto is bad practice. Use functions and control flow instead.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
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
TehChikenHater is not online. TehChikenHater
Joined: 11 Jun 2012
Total Posts: 497
05 Nov 2012 05:02 PM
^
First person i've seen to get that close to spelling my name right. :D
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
05 Nov 2012 05:03 PM
Chiken, there I win, XD.

print(string.char(169).."easelessSoul".."|S"..string.char(169).."ripting Helper")
Report Abuse
TehChikenHater is not online. TehChikenHater
Joined: 11 Jun 2012
Total Posts: 497
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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
05 Nov 2012 05:08 PM
Imma call you Ticken! :3.

print(string.char(169).."easelessSoul".."|S"..string.char(169).."ripting Helper")
Report Abuse
TehChikenHater is not online. TehChikenHater
Joined: 11 Jun 2012
Total Posts: 497
05 Nov 2012 05:10 PM
Dangit...
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
05 Nov 2012 09:40 PM
I even backed my browser to double check your name ....
How very sad.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image