Making a star wars game, and I have a sound script here that plays when you get hit by a bullet.
function onTouched(hit)
if hit.Name == "Bullet" then
local S = Instance.new("Sound")
S.Parent = workspace
S.SoundId = "http://www.roblox.com/asset/?id=333632339"
S.Volume = 1
S.Looped = true
S.Playing = true
end
end
script.Parent.Touched:connect(onTouched)
But it plays for everyone. How could I modify this so that it plays for the player only?

1 comment
http://wiki.roblox.com/index.php?title=API:Class/SoundService/PlayLocalSound