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

Can I have some help on Background music?

Asked by
EpicLilC 150
9 years ago

So I just added background to one of my places and it's being weird for some reason. How I added the background music was by copying and pasting[ http://www.roblox.com/asset/?id= ] into a Sound that I inserted through Advanced objects. Then I made a Local script and put it in the Starter Gui. After that I codded in the LocalScript, game.Workspace.Sound:Play() , which did play the music when I tested my game in PlaySolo, but when I played the game, outside of ROBLOX studio, for some reason my background music wasn't playing. Does anyone know how to fix this?

1 answer

Log in to vote
2
Answered by 9 years ago

You should put the sound in workspace, then put a script inside it and write the code:

script.Parent:Play()
0
Don't forget to set the music to loop if it is background music that's supposed to loop Scootakip 299 — 9y
Ad

Answer this question