This is all I could do and I don't know how to make the click detector play a random song when click. Can you guys help me out?
Brick = script.Parent
Sound = Brick.Sound
Debounce = false
function onClicked()
if not Debounce then -- If the debounce is false
Debounce = true -- Change it to true
Sound:Play()
wait(Sound.TimeLength) -- Wait til it ends
Debounce = false -- Change it to false
end -- End the if function
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Many thanks, my friends!
