Sync Function To Animation?

Would it be possible to sync a function to a playing animation using code?

For example: As you walk and every time either foot touches the ground (with a playing walk animation), a footstep sound plays.

I want to use something like this within my game so I do not have to add additional code or extend my animation.

You can use AnimationTrack:GetMarkerReachedSignal for this.
When making the animation you can add markers at certain keyframes, and execute code based on that.

This can be a pretty handy function (I never even knew it existed). However, creating the markers could get annoying considering the amount of keyframes I might have in an animation. I’ll try to implement an easier way when using this. Thanks for the reply!