nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 22 Dec 2012 06:51 PM |
Hello,
I was wondering if anyone knows of any methods that allow sounds to overlap. For instance, the code below will play the first sound then after one second the first sound stops (without me stopping it) and the second sound plays, while the first sound should play and one second later the second sound should overlap.
local sound = Instance.new("Sound", workspace) sound.SoundId = "http://www.roblox.com/asset/?version=1&id=1015394" sound:play() wait(1) local sound = Instance.new("Sound", workspace) sound.SoundId = "http://www.roblox.com/asset/?version=1&id=1015394" sound:play() |
|
|
| Report Abuse |
|
|
TeamDman
|
  |
| Joined: 04 Dec 2009 |
| Total Posts: 897 |
|
|
| 22 Dec 2012 07:24 PM |
The code I was using on us in the sb:
local p1 = workspace.TeamDman local p2 = workspace.nate890 p1.Head.Sound:Play() wait(0.07) p2.Head.Sound:Play()
Your sounds were probably ending after a wait(1)?
§TeamDman§ Anti-Jared |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
| |
|
miniTeam
|
  |
| Joined: 28 Oct 2012 |
| Total Posts: 27 |
|
|
| 22 Dec 2012 07:30 PM |
| nate is too wise to be helped here. He should go to Scripters Section. |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2012 07:31 PM |
| Why don't you make it sound2...? |
|
|
| Report Abuse |
|
|
TeamDman
|
  |
| Joined: 04 Dec 2009 |
| Total Posts: 897 |
|
|
| 22 Dec 2012 07:31 PM |
Forget about what I was saying about the ending after wait(1), that was before I actually ran your script.
§TeamDman§ Anti-Jared |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 22 Dec 2012 07:32 PM |
"Why don't you make it sound2...?"
That was a mistake, but it shouldn't matter anyway. |
|
|
| Report Abuse |
|
|
TeamDman
|
  |
| Joined: 04 Dec 2009 |
| Total Posts: 897 |
|
|
| 22 Dec 2012 07:32 PM |
What happens when I hit post by accident. #FAILONMYPART
§TeamDman§ Anti-Jared |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
| |
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
| |
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
| |
|
cygorx
|
  |
| Joined: 09 Nov 2012 |
| Total Posts: 668 |
|
| |
|
|
| 02 Apr 2013 09:12 PM |
Things I can suggest: - Rather than putting the sound in workspace, try cloning it into each player's camera or torso. - Create the two sounds simultaneously and only play them after they're both initialized.
Usually messing around will find solutions. I believe it's possible because gamehero's music player sounds fine. I know my music player started sounding pretty bad recently, but I haven't looked into that, so I dunno. |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 02 Apr 2013 09:14 PM |
| Without testing that method, I'm quite confident that it won't work. |
|
|
| Report Abuse |
|
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
|
| 02 Apr 2013 09:14 PM |
you have to troll roblox and make it think you have two seperate ID's
local sound = Instance.new("Sound", workspace) sound.SoundId = "http://www.roblox.com/asset/?version=1&id=1015394" sound:play() wait(1) local sound2 = Instance.new("Sound", workspace) sound2.SoundId = "http://www.roblox.com/asset/?id=1015394" sound2:play()
renamed it to sound2 for the sake of clarity. |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 02 Apr 2013 09:15 PM |
| ^ Late post, was directed to the coroutine suggestion. |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 02 Apr 2013 09:16 PM |
"you have to troll roblox and make it think you have two seperate ID's"
That ruins everything! It works though? Well, doesn't matter if it works... it's useless if they can't be the same! |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 02 Apr 2013 09:18 PM |
Things I can suggest: - Rather than putting the sound in workspace, try cloning it into each player's camera or torso. - Create the two sounds simultaneously and only play them after they're both initialized.
^^Pretty sure I tried both of these before posting this thread, quite some time ago. |
|
|
| Report Abuse |
|
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
|
| 02 Apr 2013 09:20 PM |
wait, why wouldn't my idea work?
you can just add some random nonsense at the end of the url to make it different
local sound2 = Instance.new("Sound", workspace) sound2.SoundId = "http://www.roblox.com/asset/?version=1&id=1015394&test=14325" sound2:play() wait(1) local sound2 = Instance.new("Sound", workspace) sound2.SoundId = "http://www.roblox.com/asset/?version=1&id=1015394&test=143254" sound2:play()
|
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
| |
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
|
| 02 Apr 2013 09:24 PM |
| test it in studio noob, you may have to run it twice because roblox. |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 02 Apr 2013 09:27 PM |
| STUDIO 2013? NOOOOOOO.... How do i insert a script -_-? |
|
|
| Report Abuse |
|
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
| |
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 02 Apr 2013 09:30 PM |
| Watch me make a demo where you can rewind music :3 |
|
|
| Report Abuse |
|
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
|
| 02 Apr 2013 09:31 PM |
| oh god, are you seriously going to overlap the sounds every second but with volume = 0 |
|
|
| Report Abuse |
|
|