Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I make multiple sounds to overlap?

I've got a gun tool that plays a gunshot sound, the line that does this is:

gunSound:Play()

But when firing quickly or in full auto, the newest sound stops the one before it. So how can I get it t have multiple sounds play at once?

6 comments

0

look into the spawn() function

0

Use the spawn function or use coroutines I suggest using coroutines.

0

I'll mess with that.

0

this is a bit lazy but you could instantiate it and create a new sound with the sound id in place

0

then delete after the sound is played

0

Yeah I was thinking about that, and might try it. I'll make it so that it plays the sound then removes it to avoid lag

1 answer

Ok so I just created a new sound via script every time the gun is used without reloading via script and made it clear after the sound was done ok bye

1 comment

0

I can't find the answer button so yeah

This discussion is preserved as it was. New answers, comments, and votes are closed.