Getting a stool "TOOL:LeftClick" to just fire once per click

The problem I have is, for example, when I write this:

function TOOL:LeftClick( trace )



It will spam the console with “hello!” even though I only left click once. How do I change it so that it will only fire what’s inside that function once per click?

i think this will help you.