pretty simple to understand, ive got the proximity prompt in an attachment, held down the button. Nothing
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Item = script.Parent
local Proximity = Item.Attachment:WaitForChild("ProximityPrompt")
Proximity.Triggered:Connect(function(Player)
print("Got Gold")
Item:Destroy()
end)

1 comment
I've seen this problem before is it a local script or a regual script