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