Only Play Sound When Moving

Hi people!

I’m using a FPS Controller and want to only play footstep sounds when moving. I’ve added an audio source etc. I just need some code!

Thanks in Advance!:stuck_out_tongue:

Perhaps checking if the player is grounded, and has positive overall velocity, will enable you to play the audio when the player is walking and stop the audio when the player is not walking. To begin with.