I want to hide the Player List and chat, when the local player triggers a ProximityPrompt.
You can use remote events for this. When the player triggers a proximity prompt, it would fire the event from the server to the player’s client, and a local-script on the client would hide the player-list and chat.
Thank you, which function i have to use in the script to fire the event to the local script?
Fire All clients or
FireClient would be the one you would use, as it targets a single player. You would pass the desired player as the first argument of this method!