So basically, I made 2 parts, a button with a click detector, and then a different part with the audio in it. The purpose is to click the click detector with the script, and that should make the other SoundPart with the audio play. This is my code: I thought my coding would make sense but apparently it didn't. Does anyone know how to fix this or improve it?
script.Parent.MouseClick:connect (function(start)
script.Parent.Parent.SoundPart.Audio: Play()
end)

1 comment
Could you please provide the specific error you receive because, assuming everything is located in the right spot and named properly, this should run just fine.