How would I go about detecting when a tool is equipped, and a prompt is triggered?

hey all, just been working on a little cooking system. I would like to make a detection as to when the object is held out, and the prompt is triggered. Here is what I have right now, and as you can see it doesn’t work. Help me out here please!

local function cloneLettuce()
	if count == 1 then
		local newLettuce = lettuceProp:Clone()
		newLettuce.Parent = game.Workspace
		newLettuce.Position = button1.Position
	end
end

lettuceTool.Equipped:Connect(function(hit)
	placePrompt.Triggered:Connect(function(hit)
		count += 1

		print(count)

	end)
end

When a tool is equipped it goes in the character model.

The .Triggered event gives you the the player.

Therefore you can do player.Character:FindFirstChild(“Tool”)

local function cloneLettuce()
	if count == 1 then
		local newLettuce = lettuceProp:Clone()
		newLettuce.Parent = game.Workspace
		newLettuce.Position = button1.Position
	end
end

local isEquipped = false

lettuceTool.Equipped:Connect(function()
	isEquipped = true
end)

lettuceTool.Unequipped:Connect(function()
	isEquipped = false
end)

placePrompt.Triggered:Connect(function(player)
	if isEquipped then
		count += 1

		print(count)
	end
end)