Hello fellow scripters, I hope you are having a great day! While scripting my 2D Platformer game, I have encountered an issue with detecting player steps. At the present time, I am using a touched event to detect player footsteps. The problem is that this is not very accurate and that it causes issues later hand. The normal solution would be using "GetMarkerReachedSignal", but I want players to be able to use the animations that they have bought in the game rather than a custom animation that is used while playing. I have scavenged Roblox Wiki Pages and multiple Dev Forum pages for days, but I wasn't able to find a concept for this.
I don't need the whole code but just a concept or a Roblox wiki site that could somewhat help me. If you could help in any way or form, I would really appreciate it. Thank you!

3 comments
hmm im not exactly sure what you want but if you want to count how many steps a player has taken you could probably track how many times the roblox default walking animation has been played and update a variable each time it is played.
Yeah, I just want to count the steps a player has taken. I see that your solution is similar to IdealistDeveloper.The problem is that the default animation includes the player stepping many times. However this is still a great idea and I greatly appreciate your response. :)
I just want to say that this question is still unanswered. If anybody could help me in any form or way I would appreciate it. :D