How to ... :SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false) in a NORMAL script

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.

3 Likes

Thank you, which function i have to use in the script to fire the event to the local script?
Fire All clients or
Fire Client

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!

2 Likes