How to make a proximity prompt show when using a tool

Hi there, I was wondering how I would go about making a proximity prompt show on a part, when using a tool. Like you equip the tool, and it shows, and hides when tool is unequipped. Any insight will help.

Thanks,

-Farmboy014

1 Like
local Tool = --tool
local Prompt = --prompt
local TargetPart = --part

Prompt.Parent = TargetPart

local function Equipped()
	Prompt.Enabled = true
end

local function Unequipped()
	Prompt.Enabled = false
end

Tool.Equipped:Connect(Equipped)
Tool.Unequipped:Connect(Unequipped)
1 Like