|
| 01 Jun 2014 11:22 PM |
| I have a problem that if you click the button fast before it disapears it will do the operation afew times |
|
|
| Report Abuse |
|
|
|
| 01 Jun 2014 11:42 PM |
Debounce :P
waiting = false
TextButton.MouseButton1Click:connect(function() if not waiting then waiting = true --your code wait(3)--change 3 to w/e waiting = false end end)
like that |
|
|
| Report Abuse |
|
|
skript92
|
  |
| Joined: 23 Jul 2013 |
| Total Posts: 1430 |
|
|
| 02 Jun 2014 03:09 AM |
Instead of debounce, this works just fine for me:
script.disabled = true
wait(amount of time you want)
script.disabled=false |
|
|
| Report Abuse |
|
|
Qeary
|
  |
| Joined: 27 Jun 2013 |
| Total Posts: 5401 |
|
| |
|