How to make when you didnt press m1 in 1 sec the count reset

elseif input.UserInputType == Enum.UserInputType.MouseButton1 then
if Player.Character:FindFirstChild(“Stand”) then
if Player.Backpack.UsingMove.Value == false then
if tick() - lasttime >= 6 then
count = 0
lasttime = tick()
end
count = count + 1
event:FireServer(count)
if count == 5 then
count = 0
end

this is the script how to add it

1 Like

Please Format the Script, did you not read the dev forum rules? I cant help you when your code is not formated.

how to make like

if count = 1 then
– 1 second didnt click-- count go back to 0

local Mouse = game.Players.LocalPlayer:GetMouse()
local Count = 1

local Clicked = false

local Connection = Mouse.Button1Down:Connect(function()
	Clicked = true
end)

wait(1)
if Clicked == false then
	Connection:Disconnect()
	Count = 0
end