How do I get music to play in-game without having to do it without admin commands?
COMMUNITY QUESTION
How do I get music to play?
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()
http://wiki.roblox.com/index.php?title=Music Set up the Sound and put it in Workspace then
sound = game.Workspace
num = 5 --Is changable
sound:Play()
wait(num)
sound:Stop()
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.

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