How to reset count if player didnt click

how to reset count if player didnt click in 1.5 time

local rep = game:GetService("ReplicatedStorage")
local UIS = game:GetService("UserInputService")
local Player = game:GetService("Players").LocalPlayer
local char = Player.Character or Player.CharacterAdded:Wait()
local event = rep.Stand.TheWorld.Punch

local debounce = false
local count = 0
local resetTime = 0

UIS.InputBegan:Connect(function(input, gamepro)
	if gamepro then
		return 
	elseif input.UserInputType == Enum.UserInputType.MouseButton1 then
		if char:WaitForChild("UsingMove").Value == false then
			if char:FindFirstChild("Stand") then
				if debounce == false then
					debounce = true
					
					resetTime = tick()
					
					count = count + 1
					
					print(count)
					
					event:FireServer(count)
					
					if count == 5 then
						
						if char:FindFirstChild("HittedM1Finisher") then
							repeat
								wait()
							until char:FindFirstChild("HittedM1Finisher")
						end
						
						wait(2.5)
						count = 0 
						debounce = false
					end
					
					debounce = false
					
				end
			end
		end
	end
end)

You could add a BoolValue and make the Value true everytime you click. Wait .5 seconds and if player doesn’t click make the value false.