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
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 1060 |
|
| |
|
KasakuKun
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 1060 |
|
| |
|
KasakuKun
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 1060 |
|
| |
|
| |
|
|
| 10 Apr 2015 11:00 PM |
| type -- at the beginning of the code |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 10 Apr 2015 11:07 PM |
@loga
you do not need the -- on the end of the long comment, just saying. |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2015 11:07 PM |
| oh, I was not aware of that, thank you |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 10 Apr 2015 11:42 PM |
Use If then statement
then an elseif statement |
|
|
| Report Abuse |
|
|
KasakuKun
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 1060 |
|
| |
|
|
| 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
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 1060 |
|
| |
|
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 |
|
|