Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 27 Sep 2014 11:57 AM |
But I seriously can't find out.
I want a TextLabel's text be the value of an IntValue inside the TextLabel. How do I make it like that? I don't need scripting to do this.. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 27 Sep 2014 11:59 AM |
| I just try to get a GUI that has an IntValue in it and that the GUI says the value of it.. |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 27 Sep 2014 11:59 AM |
um
you need a script for it |
|
|
| Report Abuse |
|
|
Bobobob12
|
  |
| Joined: 23 Jan 2008 |
| Total Posts: 5350 |
|
|
| 27 Sep 2014 11:59 AM |
you need scripting to update it, actually
put this in the text label
local parent = script.Parent; local int = parent.IntValue;
int.Changed:connect(function(v) parent.Text = v; end); |
|
|
| Report Abuse |
|
|
lillil
|
  |
| Joined: 02 Aug 2006 |
| Total Posts: 2168 |
|
|
| 27 Sep 2014 12:00 PM |
Do you want it to always update?
Well.. here is the way to do it if you do:
game:GetService('RunService').Stepped:connect(function() TextLabel.Text=tostring(TextLabel.IntValue.Value) end) |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 27 Sep 2014 12:02 PM |
| Oh, I didn't know we had to script to do it..I thought you needed to do some studio stuff. I could script it though lol. Thanks guys, appreciate the answers. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 27 Sep 2014 12:05 PM |
script.Parent.Integer.Changed:connect(function(v) script.Parent.Text = v end)
Integer is the name of the intvalue, do I need to say Integer.Value or just Integer? |
|
|
| Report Abuse |
|
|
Vulnerite
|
  |
| Joined: 05 Nov 2007 |
| Total Posts: 11492 |
|
|
| 27 Sep 2014 12:10 PM |
"game:GetService('RunService').Stepped:connect(function() TextLabel.Text=tostring(TextLabel.IntValue.Value) end)"
No...no. Use Changed.
@fedora script.Parent.Integer.Changed:connect(function()
end)
not script.Parent.Integer.Value
vulnerite AKA keith | tons of deleted accounts | i do stuff |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 27 Sep 2014 12:13 PM |
| Nothing on the textbox shows. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 27 Sep 2014 12:17 PM |
Doesen't work.
script.Parent.Integer.Changed:connect(function(v) script.Parent.Text = v.Value end) |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|