Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

ProximityPromt not triggering when button is pressed?

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

0

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

1 answer

✓ Accepted answer

Use a regular script, It won't work on a localscript

This discussion is preserved as it was. New answers, comments, and votes are closed.