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

How do i play music on my game?

Asked by 10 years ago

I'm makeing a scary game and i need music to go with it. Can you help me with this?

3 answers

Log in to vote
0
Answered by
Hybric 271 Moderation Voter
10 years ago

1. Insert a sound into Workspace
2. Click on sound, then notice a SoundId, Change the SoundId to: rbxassetid://Paste Sound Id here
3. clock on the sound again, scroll down in properties (MUST HAVE PROPERTY TAB OPEN) Can Check the Looped Property.
4. Insert a script into the sound. Copy and paste This script into that script:

script.Parent:Play()
Ad
Log in to vote
0
Answered by
yurhomi10 192
10 years ago

Adding to Hybrics answer,

you can also play local sounds to player in the Player's PlayerGui.

Log in to vote
-1
Answered by
duckwit 1404 Moderation Voter
10 years ago

Have a look at the Sound Object on the Official Roblox Wiki, it handles all audio-related game functionality such as effects, background music, playing and stopping, etc...

http://wiki.roblox.com/index.php?title=Sound

Answer this question