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

Why Wont This Work?

Well, be prepared to cry, Im a total beginner! Why wont this music script work!?

game.Workspace.Sound:Play(154007104)
	end
end

(this is in a local script)

2 answers

If you wish to play the sound you should have something like this. local Sound = game.Workspace["SoundName"] Sound:Play()

If you want to create a sound with an Id do this. local Sound = Instance.new("Sound", game.Workspace) Sound.SoundId = IDHere Sound:Play()

Use this:

sound = game.Workspace.Sound
sound:Play()

You do not need to put the IDs in. To have the song loop, just enable the " loop " button on the sound in Workspace.

Note: This works in a normal script

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