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

How do I get music to play?

How do I get music to play in-game without having to do it without admin commands?

1 comment

0

I don't know how to script. Please verify what you mean.

4 answers

Put a sound in a physical object in the world, then put a script anywhere and have it link to the sound (be sure you modify the volume and SoundID first):

sound = locationofsound --Change this to the sounds location (ex. game.Workspace.MusicBlock.Sound)
sound:Play()
function playMusic()
	if game.Workspace.Sound.IsPlaying == false then
		game.Workspace.Sound:Play()
	end
end
game.Players.PlayerAdded:connect(playMusic) 

Make this a model, also, name the music/song "Sound" and check the "looped" box.

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