mouse.Button1Down:connect(function()
click = true --Detect if clicked
print("click")
wait(1) --Wait to detect if holding
if click == true then
click = false --If is holding then click becomes nil
print("holding") --Where your code goes for what should happen if you're holding down mouse
hold = true --Make holding true
end
end)
mouse.Button1Up:connect(function()
if click == true then
print("click bye") --Where your code goes for what should happen if you lift mouse with click (Leave empty if nothing)
click = false
elseif hold == true then
print("hold bye") --Where your code goes for what should happen if you lift mouse with hold (Leave empty if nothing)
hold = false
end
end) |