How do I get music to play in-game without having to do it without admin commands?
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):
1 | sound = locationofsound --Change this to the sounds location (ex. game.Workspace.MusicBlock.Sound) |
2 | sound:Play() |
http://wiki.roblox.com/index.php?title=Music Set up the Sound and put it in Workspace then
1 | sound = game.Workspace |
2 | num = 5 --Is changable |
3 | sound:Play() |
4 | wait(num) |
5 | sound:Stop() |
1 | function playMusic() |
2 | if game.Workspace.Sound.IsPlaying = = false then |
3 | game.Workspace.Sound:Play() |
4 | end |
5 | end |
6 | game.Players.PlayerAdded:connect(playMusic) |
Make this a model, also, name the music/song "Sound" and check the "looped" box.