Exclusive Proximity Prompts

Hi! I am currently trying to make certain proximity prompts only available to single clients.

For example when Player A uses a proximity prompt in order to carry a boulder above their head, only Player A should have the option to drop the boulder using proximity prompts.
Player B on the other hand shouldn’t even see the proximity prompts if Player B didn’t pick up the boulder first.

How do I go about making something like this?
Thank you for reading my post.

In terms of making ProximityPrompts diabled on the clients, you could fire a remote to all clients, and if the player isn’t the player who picked up the boulder you can disable the proximity prompt with .Enabled = false .

For the server side check, when you make a .Triggered connection to ProximityPrompt B, you can use the first parameter of Triggered to check which player triggered the prompt. At that point, a simple if statement could check the player is the same player holding the boulder.

Let me know if you need anymore help.

1 Like

Another idea is that you could use a LocalScript to create each ProximityPrompt for those that are supposed to have it. Then, you could use a RemoteEvent and have the LocalScript fire it to the server.

Then, from the server, you could detect the event and make sure the right person (that is able to have these prompts) has interacted with it.

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