0

# How do I make a part play a sound when clicked?

Edited 1 year ago

I've been trying to make a lantern play a switch sound when it turns on in Roblox Studio, but it hasn't been working. I've tried many different scripts, ClickDetectors, etc, but none of it is working. I've been using this script along with a ClickDetector and a sound:

script.Parent.ClickDetector.MouseClick:Connect(function() game.Workspace.Sound:Play(Sound ID Goes Here)

end)

game.Workspace.Sound:Play(Sound ID Goes Here)