When key is pressed, play 2D. When key is not pressed, stop playing the sound.

You just get that asset ( it’s free ), it comes with instructions. It does everything, change footsteps sounds on different ground, doesn’t do steps when jumping etc.

EDIT: You can do what you’re asking like this. Inside the player:

and PlaySound looks like this:

You can see it’s already a bit of a fiddle, and will get worse as you add requirements like different sounds for different surfaces. That’s why I recommended the asset :wink: