Problem with ProximityPrompt

Hi i’m having a problem with proximity prompt:

I can’t find the event that does the following:

After the player has triggered the proximity prompt, I want to find a way to find the player who did it
( similar to the GetPlayerFromCharacter() event but with proximityprompts)

script so far:

script.Parent.Prompt.Triggered:Connect(function()
	-- Find the player who did it
        -- activate the gui using a remoteEvent
end)

I’ve something that might help, it’s the GetActor() event but it seems that it’s currently not avaiable and there’s no documentation about it :frowning:

does anyone know the name of that event or it just doesn’t exist ?

When I try the GetActor() event :

image

Triggered return sthe player who activated the prompt, so just do

script.Parent.Prompt.Triggered:Connect(function(player)
	-- Do stuff with player
    -- player is the parameter that contains the player who triggered the prompt
end)

Oh thanks ! I’m a beginner lol I wanted to experiment with their new instance because I really like the system :smiley:

1 Like

Anytime! If you have anymore issues don’t be afraid t omake another post! And good luck on your scripting journey!

2 Likes