Basically I'm trying to make a relatively simple script that only plays the music for the person that touches the part. Nobody else. However, for some reason it does not work and I don't understand why. I appreciate any help given.
local touched
script.Parent.Touched:connect(function()
local s = Instance.new("Sound")
s.Name = "Sound"
s.SoundId = "http://www.roblox.com/asset/?id=337129937"
s.Volume = 1
s.Looped = false
s.Parent = game.Players.LocalPlayer
wait(1)
s:play()
end)

2 comments
I understand what you mean, however when I try exactly what you have said, it does not even play the music at all.
Ah, nevermind. I tweaked my script a bit and found the problem. I appreciate your help. :)