How can I find the player who activates a proximity prompt?

Dose anyone know a function that finds the player who activated a proximity prompt?

I’m looking though the API but I don’t understand it that well.

1 Like

The first argument of a proximity prompt trigger event is the player. An example can be seen below.

ProximityPrompt.Triggered:Connect(function(playerWhoActivated)
    -- playerWhoActivated can be changed to any other name but it'll always be the player
    -- code here
end)
1 Like