Hold-Click doesnt work on first click

So basically I have a gun and when the player holds down it fires, but not on the first click

--mouse.Button1Down:connect(function()
Tool.Activated:Connect(function()
	print("Activation")
	if gunMod.isEquipped() then
		print("Down")
		firing = true;
	end
end)
--end)
Tool.Deactivated:connect(function()
	if gunMod.isEquipped() then
		print("Up")
		firing = false;
	end
end)

When you equip the tool, nothing is printed, but when you click, only Up is printed after that even if it is unequipped it works correctly.

1 Like

What is firing on default? true or false before any changes made?

1 Like

False on default. So idk know what the prob is

1 Like

can you debug this line? Maybe its printing something that it shouldn’t

and

To: Tool.Deactivated:Connect(function()

1 Like

It doesn’t even print Activated. Its not that

1 Like

What is RequiresHandle set to? If it’s false try to set it as true and make a handle on your tool

I have gun. With a handle, I doubt thats the problem. I turned it off and still the same result

1 Like

I used this code instead.

UserInputService.InputBegan:connect(function(input,processed)
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		if gunMod.isEquipped() then
			firing = true;
		end
	end
end)