ProximityPrompt.Triggered not working

I have a ProximityPrompt that .Triggered is not working on. It is Enabled, the parenting is all 100% accurate. The proximity prompt is there in game, but it does not print when triggered

print(workspace.Core.Lobby.Interactives.RebirthShrine.PrimaryPart.ProximityPrompt)
workspace.Core.Lobby.Interactives.RebirthShrine.PrimaryPart.ProximityPrompt.Triggered:Connect(function()
	print("GOI")
end)

image
image
image

3 Likes

You could just use RebirthShrine:FindFirstDescendant(‘ProximityPrompt’) instead of manually typing all of that in. You probably lost track of it somewhere in all likelihood.

The PrimaryPart could be set to something else, is my guess, but I’d use FindFirstDescendant just to be safe.

3 Likes

FindFirstDescendant Isnt enabled, You may want to try FindFirstChild with the recursive value set to true

RebirthShrine:FindFirstChild(‘ProximityPrompt’,true):Connect(function()
    --code here
end)
3 Likes

cc @pixeldippz
Both of these don’t work

Are you using a Script or a LocalScript?

ProximityPrompts only work with LocalScripts.

If you want something to happen for all players after interacting with the prompt, fire a RemoteEvent/RemoteFunction to the server and then either:

  • have that function run Serverside using the connection

  • inside the connection, use FireAllClients to have each client perform the desired task (mostly) in unison