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

Part, Play sound on Click?

Asked by
Vividex 162
10 years ago
local Partyay = game.Workspace.Part
local Soundyay = game.Workspace.Part.Script

Partyay.ClickDetector.MouseClick:connect(function()
    Soundyay.Parent.Sound:Play()
end)

Tried that, in the part I inserted a ClickDetector, then I inserted a Script with the code above, then in the scripts parent I inserted a sound with the correct SoundID

I can click it but nothing plays? Help?

Answer this question