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

How do I make it when someone click a part audio start to plays?

Asked by 7 years ago

In some game people use ClickDetector to play a audio on a part does anyone have a script or know a script to make it work?

0
Yeah, but how do I make it play sound? ZAZC_Noob 7 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

Here is a simple example of what you could do. This is very basic, though, so you should try improving it on your own.

script.Parent.ClickDetector.MouseClick:Connect(function() --Insert a ClickDetector in a part
        script.Parent.Sound:Play() --Insert a Sound into the part
end)
0
It WORKED! Thank you! ZAZC_Noob 7 — 7y
Ad

Answer this question