How to trigger a proximity prompt in collection service?

I have this simple script

local CollectionService = game:GetService("CollectionService")
Tagged = CollectionService:GetTagged("Keycard")

Tagged.Insert.Triggered:Connect(function(Player)
	Tagged.Transparency = 1
end)

And this is my path
Screenshot (95)
I don’t see a reason why the trigger shouldn’t work, could anyone help me out?

Try

local keycard = game:GetService("where it is located"):WaitForChild("nameofpart")
local ppro = game:getService("where it is located"):WaitForChild("name of proximity")

ppro.Triggered:Connect(function(Player)
	keycard.Transparency = 1 # or try use deleted keycard:Destroy()
end)

CollectionService:GetTagged() returns an array of objects tagged with the specified tag. You have to loop over Tagged and connect the Triggered event to each ProximityPrompt.