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 » Scripters
Home Search
 

Re: How to run 2 songs serverwide at the same time!?

Previous Thread :: Next Thread 
Space_ShuttIe is not online. Space_ShuttIe
Joined: 28 Apr 2017
Total Posts: 7484
13 Jun 2017 08:21 AM
I want to play 2 different audio clips simultaneously.

When I try to, using 2 identical scripts with just the audio id being different, only one will play.

Anyone got a solution? I'm pretty new to this stuff :>)


https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=293636934 | Trying to get infernus - 04/06/17 [Send RAP trades]
Report Abuse
Space_ShuttIe is not online. Space_ShuttIe
Joined: 28 Apr 2017
Total Posts: 7484
13 Jun 2017 08:21 AM
1


https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=293636934 | Trying to get infernus - 04/06/17 [Send RAP trades]
Report Abuse
Space_ShuttIe is not online. Space_ShuttIe
Joined: 28 Apr 2017
Total Posts: 7484
13 Jun 2017 08:23 AM
2


https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=293636934 | Trying to get infernus - 04/06/17 [Send RAP trades]
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
13 Jun 2017 08:25 AM
1. This isn't LMAD you don't need to bump so often
2. Make to sounds
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
13 Jun 2017 08:25 AM
two*
Report Abuse
Space_ShuttIe is not online. Space_ShuttIe
Joined: 28 Apr 2017
Total Posts: 7484
13 Jun 2017 08:33 AM
I have 2 scripts, both identical except for the audio id.
Both have a sound element joined to them.
Each sound element harbours a different audio id.

Only the script placed in first is allowed to play.

I'm guessing this is a limitation of studio, maybe?

What do?


https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=293636934 | Trying to get infernus - 04/06/17 [Send RAP trades]
Report Abuse
Space_ShuttIe is not online. Space_ShuttIe
Joined: 28 Apr 2017
Total Posts: 7484
13 Jun 2017 08:48 AM
bumping


https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=293636934 | Trying to get infernus - 04/06/17 [Send RAP trades]
Report Abuse
SummerEquinox is online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
13 Jun 2017 08:53 AM
local function newMusic(id) local b = id local a = coroutine.wrap(function() local c = Instance.new("Sound",game.Workspace) c.SoundId = tostring("rbxassetid://"..b) ######## end) a() end create as many new ones as you want ^^
Report Abuse
SummerEquinox is online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
13 Jun 2017 08:53 AM
Man, annoying when it does that...


Report Abuse
Customality is not online. Customality
Joined: 11 Aug 2015
Total Posts: 590
13 Jun 2017 08:53 AM
use another sound instance
Report Abuse
Space_ShuttIe is not online. Space_ShuttIe
Joined: 28 Apr 2017
Total Posts: 7484
13 Jun 2017 08:55 AM
.-.


https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=293636934 | Trying to get infernus - 04/06/17 [Send RAP trades]
Report Abuse
Evercyan is online. Evercyan
Joined: 25 Feb 2016
Total Posts: 4241
13 Jun 2017 08:57 AM
audio1 = Instance.new("Sound", workspace)
audio1.Name = "MyFirstAudio"

audio2 = Instance.new("Sound", workspace)
audio2.Name = "MySecondAudio"


R$200,015 | aka CyanSparkleTime \ Evercyan \ Sparklexity
Report Abuse
Space_ShuttIe is not online. Space_ShuttIe
Joined: 28 Apr 2017
Total Posts: 7484
13 Jun 2017 09:06 AM
@Evercyan

So I put that into a new script. Then placed the 2 audio objects inside the script (both with the names you specified in your code). Now how do I get them to play when I run the game?


https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=293636934 | Trying to get infernus - 04/06/17 [Send RAP trades]
Report Abuse
noahcoolboy2 is not online. noahcoolboy2
Joined: 06 Aug 2016
Total Posts: 459
13 Jun 2017 09:07 AM
Wait(1)
plays
Report Abuse
Space_ShuttIe is not online. Space_ShuttIe
Joined: 28 Apr 2017
Total Posts: 7484
13 Jun 2017 09:26 AM
audio1 = Instance.new("Sound", workspace)
audio1.Name = "MyFirstAudio"

audio2 = Instance.new("Sound", workspace)
audio2.Name = "MySecondAudio"

Wait(1)
plays
----------------------
Like this?


https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=293636934 | Trying to get infernus - 04/06/17 [Send RAP trades]
Report Abuse
Space_ShuttIe is not online. Space_ShuttIe
Joined: 28 Apr 2017
Total Posts: 7484
13 Jun 2017 09:29 AM
Still doesn't seem to work .-.


https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=293636934 | Trying to get infernus - 04/06/17 [Send RAP trades]
Report Abuse
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
13 Jun 2017 10:16 AM
Lol no use the :Play() event

audio1:Play()
audio2:Play()
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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