88GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1465 |
|
|
| 15 Mar 2015 03:55 PM |
This 1 line o' code will NOT work.
script.Parent.Parent.SelectedModel.Value.Name = script.Parent.NameBox.Text
'SelectedModel' is a fulfilled ObjectValue (It's value isn't nil)
'NameBox' is a TextBox.
No output. The other part works. Ugh |
|
|
| Report Abuse |
|
|
|
| 15 Mar 2015 03:58 PM |
| To get this correct your trying to make SelectedModel = the NameBoxes text? |
|
|
| Report Abuse |
|
|
88GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1465 |
|
| |
|
88GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1465 |
|
|
| 15 Mar 2015 03:59 PM |
| Wait no... I'm trying to change it's value's name to it's text. |
|
|
| Report Abuse |
|
|
|
| 15 Mar 2015 04:00 PM |
Try this
script.Parent.Parent.SelectedModel.Value.Name = tostring(script.Parent.NameBox.Text) |
|
|
| Report Abuse |
|
|
88GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1465 |
|
|
| 15 Mar 2015 04:02 PM |
| The text is already formatted as a string. |
|
|
| Report Abuse |
|
|
|
| 15 Mar 2015 04:04 PM |
@88Gb
hmm Well im not sure what the problem is lol it seems so smimple but the smallest mistakes make a script not work lol good luck with this on buddy im not sure what to do :) |
|
|
| Report Abuse |
|
|
88GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1465 |
|
|
| 15 Mar 2015 04:07 PM |
Lololol I have no idea, it works if I change it's text to a string up front, like this:
Name = "lead"
And it worked e.e |
|
|
| Report Abuse |
|
|
IoIiderp
|
  |
| Joined: 05 Feb 2012 |
| Total Posts: 8613 |
|
| |
|