Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 27 Sep 2014 12:38 PM |
script.Parent.Integer.Changed:connect(function(v) script.Parent.Text = v.Value end)
Parent is a TextBox inside ScreenGui inside StarterGui, I have a value inside the TextBox aswell, IntValue and it's name is "Integer", I want the text of the textbox to ALWAYS be the same as the value of the IntValue, I have no text on the textbox because the script should put in the text right?
Idk what's wrong.
P.S Yes I did post this on a new thread because this a new topic and decided to make a new. |
|
|
| Report Abuse |
|
|
bob10110
|
  |
| Joined: 09 Dec 2007 |
| Total Posts: 679 |
|
|
| 27 Sep 2014 12:54 PM |
I'm fairly sure that Changed passes in (as the argument, in this case v) the actual IntValue.Value. Basically, make this change and let me know if it works:
script.Parent.Integer.Changed:connect(function(v) script.Parent.Text = v --Note the change from v.Value end) |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 27 Sep 2014 01:39 PM |
| That was my script version 1, I tested that and didn't work. |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
|
| 27 Sep 2014 01:42 PM |
| Change it from an integervalue to a numbervalue. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
|
| 27 Sep 2014 01:50 PM |
"Integers are used when you need a number with no decimal place or it doesn't make sense to have a decimal. Because integers are whole numbers, there are no integers between 1 and 2."
*I'm assuming your value is a double* |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 27 Sep 2014 02:49 PM |
| There is literally no point switching, bump. |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
|
| 27 Sep 2014 03:21 PM |
| Your stubbornness is causing the script to malfunction... |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 27 Sep 2014 03:29 PM |
Please stop posting.
Your talking is making my ears malfunction.
It doesen't matter what value is, actually I can use any value, it should still be on the text. Bump |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2014 03:31 PM |
when i have to do something like this, this is what i do:
while wait() do script.Parent.Text = script.Parent.Integer.Value end |
|
|
| Report Abuse |
|
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
|
| 27 Sep 2014 03:31 PM |
I mean idk: I think this will fix it. I am not sure
script.Parent.Integer.Changed:connect(function(v) script.Parent.Text = (v.Value) --The value is a number but the Text is a string so... I think this will fix it? end) |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
|
| 27 Sep 2014 03:38 PM |
| I don't recall SAYING a word... Okay then, help yourself. Have a great life being deaf... Best wishes, Bruce :) |
|
|
| Report Abuse |
|
|