Make proximityprompt only visible when player holds an item

I’m trying to make a card access gate, I have a ProximityPrompt where the card reader is. However id like to make it only visible if you have the card tool in your hand. Below is where the card reader is located in Workspace.

make a local script in your tool

local tool = script.Parent
local prompt = workspace.path.to.proximityprompt
tool.Equipped:Connect(function()
	prompt.Enabled = true
end)

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

replace prompt with your actual path

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.