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

How to make a sound play when touched a part?

Asked by 7 years ago

I don't even know how to script, Can someone explain how to write it so I know like separate it into little blocks?

2 answers

Log in to vote
0
Answered by
imaski4 42
7 years ago
1script.Parent.Touched:connect(function()
2    script.Parent.Sound:Play()
3end)
Ad
Log in to vote
0
Answered by 7 years ago

function touch()

1    script.Parent.Sound:Play()
2        wait(3)
3 
4    end
5script.Parent.Touched:connect(touch)

Answer this question