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 10 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 — 10y

4 answers

Log in to vote
0
Answered by
Sublimus 992 Moderation Voter
10 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):

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

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()
Log in to vote
0
Answered by 10 years ago
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.

Answer this question