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: Why won't this work?

Previous Thread :: Next Thread 
Fedorakid is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
27 Sep 2014 01:44 PM
Why
Report Abuse
BruceAB12 is not online. 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 is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
27 Sep 2014 02:49 PM
There is literally no point switching, bump.
Report Abuse
BruceAB12 is not online. 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 is not online. 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
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
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 is not online. 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 is not online. 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
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