Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do I get music to play?

Asked by 11 years ago

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

0
I don't know how to script. Please verify what you mean. R0B0TICGAMER 0 — 11y

4 answers

Log in to vote
0
Answered by
Sublimus 992 Moderation Voter
11 years ago

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):

1sound = locationofsound --Change this to the sounds location (ex. game.Workspace.MusicBlock.Sound)
2sound:Play()
Ad
Log in to vote
0
Answered by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
11 years ago
Log in to vote
0
Answered by 11 years ago

http://wiki.roblox.com/index.php?title=Music Set up the Sound and put it in Workspace then

1sound = game.Workspace
2num = 5 --Is changable
3sound:Play()
4wait(num)
5sound:Stop()
Log in to vote
0
Answered by 11 years ago
1function playMusic()
2    if game.Workspace.Sound.IsPlaying == false then
3        game.Workspace.Sound:Play()
4    end
5end
6game.Players.PlayerAdded:connect(playMusic)

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

Answer this question