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 6 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
6 years ago
script.Parent.Touched:connect(function()
    script.Parent.Sound:Play()
end)
Ad
Log in to vote
0
Answered by 6 years ago

function touch()

    script.Parent.Sound:Play()
        wait(3)

    end
script.Parent.Touched:connect(touch)

Answer this question