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

localplayer sound script that only that player hears?

is there a way to clone a sound from Lighting or wherever and then paste it into the localplayer and if like an event triggers the sound plays itself like:

Sound = game.Lighting.Sound
game.Players.LocalPlayer.Character.Humanoid.Health.Changed:connect(function()
 Sound:Play()
end)	

and is there a way so only that person can hear it? im kinda stuck here

2 comments

0

Dont store things in lighting

1 answer

✓ Accepted answer

You can use the SoundService.

SoundService has a function called PlayLocalSound so you can use that to play your sounds to a specific player only.

Pass the Sound as the argument

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