cade2000
|
  |
| Joined: 09 Aug 2009 |
| Total Posts: 887 |
|
|
| 12 Aug 2014 12:24 AM |
script.Parent.Text = "---"
It breaks for some reason, figure Lua doesn't like -- since it's used for comments.
I tried \-- and \-- and " -- " and alot of other combos. Any help?
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding |
|
|
| Report Abuse |
|
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
|
| 12 Aug 2014 12:25 AM |
should work
"---"
should not cause any problems |
|
|
| Report Abuse |
|
|
| |
|
cade2000
|
  |
| Joined: 09 Aug 2009 |
| Total Posts: 887 |
|
|
| 12 Aug 2014 12:26 AM |
The only reason I'm here is because there is no error.
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding |
|
|
| Report Abuse |
|
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
|
| 12 Aug 2014 12:27 AM |
| well nothing is wrong so obviously the "script.Parent" part is incorrect |
|
|
| Report Abuse |
|
|
lordsheen
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 608 |
|
|
| 12 Aug 2014 12:28 AM |
Try script.Parent.Parent.Text = "---" You might have the instances nested oddly
~~lordsheen~~ |
|
|
| Report Abuse |
|
|
cade2000
|
  |
| Joined: 09 Aug 2009 |
| Total Posts: 887 |
|
|
| 12 Aug 2014 12:28 AM |
After lots of reworkings and even formulas, it must be something to do with roblox GUI's, because no matter what, as long as it happens to have to hyphens it breaks...
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding |
|
|
| Report Abuse |
|
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
| |
|
lordsheen
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 608 |
|
|
| 12 Aug 2014 12:30 AM |
Uncopylock the place so we can see what the problem is...
~~lordsheen~~ |
|
|
| Report Abuse |
|
|
cade2000
|
  |
| Joined: 09 Aug 2009 |
| Total Posts: 887 |
|
|
| 12 Aug 2014 12:31 AM |
Not even joking... e_e I tried ascii characters also btw for a seperate versions of hyphens.
Text boxes don't like ascii either. e_e My life. In a paragraph of useless code.
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding |
|
|
| Report Abuse |
|
|
cade2000
|
  |
| Joined: 09 Aug 2009 |
| Total Posts: 887 |
|
|
| 12 Aug 2014 12:32 AM |
I'm not a new scripter or anything, I was just wondering if I missed something obvious.
It couldn't be an issue to do with something else because if I
do this script.Parent.Text = "-"
it works fine if I add one more hyphen, no error, just stops working. The gui stops working.
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding |
|
|
| Report Abuse |
|
|
lordsheen
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 608 |
|
|
| 12 Aug 2014 12:33 AM |
This is what we call a one-sided conversation.
~~lordsheen~~ |
|
|
| Report Abuse |
|
|
lordsheen
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 608 |
|
|
| 12 Aug 2014 12:33 AM |
LOL DUDE -- ^ That's a comment tag in LUA HahahAHahhaahaha
~~lordsheen~~ |
|
|
| Report Abuse |
|
|
cade2000
|
  |
| Joined: 09 Aug 2009 |
| Total Posts: 887 |
|
|
| 12 Aug 2014 12:33 AM |
xD
That's literally how simple it is. I'm not even joking xD
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding |
|
|
| Report Abuse |
|
|
cade2000
|
  |
| Joined: 09 Aug 2009 |
| Total Posts: 887 |
|
|
| 12 Aug 2014 12:34 AM |
Um, yes. I mentioned that in my very first post. Are you joking?
However it wasn't "commenting" out the rest of the line. It was inside of a string and as I mentioned I tried \-- and /-- to disable it. You do know what that does right. e_e
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding |
|
|
| Report Abuse |
|
|
lordsheen
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 608 |
|
|
| 12 Aug 2014 12:37 AM |
script.Parent.Text = "-".."-".."-"
~~lordsheen~~ |
|
|
| Report Abuse |
|
|
cade2000
|
  |
| Joined: 09 Aug 2009 |
| Total Posts: 887 |
|
|
| 12 Aug 2014 12:40 AM |
Already tried.
I also tried this.
text = "-" script.Parent.Text = "-"..text
and this
script.Parent.Text = "- -"
I actually tried this. script.Parent.Text = "-asdsakdjsalkjdlksajdlknsad-" No matter what you have, if there is 2 hyphens, it breaks.
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding |
|
|
| Report Abuse |
|
|
lordsheen
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 608 |
|
|
| 12 Aug 2014 12:42 AM |
Maybe instead of hyphens you should use uppercase 'Q's so it can be like script.Parent.Text="QQ"
~~lordsheen~~ |
|
|
| Report Abuse |
|
|
cade2000
|
  |
| Joined: 09 Aug 2009 |
| Total Posts: 887 |
|
|
| 12 Aug 2014 12:45 AM |
Maybe instead of hyphens you should use uppercase 'Q's so it can be like script.Parent.Text="QQ" ------------------------------------------------------ I'm proud of you.
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding |
|
|
| Report Abuse |
|
|