Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I need help with my audio script? [ANSWERED]

-Edit- This has been answered on the forums. Thanks a lot, guys. -_-

Hey, guys. I've recently tried to make a piano that plays some audio once clicked, but now it won't work.

function onClicked(playerWhoClicked)
	sound.SoundId = "http://www.roblox.com/asset/?id=154630272"
	sound.Looped = true
	sound.Parent = script.Parent
	sound:Play()
end
 
script.Parent.ClickDetector.MouseClick:connect(onClicked)

Line 2 is the problem, but I have NO idea what it is. I've looked everywhere and I'm getting pissed because of it.

Please help.

1 answer

You may want to delete the post if answered elsewere

This discussion is preserved as it was. New answers, comments, and votes are closed.