Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make script which will play sound if you touch the part?

2 answers

✓ Accepted answer

Assuming the script is parented to the part and the sound is also parented and named 'Sound':

script.Parent.Touched:Connect(function() script.Parent.Sound:Play() end)

You place this script inside the part with a Sound named Sound like a child of the Script Like this

Image (CLICK)

script.Parent.Touched:Connect(function() script.Sound:Play()

If this worked for you please accept the answer.

1 comment

0

I reccomend saying script.Parent.Touched:Connect(function() script.Sound:Play()

This discussion is preserved as it was. New answers, comments, and votes are closed.