Get who triggered ProximityPrompt?

Hello,

is it possible to get the character or model who triggered a ProximityPrompt?
Just like Touched function. I don’t know if that is possible, but any help is appreciated.

Thanks! :thinking:

ProximityPrompt events already pass the player like ClickDetectors.

proximity_prompt.Triggered:Connect(function(player: Player)
    -- etc
end)
2 Likes

Oh that function except of

right?

I don’t understand what you mean, could you clarify ?

I mean:

script.Parent.ProximityPrompt.Triggered:Connect(function(player)
	
end)

this?

That would work if your script is inside an attachment or a part, yes

1 Like