Does anybody know a script where if a GUI is clicked a sound plays locally and not to everyone in the server?
You should be using a local script to play the sound as a gui would be on the client side.
If this is a gui on the server ie not in the players gui then you could use PlayLocalSound but again this would be called from a local script and as FE would stop the replication.