ProximityPromptService Assistance needed

Hello, Devforum community.
I’m here to ask for help with ProximityPromptService.

So, let’s get to it.

This is the code I have in an LocalScript

game:GetService("ProximityPromptService").PromptShown:Connect(function()
	print("SHOWN")
end)

Now, I’m wondering. Does it take only the ProximityPrompts shown to the LocalPlayer or when any other proximity prompt gets shown to any player?

local ProximityPromptService = game:GetService("ProximityPromptService")
ProximityPromptService.PromptShown:Connect(function(prompt, inputType)
	print(`{prompt} is being displayed`)
end)

That script makes no sense.


This event only works on the Client side, so LocalScripts will pick the LocalPlayer’s shown prompts.

2 Likes

Ah, so only the LocalPlayer’s shown prompts? I’m asking this because of my anti cheat and I do not want it to be kicking a player that’s innocent.

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