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: Tiny problem easy fix?

Previous Thread :: Next Thread 
cade2000 is not online. 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 is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
12 Aug 2014 12:25 AM
should work

"---"

should not cause any problems
Report Abuse
ChaosEspeon is not online. ChaosEspeon
Joined: 02 Jan 2009
Total Posts: 4578
12 Aug 2014 12:25 AM
Give the output error?
Report Abuse
cade2000 is not online. 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 is online. 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 is not online. 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 is not online. 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 is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
12 Aug 2014 12:29 AM
lol
Report Abuse
lordsheen is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. lordsheen
Joined: 24 Oct 2008
Total Posts: 608
12 Aug 2014 12:37 AM
script.Parent.Text = "-".."-".."-"

~~lordsheen~~
Report Abuse
cade2000 is not online. 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 is not online. 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 is not online. 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
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