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: PRETTY dumb question

Previous Thread :: Next Thread 
Fedorakid is not online. 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 is not online. 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 is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
27 Sep 2014 11:59 AM
um

you need a script for it
Report Abuse
Bobobob12 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
27 Sep 2014 12:13 PM
It didnt work.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
27 Sep 2014 12:13 PM
Nothing on the textbox shows.
Report Abuse
Fedorakid is not online. 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 is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
27 Sep 2014 12:28 PM
bumperino
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