How to make sound of walk match animation?

So I want to slow down my walking sound but I dont know how to? Where does the sound fall into, and where would I be able to make it match? I also have a run animation, so I would need this to specifically match.

2 Likes

Instead of trying to get the perfect time (which is something you can do by changing values without asking), use keyframe markers or rename the keyframes in your animation. Either one should be indicative of when a walk kind should be played (e.g. SteppedRight).

From there, either use GetMarkerReachedSignal or KeyframeReached (depending on which method you used) and make sure you’re validating on that marked or named keyframe. Play the sound if it’s been reached during animation playback.

2 Likes

Have two versions of the walking sound, each lasting less than a second or so, try to calculate the time between steps of the character and play the sounds accordingly.

1 Like

You could do this, which changes the speed of the walking sound based on the speed the character is moving:

local Character = game.Players.LocalPlayer.Character
local Humanoid = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
 
Humanoid.Running:Connect(function(speed)
	local RunningSound = Character.Head:WaitForChild("Running")
	RunningSound.PlaybackSpeed = 1.85 * (speed/16)
end)
4 Likes