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?
✓ ANSWER ACCEPTED
How do I make it when someone click a part audio start to plays?
1 answer
✓ Accepted answer
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)
1 comment
0
It WORKED! Thank you!
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
http://wiki.roblox.com/index.php?title=API:Class/ClickDetector/MouseClick
Yeah, but how do I make it play sound?