Footstep sound not working

I made a footstep sound for my game. It’s working well when moving right but I can’t hear the sound when moving left. How can i solve this bug204625-screenshot-1337.png

Just to clarify is the problem that your sound isn’t playing or that you can’t hear it? The code looks ok but is your audiosource using 3d sound? Maybe moving left is moving the player out of audio range?
_
To get more help we’ll need to see your audiosource in the inspector.