Use local script, when proximity prompt is triggered, just destroy the object.
Once the object is destroyed in local script on client side, it’ll not be propagated and so nothing will happen to such object on server or other clients.
If a listener to proximity prompt is created in a local script on client side, it’ll also not be propagated, and so will be created only for client who have this script.
You can try putting it into parent object of proximity prompt, for example a part.
Send a console log if it won’t work, so I can see what errors have appeared.
Try to debug your code using breakpoints or print statements.
If it is in local script, the event is not propagated to other player, and so the check is not needed. It would be important only in case it is in server script.
The Event will still Fire everytime the ProximityPrompt is Triggered, and will still return the Person who Triggered it, only Difference is that the event is occuring only on the Client.
That would make no sense if a listener created entirely on client would trigger someone’s else trigger event. I’m using it myself, and I’m pretty sure a local script won’t trigger someone’s else interaction, only local player’s.
Ultimately there’s no need to check for the player if it’ll always be a local player.
Nobody is saying that, When you Connect an Event and it Fires (Probably with the Exception from Client to Server), It will Fire no Matter the Environment its in, Thats how Events work, and Always have.
Again, This is an incorrect statement.
For Example, If you connect a PlayerAdded event on the Client, It will function how it normally would, It will give you the Player that joined.
This is literally how it works. Only exception where you use a Player provided parameter is on server-side.
PlayerAdded will be trigger for every player since Player object is also spawned on every other client.
You cannot listen to events trigger by other players of keyboard clicks.
In what universe this would be an insecurity? Obviously server will invoke, that player has joined since server is the socket handler. However server doesn’t know about player clicking a proximity prompt if the prompt is defined in a local script. Server doesn’t know about any client script, this implies that other players cannot know about someone elses proximity prompt usage.
You still have the option to try it in Studio. I have it all tested and checked.
how would 1 player’s prompt trigger another player’s prompt
that’s like 1 textbutton being pressed for every player
it wouldn’t work so the check is just useless
i simply didn’t think about it before i posted my example