Hi robloxians, I need your help with this lil script here:
debounce = false
function onTouched(hit)
if debounce == false then
debounce = true
local s = Instance.new("Sound")
s.Name = "Sound"
s.SoundId = "http://www.roblox.com/asset/?id=148101943"
s.Volume = 1
s.Looped = false
s.archivable = false
s.Parent = game.Workspace.CurrentCamera
wait(0)
s:play()
end
end
script.Parent.Touched:connect(onTouched)
So um this music script that plays music to a player who touched it.... But something is wrong can ya tell me? I inserted this script into a part so when someone touches it the script plays music for him. I think it's something wrong with the last line maybe?

2 comments
It no work :C
Well then sorry, I don't know any solutions other than that! :c