Enabling Prompt based on tool equipped

Hello Devs of the DevForum. I am stuck with something I’m trying to implement. How do I make a script so that when you equip a certain tool, then the ProximityPrompt will enable itself, but if you unequip it, it disables it

Something like the images shown below:

RobloxScreenShot20220722_010715224

If anyone can help , I would highly appreciate it. Thank you very much :slight_smile:

EDITED:
If anyone wants the code, here it is

local prompt = ---location of prompt
local tool = script.Parent

tool.Equipped:Connect(function()
	prompt.Enabled = true
end)


tool.Unequipped:Connect(function()
	prompt.Enabled = false
end)

Place this inside the tool, not inside the Handle

I hope this is clear enough, please reply for more clarity. Thank you again :slight_smile:

You will need to do this locally.

Thank you! I was overthinking it too much hehe :sweat_smile: