How can I play a sound locally? I have tried playing a sound via a local script in starterGui when you press a button, but the sound can be heard throughout the whole server. The sound is in StarterGui and the script also in StarterGui. What might the problem be?
it will only be heard on the client since you used a localscript to play the sound
I played the sound via the local script. But when I played the game in-studio, I heard the sound on the server side.
Local sounds will happen if you play them on the client. Maybe some weird studio glitch, but you should not hear it on the server/other clients as things done/changed in a local script stay local and do not replicate to the server or any other clients.
I’ll try it again, to see if I can still hear it on the server.
Maybe you should try publishing the game and testing it in the actual roblox client rather than studio.
sometimes the roblox client - server button is lying. so since the sound is played in a localscript, the sound is local
Can you show us the code and how you set it up?