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

How and what script do I use to make a sound when somebody clicks a part? [closed]

Asked by 4 years ago

I made the click detector, but i need the script.

Closed as Not Constructive by Cynical_Innovation and Amiaa16

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago
script.Parent.MouseClick:Connect(function() -- put the script in the ClickDetector
script.Parent.Parent.Sound:Play() -- put the sound in the part
end)

Hope this solves your question! You put a Regular Serverscript in the click detector if you want the sound happen to everyone.

0
should probably explain it and not spoonfeed, get this big fat downvote from me incapaz 195 — 4y
0
Alright, hope you're happy. collin1212121 146 — 4y
0
Ima upvote it so you don’t lose reputation Colin:) iivSnooxy 248 — 4y
0
why thank-you kind person! collin1212121 146 — 4y
0
Ok Edit, it didn't work because im too dum to figure it out legolover54721 -13 — 4y
Ad