Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

ProximityPromt not triggering when button is pressed?

Asked by 2 years ago

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)
0
I've seen this problem before is it a local script or a regual script Avian2WasDeleted 0 — 2y

1 answer

Log in to vote
1
Answered by 2 years ago

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

Ad

Answer this question