I Just Want It So It Play When The Player Gets Hurt
ID = {131138828,131138832,131138835}
script.Parent.HitSound.SoundId = "http://www.roblox.com/asset/?id="..ID
function onTouched(hit)
script.Parent.HitSound:play()--change sound here to put your sound name--
end
script.Parent.Touched:connect(onTouched)
But For Some Reason Its Not Playing Please Help!

1 comment
well you didn't call which part value of the table meaning it doesn't know what to do. I think. like you have to do print(table[1]) or something like that then that would print the first variable.