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 3 years ago

pretty simple to understand, ive got the proximity prompt in an attachment, held down the button. Nothing

01local Players = game:GetService("Players")
02local Player = Players.LocalPlayer
03 
04local Item = script.Parent
05local Proximity = Item.Attachment:WaitForChild("ProximityPrompt")
06 
07Proximity.Triggered:Connect(function(Player)
08    print("Got Gold")
09    Item:Destroy()
10end)
0
I've seen this problem before is it a local script or a regual script Avian2WasDeleted 0 — 3y

1 answer

Log in to vote
1
Answered by 3 years ago

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

Ad

Answer this question