So i have a script that plays a sound every time a player dies. I want to make it so only that player can hear the sound instead of everyone in the server. Plz help?
There are 2 scripts that come with it:
1st:
game:GetService('Players').PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() script.Parent.DeathSong:Play() wait(5.4) script.Parent.DeathSong:Stop() end) end) end)
2nd:
script.Parent.DeathSong.SoundId = script.Parent.Song.Value

2 comments
http://wiki.roblox.com/index.php?title=API:Class/SoundService/PlayLocalSound
I don't understand it