j818
|
  |
| Joined: 10 May 2008 |
| Total Posts: 344 |
|
|
| 06 Jun 2015 11:53 PM |
How would I edit this so I can add more text?
What I am doing is if you click a button, text shows up in a gui. If the click the button again, different text shows up. Kind of like how it works in most videogames.
----------------------------------------------------------
function onClick() script.Parent.Parent.TextBox.Text = "Clicked"
--Add more text when clicked again?
end
script.Parent.MouseButton1Click:connect(onClick) |
|
|
| Report Abuse |
|
|
xEtan
|
  |
| Joined: 17 Jul 2011 |
| Total Posts: 454 |
|
|
| 06 Jun 2015 11:58 PM |
This might be a little convoluted but... You could try assigning each phrase to a number, then have the number go up with each click until you get to say 5 or so where you can have it reset to the first one.
|
|
|
| Report Abuse |
|
|
j818
|
  |
| Joined: 10 May 2008 |
| Total Posts: 344 |
|
|
| 07 Jun 2015 12:23 AM |
| Hmmm. I'm trying to figure out how to do that. I tried it and it didnt work ;-; |
|
|
| Report Abuse |
|
|
j818
|
  |
| Joined: 10 May 2008 |
| Total Posts: 344 |
|
| |
|