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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How do you stop this from happening (GUIs)?

Previous Thread :: Next Thread 
Supint is not online. Supint
Joined: 30 Aug 2013
Total Posts: 6854
02 Apr 2014 07:20 PM
If there are two immediate TextButtons directly on top of each other, and if you click multiple times on top of the top one, they both get triggered. Is there a convenient way to stop this?
Report Abuse
Supint is not online. Supint
Joined: 30 Aug 2013
Total Posts: 6854
02 Apr 2014 07:23 PM
Does this happen for anyone else?
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
02 Apr 2014 07:25 PM
No, I don't even know why you came across this xD

Have you tried disabling a script when the other is clicked?
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
02 Apr 2014 07:27 PM
Make one inactive :P Then if what you're trying to do is make one appear when clicking the other then just do like..

script.Parent.MouseButton1Down:connect(function()
script.Parent.Parent.TextButton2.Active = true
script.Parent.Active = false
end)
Report Abuse
Supint is not online. Supint
Joined: 30 Aug 2013
Total Posts: 6854
02 Apr 2014 07:36 PM
No, one is covering the other one. (They're both windows that when clicked slide away)

How do you make one inactive from a script that is not inside it?
Report Abuse
Supint is not online. Supint
Joined: 30 Aug 2013
Total Posts: 6854
02 Apr 2014 07:40 PM
bump
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
02 Apr 2014 08:04 PM
I JUST TOLD YOU

ON THE TOP TEXTBUTTON THAT SLIDES;

script.Parent.MouseButton1Down:connect(function()
script.Parent.Parent.OtherTextButton.Active = true --Have it inactive beforehand
--Slide away
end)
Report Abuse
Supint is not online. Supint
Joined: 30 Aug 2013
Total Posts: 6854
02 Apr 2014 08:29 PM
Oh, I see how that works. I thought you were suggesting something else.
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