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:
If anyone can help , I would highly appreciate it. Thank you very much
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