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 » Game Design
Home Search
 

Re: Quick onClick Help

Previous Thread :: Next Thread 
j818 is not online. 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 is not online. 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 is not online. 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 is not online. j818
Joined: 10 May 2008
Total Posts: 344
07 Jun 2015 08:47 PM
bump.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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