Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I play an audio only one person can here?

game.Workspace.Sound:Play()

The sound in workspace plays but everyone can hear it, it's meant to be for the introduction to my game. Please help

1 answer

✓ Accepted answer

Do it in a LocalScript. Right-click on StarterGui and then click LocalScript. Then you can do (assuming you aren't used to FilteringEnabled or StarterPlayer):

local sound = Instance.new("Sound", game.Players.LocalPlayer)
sound.Name = "MySound"
sound.Volume = 1 --Sound Volume (0-1)
sound.Pitch = 1 --SoundPitch (0-1)
sound.SoundId = "http://www.roblox.com/asset/?id=".. YourSoundId --Add your Sound ID
sound:Play()

This discussion is preserved as it was. New answers, comments, and votes are closed.