Touch Interest gone => Proximity Prompt breaks

So im making a tool which can only be picked up by using a Keybind. Now my problem here is (as already seen in the title) I made a small script which removes the Touch Interest. Now Suddenly my Proximity Promt does not show up (it is there, i dont see the interact key/button. The Ui is gone

Could you show us your script inside a code block?
The community won’t be able to do much without first seeing what you’re doing.

oh sorry, sure! comming right up!

local p = script.Parent.Parent.Parent

local pr = script.Parent

pr.PromptButtonHoldEnded:Connect(function(plr)

p.Parent = plr.Backpack

end)

I like to keep my scripts simple

Just to be sure, does the ProximityPrompt work if you don’t delete the TouchInterest?

yes, it does, sorry i have missread ur message lol

i think i found something important in this mystery: the Proximity prompt ONLY WORKS if i pick up the part

i have an idea to fix that tho

the prompt only works if i pick up the part. even without the touch interest

PromptScript
local p = script.Parent.Parent.Parent

local pr = script.Parent

pr.PromptButtonHoldEnded:Connect(function(plr)

	p.Parent = plr.Backpack
	task.wait(0.5)
	pr:Destroy()

end)
TI_REMOVER
local t = script.Parent:WaitForChild("TouchInterest")
if  t then
	t:Destroy()
end

(Your script)

thank you so much! :smiley: you helped me alot, but sadly there are probably way more complicated parts in the future, I have big plans.

2 Likes