The hierarchy goes
-Model
-Sound
-This Script
-Part
-Part
-Part
-more parts
The script should make the sound play when you touch any of the parts in the model.
function onTouched(Part)
if Part.Parent.Parent:FindFirstChild("Humanoid") then
script.Parent.TimePosition = 0
script.Parent.Playing = true
end
end
for i, v in pairs(script.Parent.Parent:GetChildren()) do
if v:IsA('Part') then
v.Touched:connect(onTouched)
end
end
