|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 13 Jun 2017 08:53 AM |
Man, annoying when it does that...
|
|
|
| Report Abuse |
|
|
|
| 13 Jun 2017 08:53 AM |
| use another sound instance |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 13 Jun 2017 10:16 AM |
Lol no use the :Play() event
audio1:Play() audio2:Play() |
|
|
| Report Abuse |
|
|