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 » Scripters
Home Search
 

Re: [Q] Ignoring lines of code?

Previous Thread :: Next Thread 
KasakuKun is not online. KasakuKun
Joined: 13 Jun 2011
Total Posts: 1060
10 Apr 2015 10:36 PM
Is there any way or command to target a line of a script, or the script itself, and ignore it?

Thanks for the help.
Report Abuse
KasakuKun is not online. KasakuKun
Joined: 13 Jun 2011
Total Posts: 1060
10 Apr 2015 10:42 PM
bump
Report Abuse
KasakuKun is not online. KasakuKun
Joined: 13 Jun 2011
Total Posts: 1060
10 Apr 2015 10:46 PM
hue bump
Report Abuse
KasakuKun is not online. KasakuKun
Joined: 13 Jun 2011
Total Posts: 1060
10 Apr 2015 10:52 PM
blaze it. 430.

?
Report Abuse
Arceus4321 is not online. Arceus4321
Joined: 15 Jun 2011
Total Posts: 878
10 Apr 2015 11:00 PM
delete it lmao
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
10 Apr 2015 11:00 PM
type -- at the beginning of the code
Report Abuse
logarhythm is not online. logarhythm
Joined: 23 Dec 2008
Total Posts: 10267
10 Apr 2015 11:04 PM
-- comment; will not execute

--[[
multi-line comment;
will not execute
]]--

select the script and check "Disabled"
script.Disabled = true
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
10 Apr 2015 11:07 PM
@loga

you do not need the -- on the end of the long comment, just saying.
Report Abuse
logarhythm is not online. logarhythm
Joined: 23 Dec 2008
Total Posts: 10267
10 Apr 2015 11:07 PM
oh, I was not aware of that, thank you
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
10 Apr 2015 11:12 PM
welcome
Report Abuse
KasakuKun is not online. KasakuKun
Joined: 13 Jun 2011
Total Posts: 1060
10 Apr 2015 11:30 PM
but what i mean is that, if lets say a gui button will teleport you

but you want it so that if the text says a word lets say "YELLOW"

then it won't teleport you

however lets say if it says "GREEN"
then it will

thast what i mean
Report Abuse
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
10 Apr 2015 11:42 PM
Use If then statement

then an elseif statement
Report Abuse
KasakuKun is not online. KasakuKun
Joined: 13 Jun 2011
Total Posts: 1060
10 Apr 2015 11:47 PM
That's a bit vegue.
Report Abuse
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
10 Apr 2015 11:48 PM
http://wiki.roblox.com/index.php?title=In-Depth_Scripting_Guide

Use the else statement instead.
Report Abuse
KasakuKun is not online. KasakuKun
Joined: 13 Jun 2011
Total Posts: 1060
11 Apr 2015 12:01 AM
Thanks, It worked.
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
11 Apr 2015 12:13 AM
Comment it out m8

-- Single line comment

--[[
Multi
line
comment
]]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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