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: Sounds overlaping

Previous Thread :: Next Thread 
nate890 is not online. 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 is not online. 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 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
22 Dec 2012 07:28 PM
^wat?
Report Abuse
miniTeam is not online. 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
FlamedSkull is not online. FlamedSkull
Joined: 23 May 2009
Total Posts: 1379
22 Dec 2012 07:31 PM
Why don't you make it sound2...?
Report Abuse
TeamDman is not online. 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 is not online. 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 is not online. 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 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
23 Dec 2012 03:57 PM
Bump.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
23 Dec 2012 08:36 PM
Last time bumping this.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
02 Apr 2013 08:42 PM
I lied, bump.
Report Abuse
cygorx is not online. cygorx
Joined: 09 Nov 2012
Total Posts: 668
02 Apr 2013 09:09 PM
coroutines my friend
Report Abuse
blobbyblob is not online. blobbyblob
Joined: 29 Oct 2008
Total Posts: 12165
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
02 Apr 2013 09:23 PM
and this is tested?
Report Abuse
xSIXx is not online. 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 is not online. 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 is not online. xSIXx
Joined: 06 Aug 2010
Total Posts: 9202
02 Apr 2013 09:28 PM
Insert > Basic Objects
Report Abuse
nate890 is not online. 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 is not online. 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
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