"When the script's parent is touched by another part, it will play a sound that is in the script's parent."
xxxxxxxxxx
-- script for playing a sound when the parent is touched
local part = script.Parent
local sound = part.Sound
local function onTouched()
sound:Play()
end
part.Touched:Connect(onTouched)