Historical reference only. This discussion is preserved from the original Scripting Helpers site. Its code, Roblox APIs, and advice may be outdated. Consult current official Roblox documentation before using it in a project.
COMMUNITY QUESTION
Another sound error? Asked Jun 1, 2014 230 views 0 answers
It says MusicBlock is not a valid member of Workspace? It says this is the script on the roblox wiki to play audio. What do I do? I'm confused.
local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/The-Opening-MitiS-item?id=142320162 "
sound.Parent = game.Workspace.MusicBlock
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
First off, SoundId is a NUMBER, so remove the link and put the soundId which is the numbers at the end of the link. Also, the error is saying MusicBlock is NOT in Workspace.