DewTie
|
  |
| Joined: 08 Nov 2014 |
| Total Posts: 683 |
|
|
| 18 Jul 2017 12:31 AM |
How would i make a script that tells the difference when a button is clicked or double clicked Not sure how to do this but my only guess is debounce...? |
|
|
| Report Abuse |
|
|
kylerzong
|
  |
| Joined: 06 Aug 2011 |
| Total Posts: 659 |
|
|
| 18 Jul 2017 12:34 AM |
local click = tick()
mouse.Button1Down:connect(function()
if tick() - click < 0.8 then
print("double Click!")
end
click = tick()
end)
Found this on the forums |
|
|
| Report Abuse |
|
|
DewTie
|
  |
| Joined: 08 Nov 2014 |
| Total Posts: 683 |
|
| |
|