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 » Scripters
Home Search
 

Re: Is there a way to disconnect all TextButton events?

Previous Thread :: Next Thread 
darkemosoul is not online. darkemosoul
Joined: 13 Dec 2008
Total Posts: 458
13 Feb 2016 01:04 PM
Just wondering if there is a way to disconnect the events of TextButton and ImageButton to reuse them, or will I have to delete them and remake them?
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
13 Feb 2016 01:34 PM
http://wiki.roblox.com/index.php?title=RBXScriptSignal

you mean that?


Report Abuse
darkemosoul is not online. darkemosoul
Joined: 13 Dec 2008
Total Posts: 458
13 Feb 2016 03:14 PM
No ImageButton.MouseButton1Down:connect(function() end)
This kind of event.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
13 Feb 2016 03:23 PM
Not sure what you are trying to do here. Could you explain more?

btw remember,

event:disconnect()
Report Abuse
BanTech is not online. BanTech
Joined: 31 Dec 2015
Total Posts: 886
13 Feb 2016 03:23 PM
listeners = {}

table.insert(listeners, ImageButton.MouseButton1Down:connect(function()
--code stuff
end))


--disconnect all
for _, e in pairs(listeners) do
e:disconnect()
end
Report Abuse
darkemosoul is not online. darkemosoul
Joined: 13 Dec 2008
Total Posts: 458
13 Feb 2016 04:48 PM
Yeah I figured i'd have to keep a reference, roblox should implement a way to disconnect all events on that particular button.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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