Script checks to see if player has tool, but it must be unequiped. How to make it go through if player has it equipped?

So I have a script that only runs if a tool is in a player’s backpack. It works correctly, but a small issue is that the script only runs if the player doesn’t have the tool equipped. Some players could get confused by this.

So how would you make it work even if the tool is being held by the player?

	local Tool = player.Backpack:FindFirstChild("ToolName")  or player.Character:FindFirstChild("ToolName")
	if Tool then 
-- Script runs

The tool stays in Backpack when it isn’t equipped and moves to the character when it gets equipped.

I didn’t quite understand the issue so I hope this helps.