i made a house,i put a part in front of my door,i already have ClickDetector on the part,now i need to make it play a sound when someone clicked it,anyone knows how?
COMMUNITY QUESTION
Anyone knows how to make a doorbell?
2 answers
script.Parent.ClickDetector.MouseClick:connect(function()
script.Parent.Sound:Play()
--well just replace script.Parent.Sound with the location of the sound
end)
This isn't a site on how to make scripts. You post your broken script here and someone will try and help you fix it.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
to get a sound in the doorbell, rightclick> insert basic object >sound. Then change the Id to whatever sound you want.