generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How do I put music into my game?

Previous Thread :: Next Thread 
SpaceEnder is not online. SpaceEnder
Joined: 18 Oct 2013
Total Posts: 790
01 Feb 2014 09:07 PM
I heard that with a script and putting the asset ID of a sound it will appear in your game, no, It´s not MIDI player.
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
01 Feb 2014 09:10 PM
I'm in a good mood, so I'll just give it to you (It's all over the Audio page, you were bound to run into it anyway).

Sound.Sound = "http://www.roblox.com/asset/?id=ASSETIDHERE"
Sound:Play ()
Report Abuse
FallenTacoz is not online. FallenTacoz
Joined: 05 Aug 2013
Total Posts: 328
01 Feb 2014 09:16 PM
In order to put a sound in your game, here's a simple script to make that happen.
local s = Instance.new("Sound")
s.Parent = game.Workspace
s.SoundId = "http://www.roblox.com/asset/?id=IDHERE"
s:play()

Copy and paste that script in the command bar.

Okay. To find the asset id, you have to go to the audio page in the catalog and at the URL bar at the top of the page, there will be numbers at the end. Copy and paste those numbers in where it says IDHERE in the script.
Report Abuse
SpaceEnder is not online. SpaceEnder
Joined: 18 Oct 2013
Total Posts: 790
01 Feb 2014 09:17 PM
Thanks! :D
Report Abuse
SpaceEnder is not online. SpaceEnder
Joined: 18 Oct 2013
Total Posts: 790
01 Feb 2014 09:20 PM
Will it work if I put it in a script?
Report Abuse
FallenTacoz is not online. FallenTacoz
Joined: 05 Aug 2013
Total Posts: 328
02 Mar 2014 04:28 PM
Yes, it would work if you put it in your script.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image