Trigger ProximityPrompt from Event

Hello,

I am trying to make a script where in a serverscript, it triggers a Proximityprompt by an NPC.
I read that you cant trigger a ProximityPrompt from a Serverscript, if you can that would be alot better.
I now just have a Serverscript that Fires an Event and when the localscript receives it, i want it to trigger the Proximityprompt.

I tried triggering the Prox with a serverscript, and a localscript, both didnt work.
If anyone knows how to fix it, it would help me alot.

can you give me your scripts and ill dive deeper thank you.

it works from a server script
i tested with this

local proximityPrompt = Instance.new("ProximityPrompt")

--gives player argument (player who triggered it)
proximityPrompt.Triggered:Connect(function(player : Player)
	
end)

I found a different solution. with functions

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.