Try this:
local last
mouse.Button1Down:Connect(function()
local now = tick()
if not last or (now - last) > 2 then
last = tick()
elseif (now - last) <= 2 then
last = nil
print("do stuff")
end
end)
Try this:
local last
mouse.Button1Down:Connect(function()
local now = tick()
if not last or (now - last) > 2 then
last = tick()
elseif (now - last) <= 2 then
last = nil
print("do stuff")
end
end)