Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Anyone knows how to make a doorbell?

Asked by 10 years ago

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?

2 answers

Log in to vote
0
Answered by 10 years ago
script.Parent.ClickDetector.MouseClick:connect(function()
    script.Parent.Sound:Play()
    --well just replace script.Parent.Sound with the location of the sound
end)
0
to get a sound in the doorbell, rightclick> insert basic object >sound. Then change the Id to whatever sound you want. Shaydesilva 85 — 10y
Ad
Log in to vote
-1
Answered by 10 years ago

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.

Answer this question