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: SIMPLE STRING SCRIPT HELP

Previous Thread :: Next Thread 
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
25 Jul 2011 10:44 PM
one = "1"


function addOne()
p = script.Parent.BOX.Text
script.Parent.BOX.Text = p .. "1"
end

script.Parent["one"].MouseButton1Click:connect(addOne)


-----------
this script is saposed to add one to a text box in a gui
tree:

gui:
frame
frame
script
text button (named one)
text box (named BOX)




Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
25 Jul 2011 10:56 PM
i can bumb my scripts all day answer me!
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
28 Jul 2011 11:24 PM
yep im bumbing
Report Abuse
cjcool12345 is not online. cjcool12345
Joined: 28 Jan 2010
Total Posts: 606
28 Jul 2011 11:28 PM
I cant seem to find the problem >_< whats the structure of this gui with there names?
Report Abuse
darksoul4930 is not online. darksoul4930
Joined: 29 Feb 2008
Total Posts: 472
28 Jul 2011 11:29 PM
You are doing it wrong, that would only concatinate the one to your text. Here you go:

Number = 1 -- However much to add.

function addOne()
p = script.Parent.BOX.Text
script.Parent.BOX.Text = script.Parent.BOX.Text + Number
end

script.Parent.MouseButton1Down:connect(addOne)

Report Abuse
RawrBot is not online. RawrBot
Joined: 22 Aug 2008
Total Posts: 832
28 Jul 2011 11:48 PM
number = 0


function addOne()
number = number + 1
p = script.Parent.BOX.Text
script.Parent.BOX.Text = p .. tostring(number)
end

script.Parent["one"].MouseButton1Click:connect(addOne)
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