|
| 16 May 2014 10:26 AM |
How would I take whatever Text is in, for example, a TextLabel and put that into a variable?
Like if the TextLabel's Text property is "Hello", how would I set that text to a variable?
(And I know I can just make a variable set to a string with the same text as the TextLabel's Text, but what if the Text constantly changes?) |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 16 May 2014 10:29 AM |
Do you mean: local s = Path.To.TextLabel.Text
or do you mean: local s = Path.To.TextLabel.Text Path.To.TextLabel.Changed:connect(function(v) if v == "Text" then s = Path.To.TextLabel.Text end end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 May 2014 10:40 AM |
Huh, I thought of something while waiting.
Is it possible to set the string of a StringValue to the Text property of a TextLabel and vice versa? |
|
|
| Report Abuse |
|
|
|
| 16 May 2014 10:41 AM |
stringval.Value = textlbl.Text textlbl.Text = stringval.Value |
|
|
| Report Abuse |
|
|
|
| 16 May 2014 10:51 AM |
Alright, thanks.
I'll just do that. |
|
|
| Report Abuse |
|
|