Proximityprompt.triggered not detecting when the proxprompt is triggered

it might seem like a trivial error, but i legit have no clue what happened. read devforum posts and did prints but NOTHING happened. the SCRIPT is parented to a proximityprompt

basically what the script is (but not exactly)

local button = script.Parent

button.Triggered:Connect(function(plr)
	print("activated")
end)

now theres alot more after that, but thats kind of whats not happening. activated isnt printing and NOTHING is working, and its so frustrating!!

1 Like

im starting to think that .Triggered is broken because when i do the exact same thing but with button.PromptButtonHoldBegan, it actually prints something!! also triggerended also worked!! whats wrong bro :sob:

1 Like

I notice that for me too proximityprompts just don’t work most of the time

1 Like

Are you using a local script or a server script, and what is the button parented under? Make sure the Proximity Prompt is enabled as well.

1 Like

its a serverscript, and the button is parented to a part which is parented to a model which is parented to another model. theyre all enabled as well

1 Like

Weird, may just be a roblox issue then. Try parenting the button under different things if you can and make sure that the button is able to be enabled.

1 Like

Replace This

local prompt = script.Parent

prompt.Triggered:Connect(function() -- no plr just do player instead
    print("Activated")
end)
1 Like