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: How do you overlap the same sound

Previous Thread :: Next Thread 
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
27 Sep 2014 01:59 PM
Let's say you have 1 sound in a script, and the script plays it every .5 seconds. The actual audio is 1 second long, so you'd have overlapping sounds. But, that's not the case. Whenever you do :play() on the sound, it resets it, and plays it again. Does anyone know how to make the same sound overlap itself, so not restart when using Play:(). Purpose? I'm making a gun with a fire sound, and the gun shoots pretty fast, and it does what I just talked about, it resets the sound everytime the script does :play().
Report Abuse
Bobobob12 is not online. Bobobob12
Joined: 23 Jan 2008
Total Posts: 5350
27 Sep 2014 02:04 PM
need to clone play then delete
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
27 Sep 2014 02:15 PM
is there a better less laggy way
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
27 Sep 2014 02:37 PM
b
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
27 Sep 2014 03:30 PM
bump
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
27 Sep 2014 07:42 PM
anyone happen to know
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
27 Sep 2014 07:43 PM
no
Report Abuse
DrBloxicus is not online. DrBloxicus
Joined: 21 Jun 2013
Total Posts: 11494
27 Sep 2014 07:43 PM
while true do?
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
27 Sep 2014 07:46 PM
@Dr

Like I said before, the sound will keep replaying. It won't overlap. A while true do wouldn't help.
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
27 Sep 2014 08:17 PM
b
Report Abuse
TrainingToTroll is not online. TrainingToTroll
Joined: 27 Oct 2012
Total Posts: 1757
27 Sep 2014 08:18 PM
wait(.5)
soundthingy:stop()
wait(.1)
soundthingy:play()
Report Abuse
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
27 Sep 2014 08:20 PM
AntiFiter, have you tried having two different sound instances?

sound1:Play()
wait(.5)
sound2:Play()
wait(.5)


sound1 and sound2 would have the same sound Asset ID
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
27 Sep 2014 09:11 PM
@Training

I'm pretty sure that would not work

@co

I'm trying to not have to do that
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
27 Sep 2014 09:32 PM
Dude you can't play the same song and have it overlap itself.

You have no choice but to make another one and play it
Report Abuse
TehIcyStar is not online. TehIcyStar
Joined: 07 Mar 2010
Total Posts: 1649
27 Sep 2014 09:43 PM
uhhh... use two sounds?
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
27 Sep 2014 10:32 PM
I took a random gum I had and changed the fire pitch to .1, making it take around 3 seconds to play

I could hear the overlapping sounds finish when I unclicked
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
28 Sep 2014 12:45 AM
There's this thing called an echo
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
28 Sep 2014 12:56 AM
I think theres a property called 'looped' or something in the Audio object.
Report Abuse
Obscurely is not online. Obscurely
Joined: 30 May 2013
Total Posts: 1216
28 Sep 2014 03:17 AM
Two audios is the easiest option, or you could do a long length of properties scripting for one audio.
Report Abuse
Roblok1 is not online. Roblok1
Joined: 27 Jul 2011
Total Posts: 2019
28 Sep 2014 04:04 AM
Use a loop and give it the 0.5 wait time.

Now do:

While true do

S = Instance.new("sound")
S.SoundId = [soundID]
S.Parent = [parent]
S:Play()
game.Debris:AddItem(S, 0.5)

wait(0.1)

end


Here we go.......
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