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

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

Asked by 5 years ago

I need to create the script, which need to play if you touch the part. I want to create some place, and I need to make it work with FE.(Filtering Enabled) Please, help me!

0
I can make this for you, one second please. NewGPU 36 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

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)
Ad
Log in to vote
0
Answered by
NewGPU 36
5 years ago
Edited 5 years ago

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.

0
I reccomend saying script.Parent.Touched:Connect(function() script.Sound:Play() ReallyUnikatni 68 — 5y

Answer this question