How to make a ProximityPrompt only visible to certain players/clients?

I have a local script that adds a custom gui to all ProximityPrompts, and ProximityPrompt.Style is set to Custom. I have a ProximityPrompt located inside the Torso of every player so that other players can interact with that player. However, the GUI is appearing inside one’s own player and it’s conflicting with all other Proximity Prompts. How could I make this ProximityPrompt unavailable/ignored by one client?

I’ve tried not creating the custom GUI if certain criteria are met, but that obviously still doesn’t disable the ProximityPrompt which is invisible. I have also tried deleting the ProximityPrompt on the client that shouldn’t see it but this is being replicated to all other clients, therefore nobody at all has the ProximityPrompt in their character.

3 Likes

Use RemoteEvents to Fire the client to Disable the proximity prompt locally.

Example:

game.ReplicatedStorage.EventName:FireClient(Player,ProximityPromptObj,false)

Event.OnClientEvent:Connect(function(Prompt,Value)
    Prompt.Enabled = Value
end)
16 Likes

Thank you, I tried everything except actually disabling the prompt.

4 Likes