So basically, I want to see how many steps the player is taking as I want to create a boost that wears off only when the player takes a certain amount of steps. I would appreciate it if anybody could help me out. Thank you!

5 comments

0

I know about this post and have indeed tried doing this but for some reason it is not working, if this does work can you somewhat explain me the concept.

0

I'm not necessarily an expert in animations, but I assume when using the ROBLOX animation plugin, you can set markers which we can call "FootStep" that signify a loose time position within the track where a foot is parallel to the ground. AnimTrack:GetMarkerReachedSignal() will fire when we reach this point in our track. We can provide a function callback to increment a TotalStepCount.

0

AnimTrack:GetMarkerReachedSignal(AddStep)

0

Ok, I'll check this out and try my best to this, and I also looked at this article: https://devforum.roblox.com/t/best-way-to-calculate-the-amount-of-footsteps-a-player-has-done/246423