DJXTR3M3
|
  |
| Joined: 23 Dec 2013 |
| Total Posts: 1453 |
|
|
| 30 Jul 2014 07:25 PM |
I don't know why, but for some reason I can't find where to add "Audio".
Could someone tell me where I can find it in roblox studio? Thanks! |
|
|
| Report Abuse |
|
|
gogogama
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 238 |
|
|
| 30 Jul 2014 07:30 PM |
The audio object is called "Sound."
|
|
|
| Report Abuse |
|
|
DJXTR3M3
|
  |
| Joined: 23 Dec 2013 |
| Total Posts: 1453 |
|
|
| 30 Jul 2014 07:33 PM |
Also, when it comes to adding the SoundId, how exactly do I do so?
Thanks by the way! |
|
|
| Report Abuse |
|
|
gogogama
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 238 |
|
|
| 30 Jul 2014 07:36 PM |
The sound ID would be: http://www.roblox.com/asset/?id= ID of the sound here
To make the audio play, simply insert a LocalScript into the StarterGui folder that says: Game.Workspace.Sound:Play() |
|
|
| Report Abuse |
|
|
DJXTR3M3
|
  |
| Joined: 23 Dec 2013 |
| Total Posts: 1453 |
|
|
| 30 Jul 2014 07:50 PM |
Ok so the Local Script is like this:
1 Game.Workspace.Sound:Play()
I dragged into the StarterGui and the StarterGui is it's parent.
Is there anything that needs to be in the "LinkedSource"? (Like the "Sound"?)
Also, In "Sound"
"IsPaused" is checked, not "IsPlaying" and it's all grey and won't let me check IsPlaying. Is that something I should be concerned about? |
|
|
| Report Abuse |
|
|
DJXTR3M3
|
  |
| Joined: 23 Dec 2013 |
| Total Posts: 1453 |
|
|
| 30 Jul 2014 07:52 PM |
| The "1" being the first line in the script. As I believe it should be |
|
|
| Report Abuse |
|
|
gogogama
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 238 |
|
|
| 30 Jul 2014 07:53 PM |
| I believe you've done everything correctly. The sound should start playing as soon as you enter the game, so try testing it out in Play Solo mode. |
|
|
| Report Abuse |
|
|
DJXTR3M3
|
  |
| Joined: 23 Dec 2013 |
| Total Posts: 1453 |
|
| |
|
DJXTR3M3
|
  |
| Joined: 23 Dec 2013 |
| Total Posts: 1453 |
|
|
| 30 Jul 2014 08:01 PM |
One more thing, what would I do if I were to add a second sound?
Why I ask is that then there would be two LocalScripts in the StarterGui saying the same thing, but for two different sounds. So I don't know if one will cancel out the other, or if neither work or what. |
|
|
| Report Abuse |
|
|
gogogama
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 238 |
|
|
| 30 Jul 2014 08:06 PM |
I'm not a scripter, so you might have to move on to Scripting Helpers. Sorry. |
|
|
| Report Abuse |
|
|
DJXTR3M3
|
  |
| Joined: 23 Dec 2013 |
| Total Posts: 1453 |
|
|
| 30 Jul 2014 08:07 PM |
| No it's ok. Thanks for your help anyways! :) |
|
|
| Report Abuse |
|
|
DJXTR3M3
|
  |
| Joined: 23 Dec 2013 |
| Total Posts: 1453 |
|
|
| 30 Jul 2014 08:18 PM |
Go to this link for more info: http://www.roblox.com/Forum/ShowPost.aspx?PostID=142124159 (Scripting Helpers Forum) |
|
|
| Report Abuse |
|
|