INFO
I’ve been having some trouble playing multiple sounds in brick with the same ids. I wonder what is the cause of this? I use :Play() for each inside the bricks.
ISSUE
The problem is, when I player them in a normal script. They are playing wierd when I am moving in testing and playing.
I’ve been wondering what’s the cause of this problem. Because i’ve seen in games they are playing fine.
ATTEMPTS
I’ve tried other things. I’ve been searching in topics, but I didn’t find any solution to my problem. I’ve been looking for some tutorials I didn’t find any. And people told me to play it locally, it still doesn’t work. I put the local script in the brick and play the sounds inside the brick. Because it’s localscript, that means it should play locally but no.
If any of you know any ways of fixing the problem, please tell me. If you have any ideas, reply below so I can code it the right way. Not asking for entire code, just need my code to execute the right way.
Greetings!
Could you elaborate what you meant with that the sounds are playing “weird”? If possible, provide a video or place file. Any information would help!
From everything you’ve said so far it’s not very easy to understand the issue. Considering the sound instances are parented to a part your sounds will be less audible from a distance. If this is a problem you can resolve it by tuning the EmmiterSize and MaxDistance properties.
There’s a lot of useful info on the developer hub, check it out here .
That sounds very odd. I don’t think this is your mistake as sounds usually don’t tend to do that. It could possibly be a bug or something caused by malicious code. I’d suggest trying all of the following:
Create a brand new place and try running the same piece of code. If this works, a script in your place might be causing the issue.
Disable all your plugins and do the same as above. If this works, one of your plugins may be malicious. Try isolating which one is causing the issue and uninstall it.
If the solutions above don’t work, upload a place file with the issue that we can inspect.
Hello !
I would suggest that you replicate everything in a new place and share it, this may help us understand the main reason that is causing the weird behavior you’re experiencing.
My guess is that this is due to the doppler effect that Roblox simulates. Try changing the DopplerScale of SoundService to 0. Problems tend to only occur with fast moving objects. (e.g. your camera moves too fast or the sound emitter moves to fast)