Log in to vote

How do I fix this blending of Roblox sound and my sound when walking on a material?

Asked by 4 days ago

I've made a script whereby it will change the sound of the player's footsteps if the player steps onto a particular material. I've managed to change the player's footstep sound using a touched event and it works very well, however, I did the same, using a touch ended event when the player stops touching the material whereby when testing, it makes it such that both the default Roblox walking sound and my walking sound merge together.

Also, I tested it without the touch ended event and it doesn't merge the sounds. Here's some code: (The code that mixes the Roblox default sound and my sound together)

    if touchersbody.Parent.Humanoid ~= nil then
        touchersbody.Parent.Head.Running.PlaybackSpeed = 1.85
        touchersbody.Parent.Head.Running.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"



Looks like you're using an ad blocker.

That's fine...

No, it really is.

Just, I mean, we put a lot of work into this site, you know?

It would be really really appreciated if you would turn off your ad blocker for our website...

We tried really hard to make our ads as unobtrusive as possible.

If you really hate ads, would you consider a $2 donation via Patreon?

Here's the link.

We love you. We hope you love us too.




Now back to your regularly scheduled Scripting Helpers....




Answer this question