How to detect mouse held?

Sorry to necro, I’m very confused as to what gameProcessed is doing in this situation though and why it needs to be implemented. I’m able to understand everything else in the code and feel comfortable applying a similar method to this to my script, however gameProcessed confuses me greatly and I want to fully understand it before I just add it into my script. Would it not be ending the function immediately? Is it a built-in function or command that I’m not aware of? I see it mentioned no where else in the script, only as parameters for these functions. Is it maybe saying to only run the function once? Though, if that is the case I am lost as to how it is conveying that information. Is it some sort of fail safe, or acting as a debounce? While its not neccessary at all, if anyone has answers to these questions, or is just generally able to explain the purpose of gameProcessed it would be greatly appreciated!

Edit* After more reading I am also confused as for the purpose of:

if timeHeld > 0 then
			delay(timeHeld, function()
				if ticket == currentTicket then
					leftMouseButtonHeld()
				end
			end)
		else
			leftMouseButtonHeld()
        end

Would this not always be true? And even if it wasn’t, whats the purpose of calling the same function regardless of if the first statement is true or not? timeHeld is defined way earlier in the script, and there seems to be no section that is changing its value. Thusfore 0.2 (timeHeld’s value) will always be > than 0 no? Why even have the if statement here? Not asking out of malice or in a condescending tone, just generally curious and confused :slightly_smiling_face: