Tool being duplicated after clicking two different buttons

And also, what is isEquipped supposed to be then? since its not a variable nor defined to anything.