|
| 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 |
|
|
|
| 25 Jul 2011 10:56 PM |
| i can bumb my scripts all day answer me! |
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Jul 2011 11:28 PM |
| I cant seem to find the problem >_< whats the structure of this gui with there names? |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|