How to check if a player clicked with their mouse twice?

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)
1 Like