OnPlayerTrrigerStay doesn't work as I expected...:(

I tried to create a system that only makes footsteps when the Player is inside the Collider and is walking.

I was able to make a sound when I touched the Collider, but the sound continues even when I go out of the Collider.
Also, the footsteps will continue to sound even when the Player is completely stopped.

What should I do?

Udon Graph

UnityEditor 1

Unity Editor2

Perhaps try enabling the sound object OnPlayerTriggerEnter, and disabling the object OnPlayerTriggerExit. I think that if the player leaves the collider, your OnPlayerTriggerStay script can never be called to turn it back off.

I’m not certain about your second issue, right now.