of     1   

thebigbug
#44597401Saturday, March 26, 2011 3:31 AM GMT

How do I convert a string to a number that can be used in a NumberValue? And when I have multiple textboxes in a frame, when I click on one of them, they all go blank. How can I prevent this?
Durnbo52
#44598097Saturday, March 26, 2011 3:44 AM GMT

For your first question: str = "1876" int = tonumber(str)
thebigbug
#44598260Saturday, March 26, 2011 3:47 AM GMT

Oh, now I feel pretty stupid... xD
thebigbug
#44613284Saturday, March 26, 2011 2:18 PM GMT

Can anyone else answer the 2nd question?
MrNicNac
#44613316Saturday, March 26, 2011 2:19 PM GMT

Second problem, local oldT = script.Parent.Text script.Parent.Changed:connect(function() if script.Parent.Text == "" then script.Parent.Text = oldT end end)
Apocalyps
#44613404Saturday, March 26, 2011 2:21 PM GMT

For the second problem just set the ClearTextOnFocus property of the textbox to false
MrNicNac
#44613442Saturday, March 26, 2011 2:21 PM GMT

"ClearTextOnFocus" Oh, that is useful.
thebigbug
#44623755Saturday, March 26, 2011 5:23 PM GMT

I did do that. But when I set all of the values for each box in a script and then click on one ingame, all of the ones that were created after the one that I click go blank. And when I type in them and press enter, they stay that number even if I click on a box created before it.
thebigbug
#44640916Saturday, March 26, 2011 9:33 PM GMT

Bump

    of     1